b63575cebc
Use install-data-hook to ensure restrictive permissions on rsakeys.ini. Don't create rsakeys.ini in init scripts. This makes xrdp functional upon "make install" without relying on the init scripts. Packagers should not package rsakeys.ini, it should be created when the package is installed.
25 lines
532 B
Makefile
25 lines
532 B
Makefile
|
|
AM_CPPFLAGS = \
|
|
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
|
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
|
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
|
-I$(top_srcdir)/common
|
|
|
|
bin_PROGRAMS = \
|
|
xrdp-keygen
|
|
|
|
xrdp_keygen_SOURCES = keygen.c
|
|
|
|
xrdp_keygen_LDADD = \
|
|
$(top_builddir)/common/libcommon.la
|
|
|
|
xrdpsysconfdir = $(sysconfdir)/xrdp
|
|
|
|
install-data-hook:
|
|
umask 077 && \
|
|
./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini
|
|
|
|
uninstall-hook:
|
|
rm -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini
|