]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Install templates into $SPOOL/etc/templates/
authorAidan Van Dyk <aidan@ifax.com>
Sat, 16 Sep 2006 21:16:11 +0000 (21:16 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Sat, 16 Sep 2006 21:16:11 +0000 (21:16 +0000)
etc/Makefile.in

index 22328ef3787d0215c80da4aa3649d7ac7652d229..21cdbca085d16abc73da9120518d02aa335b6da6 100644 (file)
@@ -54,6 +54,8 @@ DIALRULES=dialrules \
        dialrules.europe
 TARGETS        = config.fax hosts.hfaxd xferfaxlog lockname ondelay
 
+TEMPLATES = . fr de
+
 default all::
        @${MAKE} targets
 
@@ -94,7 +96,16 @@ install: default
        ${PUTSERVER} -F ${LIBEXEC} -m 755 -O lockname ondelay
        ${PUTSAMPLE} -F ${SPOOL}/etc -m 644 -idb nostrip \
            -src ${SRCDIR}/lutRS18.pcf -O lutRS18.pcf
-
+       ${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \
+           -idb hylafax.sw.server -dir -F ${SPOOL}/etc templates
+       for d in ${TEMPLATES}; do \
+               ${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \
+                   -idb hylafax.sw.server -dir -F ${SPOOL}/etc/templates $$d; \
+               for f in templates/$$d/*.txt; do \
+                       ${PUTSAMPLE} -F ${SPOOL}/etc/templates/$$d -m 644 -src $$f `basename $$f`; \
+               done; \
+       done;
+       
 #
 # System V-specific init support.
 #