]> arthur.barton.de Git - netatalk.git/blob - config/Makefile.am
File netatalk is not auto-generated anymore. Install file netatalk.pamd
[netatalk.git] / config / Makefile.am
1 ## Makefile.am for config/
2
3 SUFFIXES = .tmpl .
4
5 GENFILES = afpd.conf
6 TMPLFILES = $(foreach file,$(GENFILES),$(file).tmpl)
7 CONFFILES = AppleVolumes.default AppleVolumes.system \
8         atalkd.conf netatalk.conf netatalk.pamd papd.conf
9 PAMFILES = netatalk.pamd
10
11 EXTRA_DIST = $(CONFFILES) $(TMPLFILES) $(PAMFILES)
12
13 CLEANFILES += $(GENFILES)
14
15 pkgconfdir = #$(pkgconfdir)/ # shut-up automake
16 pkgconf_DATA = $(CONFFILES) $(GENFILES)
17
18 #
19 # rule to parse template files
20 #
21
22 .tmpl:
23         sed -e s@:UAMS_PATH:@${UAMS_PATH}@ \
24             -e s@:NLS_PATH:@${pkgconfdir}/nls@ \
25             -e s@:ETCDIR:@${pkgconfdir}@ \
26             <$^ >$@
27
28 #
29 # pluggable authentication modules support
30 #
31
32 if USE_PAM
33
34 pamdir   = $(sysconfdir)/pam.d
35
36 install-data-local:
37         $(INSTALL_DATA) netatalk.pamd $(DESTDIR)$(pamdir)/netatalk
38
39 endif