[csw-devel] SF.net SVN: gar:[21111] csw/mgar/pkg/leafnode/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu May 16 15:45:28 CEST 2013


Revision: 21111
          http://gar.svn.sourceforge.net/gar/?rev=21111&view=rev
Author:   dmichelsen
Date:     2013-05-16 13:45:27 +0000 (Thu, 16 May 2013)
Log Message:
-----------
leafnode/trunk: Relocate config files

Modified Paths:
--------------
    csw/mgar/pkg/leafnode/trunk/Makefile

Modified: csw/mgar/pkg/leafnode/trunk/Makefile
===================================================================
--- csw/mgar/pkg/leafnode/trunk/Makefile	2013-05-16 13:27:11 UTC (rev 21110)
+++ csw/mgar/pkg/leafnode/trunk/Makefile	2013-05-16 13:45:27 UTC (rev 21111)
@@ -19,4 +19,21 @@
 ISAEXEC = 1
 CONFIGURE_ARGS = $(DIRPATHS)
 
+sysconfdir = /etc$(prefix)/leafnode
+
+EXTRA_MERGE_EXCLUDE_FILES += $(sysconfdir)/Makefile.dist
+EXTRA_MERGE_EXCLUDE_FILES += $(sysconfdir)/UNINSTALL-daemontools
+EXTRA_MERGE_EXCLUDE_FILES += $(sysconfdir)/run.tcpd.dist
+EXTRA_MERGE_EXCLUDE_FILES += $(sysconfdir)/run.tcpserver.dist
+
+PRESERVECONF += $(sysconfdir)/config
+PRESERVECONF += $(sysconfdir)/filters
+PRESERVECONF += $(sysconfdir)/nntp.rules
+
 include gar/category.mk
+
+post-install:
+	cd $(DESTDIR)$(sysconfdir) && mv config.example config
+	cd $(DESTDIR)$(sysconfdir) && mv filters.example filters
+	cd $(DESTDIR)$(sysconfdir) && mv nntp.rules.dist nntp.rules
+	@$(MAKECOOKIE)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list