[csw-devel] SF.net SVN: gar:[19618] csw/mgar/pkg/squidguard/trunk/Makefile
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Sat Nov 10 20:08:41 CET 2012
Revision: 19618
http://gar.svn.sourceforge.net/gar/?rev=19618&view=rev
Author: dmichelsen
Date: 2012-11-10 19:08:40 +0000 (Sat, 10 Nov 2012)
Log Message:
-----------
squidguard/trunk: Finish the recipe
Modified Paths:
--------------
csw/mgar/pkg/squidguard/trunk/Makefile
Modified: csw/mgar/pkg/squidguard/trunk/Makefile
===================================================================
--- csw/mgar/pkg/squidguard/trunk/Makefile 2012-11-10 17:31:14 UTC (rev 19617)
+++ csw/mgar/pkg/squidguard/trunk/Makefile 2012-11-10 19:08:40 UTC (rev 19618)
@@ -14,17 +14,58 @@
DISTFILES = $(DISTNAME).tar.gz
# These files do patch the source, but they are not in "patch-format"
-DISTFILES += squidGuard-1.4-patch-20091015.tar.gz
-DISTFILES += squidGuard-1.4-patch-20091019.tar.gz
+SQUIDGUARDPATCHES += squidGuard-1.4-patch-20091015.tar.gz
+SQUIDGUARDPATCHES += squidGuard-1.4-patch-20091019.tar.gz
+DISTFILES += $(SQUIDGUARDPATCHES)
+NOEXTRACT += $(SQUIDGUARDPATCHES)
# File name regex to get notifications about upstream software releases
UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
VENDOR_URL = http://squidguard.org/
+PACKAGES += CSWsquidguard
+SPKG_DESC_CSWsquidguard = URL redirector used to use blacklists with the proxysoftware Squid
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWsquidguard += CSWbdb48
+
+REINPLACEMENTS += nochown
+REINPLACE_MATCH_nochown = (.*)(chown.*)
+REINPLACE_WITH_nochown = \1\# \2
+REINPLACE_FILES_nochown += Makefile.in
+
EXTRA_LIB = $(prefix)/bdb48/lib
+SQUIDGUARD_CONF = $(sysconfdir)/squidGuard/squidGuard.conf
+SQUIDGUARD_LOG = $(localstatedir)/squidGuard/log
+SQUIDGUARD_DB = $(localstatedir)/squidGuard/db
+
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-db=$(prefix)/bdb48
+CONFIGURE_ARGS += --with-sg-config=$(SQUIDGUARD_CONF)
+CONFIGURE_ARGS += --with-sg-logdir=$(SQUIDGUARD_LOG)
+CONFIGURE_ARGS += --with-sg-dbhome=$(SQUIDGUARD_DB)
+PRESERVECONF += $(SQUIDGUARD_CONF)
+
+MIGRATE_FILES += squidGuard.conf
+MIGRATE_DEST_DIR_squidGuard.conf = $(sysconfdir)/squidGuard
+
+TEST_TARGET = test
+
+INSTALL_OVERRIDE_DIRS += prefix
+INSTALL_OVERRIDE_DIRS += bindir
+
+INSTALL_OVERRIDE_VARS += configfile
+INSTALL_OVERRIDE_VARS += logdir
+INSTALL_OVERRIDE_VARS += dbhomedir
+INSTALL_OVERRIDE_VAR_configfile = $(DESTDIR)$(SQUIDGUARD_CONF)
+INSTALL_OVERRIDE_VAR_logdir = $(DESTDIR)$(SQUIDGUARD_LOG)
+INSTALL_OVERRIDE_VAR_dbhomedir = $(DESTDIR)$(SQUIDGUARD_DB)
+
include gar/category.mk
+
+post-extract-modulated:
+ -gzip -c -d $(DOWNLOADDIR)/squidGuard-1.4-patch-20091015.tar.gz | (cd $(WORKSRC) && tar xvf -)
+ -gzip -c -d $(DOWNLOADDIR)/squidGuard-1.4-patch-20091019.tar.gz | (cd $(WORKSRC) && tar xvf -)
+ @$(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