]> arthur.barton.de Git - netatalk.git/blob - distrib/initscripts/Makefile.am
76534607210df1fcc971189b6a7e5fba8fdcc731
[netatalk.git] / distrib / initscripts / Makefile.am
1 ## Makefile for distrib/initscripts/
2
3 SUFFIXES = .tmpl .
4
5 pkgconfdir = @PKGCONFDIR@
6
7 #
8 # Template Generation
9 #
10
11 .tmpl:
12         sed -e s@:BINDIR:@${bindir}@ \
13             -e s@:SBINDIR:@${sbindir}@ \
14             -e s@:ETCDIR:@${pkgconfdir}@ \
15             <$< >$@
16
17 GENERATED_FILES = \
18         rc.afpd.netbsd          \
19         rc.atalk.redhat         \
20         rc.atalk.tru64          \
21         rc.atalk.bsd            \
22         rc.atalkd.netbsd        \
23         rc.atalk.suse           \
24         rc.papd.netbsd          \
25         rc.timelord.netbsd
26 TEMPLATES = $(foreach f,$(GENERATED_FILES),$(f).tmpl)
27
28 CLEANFILES = $(GENERATED_FILES)
29 EXTRA_DIST = $(TEMPLATES) rc.atalk.cobalt rc.atalk.sysv
30
31 install-data-hook: $(GENERATED_FILES)
32
33 #
34 # checking for "redhat" style sysv scripts:
35 #
36
37 if USE_REDHAT
38
39 sysvdir = /etc/rc.d/init.d
40 sysv_SCRIPTS = atalk
41
42 atalk: rc.atalk.redhat
43         cp -f rc.atalk.redhat atalk
44         chmod a+x atalk
45
46 endif
47
48 #
49 # checking for "SuSE" style sysv scripts:
50 #
51
52 if USE_SUSE
53
54 sysvdir = /etc/rc.d
55 sysv_SCRIPTS = atalk
56
57 atalk: rc.atalk.suse
58         cp -f rc.atalk.suse atalk
59         chmod a+x atalk
60
61 endif
62
63 #
64 #
65 # checking for "cobalt" style sysv scripts:
66 #
67
68 if USE_COBALT
69
70 sysvdir = /etc/rc.d/init.d
71 sysv_SCRIPTS = atalk
72
73 atalk: rc.atalk.cobalt
74         cp -f rc.atalk.cobalt atalk
75         chmod a+x atalk
76
77 endif
78
79 #
80 # checking for "tru64" style sysv scripts:
81 #
82
83 if USE_TRU64
84
85 sysvdir = /sbin/init.d
86 sysv_SCRIPTS = atalk
87
88 atalk: rc.atalk.tru64
89         cp -f rc.atalk.tru64 atalk
90         chmod a+x atalk
91
92 endif
93
94 #
95 # checking for NetBSD init scripts
96 #
97
98 if USE_NETBSD
99
100 sysvdir = /etc/rc.d
101 sysv_SCRIPTS = afp atalk pap timelord
102
103 afpd: rc.afpd.netbsd
104         cp -f $< $@
105
106 atalkd: rc.atalkd.netbsd
107         cp -f $< $@
108         chmod a+x $@
109
110 papd: rc.papd.netbsd
111         cp -f $< $@
112         chmod a+x $@
113
114 timelord: rc.timelord.netbsd
115         cp -f $< $@
116         chmod a+x $@
117
118 endif
119