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

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Tue Oct 19 16:11:53 CEST 2010


Revision: 11339
          http://gar.svn.sourceforge.net/gar/?rev=11339&view=rev
Author:   idogan23
Date:     2010-10-19 14:11:53 +0000 (Tue, 19 Oct 2010)

Log Message:
-----------
squid: move config files to /etc/opt/csw, some cleanups

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

Modified: csw/mgar/pkg/squid/trunk/Makefile
===================================================================
--- csw/mgar/pkg/squid/trunk/Makefile	2010-10-19 14:02:15 UTC (rev 11338)
+++ csw/mgar/pkg/squid/trunk/Makefile	2010-10-19 14:11:53 UTC (rev 11339)
@@ -15,16 +15,25 @@
 
 PACKAGES = CSWsquid
 CATALOGNAME_CSWsquid = squid
-SPKG_DESC_CSWsquid = $(DESCRIPTION)
-SPKG_CLASSES_CSWsquid = none cswinitsmf
 RUNTIME_DEP_PKGS_CSWsquid = CSWoldaprt CSWosslrt CSWsasl
-PROTOTYPE_FILTER = awk '$$$$3 ~/\/init.d\/cswsquid$$$$/ { $$$$2 = "cswinitsmf" } { print }'
+PACKAGING_PLATFORMS =  solaris9-sparc solaris9-i386
+INITSMF = /etc/opt/csw/init.d/csw$(GARNAME)
+PRESERVECONF = /etc/opt/csw/$(GARNAME)/cachemgr.conf
+PRESERVECONF = /etc/opt/csw/$(GARNAME)/squid.conf
+PRESERVECONF = /etc/opt/csw/$(GARNAME)/mime.conf
 
+MIGRATE_SOURCE_DIR = /opt/csw/etc
+MIGRATE_DEST_DIR = /etc/opt/csw/$(GARNAME)
+MIGRATE_FILES  = cachemgr.conf
+MIGRATE_FILES += mime.conf
+MIGRATE_FILES += squid.conf
+
 MASTER_SITES = http://www.squid-cache.org/Versions/v$(RELVER)/$(GARVERSION)/
 DISTFILES = $(DISTNAME).tar.bz2
 DISTFILES += CSWsquid.postinstall CSWsquid.preremove cswsquid squid.conf.CSW
 
 CONFIGURE_ARGS  = $(DIRPATHS)
+CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw/$(GARNAME)
 CONFIGURE_ARGS += --datadir=$(datadir)/$(GARNAME)
 CONFIGURE_ARGS += --localstatedir=/var/opt/csw/$(GARNAME)
 CONFIGURE_ARGS += --enable-arp-acl
@@ -61,9 +70,6 @@
 	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 	ginstall -d $(DESTDIR)/var/opt/csw/$(GARNAME)/logs
 	ginstall -d $(DESTDIR)/var/opt/csw/$(GARNAME)/cache
-	gcp $(DOWNLOADDIR)/cswsquid $(DESTDIR)/etc/opt/csw/init.d/
-	chmod 0755 $(DESTDIR)/etc/opt/csw/init.d/cswsquid
-	grm $(DESTDIR)$(sysconfdir)/squid.conf
-	gcp $(DOWNLOADDIR)/squid.conf.CSW $(DESTDIR)$(sysconfdir)/
+	ginstall -m 755 $(DOWNLOADDIR)/cswsquid $(DESTDIR)/etc/opt/csw/init.d/cswsquid
 	@$(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