xrdp/instfiles/Makefile.am

77 lines
1.3 KiB
Makefile
Raw Normal View History

EXTRA_DIST = \
xrdp.sh \
xrdp-sesman.service \
xrdp.service \
$(startscript_DATA)
2008-08-17 11:17:58 +04:00
#
# files for all platforms
#
2008-08-17 11:17:58 +04:00
startscriptdir=$(sysconfdir)/xrdp
startscript_DATA = \
2009-08-12 05:53:34 +04:00
km-0407.ini \
km-0409.ini \
2009-10-09 12:03:15 +04:00
km-040c.ini \
km-0410.ini \
2014-12-01 10:32:18 +03:00
km-0411.ini \
km-0414.ini \
2014-10-27 14:53:19 +03:00
km-0415.ini \
km-0416.ini \
2009-10-09 12:03:15 +04:00
km-0419.ini \
2013-03-19 02:06:10 +04:00
km-041d.ini \
km-0807.ini \
km-080c.ini \
km-0813.ini \
2014-12-01 10:32:18 +03:00
km-0816.ini \
km-e0010411.ini \
km-e0200411.ini \
km-e0210411.ini
2008-08-18 03:08:17 +04:00
#
# platform specific files
#
SUBDIRS=
if LINUX
SUBDIRS+= \
pam.d \
pulse
startscript_DATA+= xrdp.sh
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
xrdp-sesman.service \
xrdp.service
else
SUBDIRS+= \
default \
init.d
endif # HAVE_SYSTEMD
endif # LINUX
if FREEBSD
SUBDIRS+= \
pam.d \
rc.d \
pulse
endif
#
# install-data-hook for each platform
#
if LINUX
2008-08-18 03:08:17 +04:00
# must be tab below
install-data-hook:
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
if [ -f $(DESTDIR)$(sysconfdir)/init.d/xrdp ]; then \
chmod 755 $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
fi
endif
if FREEBSD
# must be tab below
install-data-hook:
chmod 755 $(DESTDIR)$(sysconfdir)/rc.d/xrdp
sed -i '' 's|%%PREFIX%%|$(prefix)|g' $(DESTDIR)$(sysconfdir)/rc.d/xrdp
endif