summaryrefslogtreecommitdiffstats
path: root/instfiles/Makefile.am
blob: 4ef7799222be00c9e76166a34ec8478d80cf20e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
EXTRA_DIST = \
   xrdp.sh \
   xrdp-sesman.service \
   xrdp.service \
   $(startscript_DATA)

#
# files for all platforms
#
startscriptdir=$(sysconfdir)/xrdp

startscript_DATA = \
  km-0407.ini \
  km-0409.ini \
  km-040c.ini \
  km-0410.ini \
  km-0411.ini \
  km-0414.ini \
  km-0415.ini \
  km-0416.ini \
  km-0419.ini \
  km-041d.ini \
  km-0807.ini \
  km-080c.ini \
  km-0813.ini \
  km-0816.ini \
  km-100c.ini \
  km-e0010411.ini \
  km-e0200411.ini \
  km-e0210411.ini

#
# 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
# 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