aboutsummaryrefslogtreecommitdiff
path: root/etc/Makefile.am
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2005-10-26 23:00:48 +0000
committerMicah Anderson <micah@riseup.net>2005-10-26 23:00:48 +0000
commitb3ff5ad3606f6510f601710799d2542b21ce3fea (patch)
tree8e5f9faf49ae4c96cd584da3d7908545e935cc04 /etc/Makefile.am
parent195a1bdc0726d2c693f20c1eefef0fb94c193ab1 (diff)
downloadbackupninja-b3ff5ad3606f6510f601710799d2542b21ce3fea.tar.gz
backupninja-b3ff5ad3606f6510f601710799d2542b21ce3fea.tar.bz2
Add autotools Makefile templates
Diffstat (limited to 'etc/Makefile.am')
-rw-r--r--etc/Makefile.am38
1 files changed, 38 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
new file mode 100644
index 0000000..ed3ce94
--- /dev/null
+++ b/etc/Makefile.am
@@ -0,0 +1,38 @@
+
+EXTRA_DIST = backupninja.conf.in cron.d/backupninja.in \
+ logrotate.d/backupninja.in
+
+GENERATED_FILES = backupninja.conf cron.d/backupninja logrotate.d/backupninja
+
+CLEANFILES = $(GENERATED_FILES)
+
+nobase_sysconf_DATA = $(GENERATED_FILES)
+
+edit = sed \
+ -e "s,@BASH\@,$(BASH),g" \
+ -e "s,@CFGDIR\@,$(CFGDIR),g" \
+ -e "s,@sysconfdir\@,$(sysconfdir),g" \
+ -e "s,@localstatedir\@,$(localstatedir),g" \
+ -e "s,@pkgdatadir\@,$(pkgdatadir),g" \
+ -e "s,@sbindir\@,$(sbindir),g" \
+ -e "s,@exec_prefix\@,$(exec_prefix),g" \
+ -e "s,@prefix\@,$(prefix),g"
+
+cron.d/backupninja: cron.d/backupninja.in
+ rm -f cron.d/backupninja
+ $(edit) cron.d/backupninja.in > cron.d/backupninja
+ chmod ugo+x cron.d/backupninja
+
+logrotate.d/backupninja: logrotate.d/backupninja.in
+ rm -f logrotate.d/backupninja
+ $(edit) logrotate.d/backupninja.in > logrotate.d/backupninja
+ chmod ugo+x logrotate.d/backupninja
+
+backupninja.conf: backupninja.conf.in
+ rm -f backupninja.conf
+ $(edit) backupninja.conf.in > backupninja.conf
+
+#install-data-hook:
+# for a in $(EXAMPLES); do \
+# chmod 755 $(sysconfdir)/$(a); \
+# done