summaryrefslogtreecommitdiffstats
path: root/instfiles/Makefile.am
blob: 92cc9cf28c4bc84b326d54e3c3dfd20278137819 (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
EXTRA_DIST = \
   keymap-names.txt \
   xrdp.sh \
   xrdp-sesman.service \
   xrdp.service

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

dist_startscript_DATA = \
  km-00000407.ini \
  km-00000409.ini \
  km-0000040a.ini \
  km-0000040b.ini \
  km-0000040c.ini \
  km-00000410.ini \
  km-00000411.ini \
  km-00000412.ini \
  km-00000414.ini \
  km-00000415.ini \
  km-00000416.ini \
  km-00000419.ini \
  km-0000041d.ini \
  km-00000807.ini \
  km-00000809.ini \
  km-0000080c.ini \
  km-00000813.ini \
  km-00000816.ini \
  km-0000100c.ini 

#
# platform specific files
#
SUBDIRS =
if LINUX
SUBDIRS += \
  pam.d \
  pulse
dist_startscript_SCRIPTS = xrdp.sh
if HAVE_SYSTEMD
dist_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:
	if [ -f $(DESTDIR)$(sysconfdir)/init.d/xrdp ]; then \
		sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
	fi
endif

if FREEBSD
# must be tab below
install-data-hook:
	sed -i '' 's|%%PREFIX%%|$(prefix)|g' $(DESTDIR)$(sysconfdir)/rc.d/xrdp
endif