2016-11-18 06:53:54 +03:00
|
|
|
EXTRA_DIST = openssl.conf
|
2009-05-19 08:23:49 +04:00
|
|
|
|
2016-01-30 09:45:00 +03:00
|
|
|
AM_CPPFLAGS = \
|
2009-05-19 08:23:49 +04:00
|
|
|
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
|
|
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
|
|
|
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
|
2016-01-30 09:45:00 +03:00
|
|
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
2008-08-10 11:38:07 +04:00
|
|
|
-I$(top_srcdir)/common
|
|
|
|
|
|
|
|
bin_PROGRAMS = \
|
|
|
|
xrdp-keygen
|
|
|
|
|
|
|
|
xrdp_keygen_SOURCES = keygen.c
|
|
|
|
|
|
|
|
xrdp_keygen_LDADD = \
|
2012-07-14 03:18:02 +04:00
|
|
|
$(top_builddir)/common/libcommon.la
|
2016-02-20 10:38:49 +03:00
|
|
|
|
|
|
|
xrdpsysconfdir = $(sysconfdir)/xrdp
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
umask 077 && \
|
2016-11-18 06:53:54 +03:00
|
|
|
if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini ]; then \
|
|
|
|
./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini; \
|
|
|
|
fi && \
|
|
|
|
if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/cert.pem ]; then \
|
2017-01-15 11:42:35 +03:00
|
|
|
$(OPENSSL) req -x509 -newkey rsa:2048 -sha256 -nodes \
|
2016-11-18 06:53:54 +03:00
|
|
|
-keyout $(DESTDIR)$(xrdpsysconfdir)/key.pem -out \
|
|
|
|
$(DESTDIR)$(xrdpsysconfdir)/cert.pem -days 365 \
|
|
|
|
-subj /C=US/ST=CA/L=Sunnyvale/O=xrdp/CN=www.xrdp.org \
|
|
|
|
-config $(srcdir)/openssl.conf; \
|
|
|
|
fi
|
2016-02-20 10:38:49 +03:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini
|
2016-11-18 06:53:54 +03:00
|
|
|
rm -f $(DESTDIR)$(xrdpsysconfdir)/cert.pem
|
|
|
|
rm -f $(DESTDIR)$(xrdpsysconfdir)/key.pem
|