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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Nov 8 13:31:02 CET 2011


Revision: 16138
          http://gar.svn.sourceforge.net/gar/?rev=16138&view=rev
Author:   dmichelsen
Date:     2011-11-08 12:31:02 +0000 (Tue, 08 Nov 2011)
Log Message:
-----------
rsync: Use REINPLACE

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

Modified: csw/mgar/pkg/rsync/trunk/Makefile
===================================================================
--- csw/mgar/pkg/rsync/trunk/Makefile	2011-11-08 12:30:23 UTC (rev 16137)
+++ csw/mgar/pkg/rsync/trunk/Makefile	2011-11-08 12:31:02 UTC (rev 16138)
@@ -34,15 +34,18 @@
 
 INITSMF += /etc/opt/csw/init.d/cswrsyncd
 
+REINPLACE_USRLOCAL = $(mandir)/man1/rsync.1
+REINPLACE_WHEN_USRLOCAL = postinstall
+
+REINPLACEMENTS += conf
+REINPLACE_MATCH_conf = /etc/rsyncd\.conf
+REINPLACE_WITH_conf = $(sysconfdir)/rsyncd.conf
+REINPLACE_FILES_conf += $(mandir)/man1/rsync.1
+REINPLACE_FILES_conf += $(mandir)/man5/rsyncd.conf.5
+REINPLACE_WHEN_conf = postinstall
+
 include gar/category.mk
 
 post-install-modulated:
-	perl -pi \
-		-e 's,/etc/rsyncd\.conf,$(sysconfdir)/rsyncd.conf,g;' \
-		$(DESTDIR)$(mandir)/man5/rsyncd.conf.5
-	perl -pi \
-		-e 's,/usr/local,$(prefix),g;' \
-		-e 's,/etc/rsyncd.conf,$(sysconfdir)/rsyncd.conf,g;' \
-		$(DESTDIR)$(mandir)/man1/rsync.1
 	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 	ginstall -m 0755 $(WORKDIR)/cswrsyncd $(DESTDIR)/etc/opt/csw/init.d/cswrsyncd

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