pkgsrc/www/dansguardian/patches/patch-obsd.in
sborrill 41b3cbbea1 Fix DESTDIR build (OWN_DIRS specified incorrectly).
Add full lists of dirs to INSTALLATION_DIRS and patch away directory
creation from Makefile fragments.
Use dansgrdn:dansgrdn for user:group instead of nobody:nobody
Bump PKGREVISION
2010-03-29 19:38:54 +00:00

30 lines
1.5 KiB
Text

$NetBSD: patch-obsd.in,v 1.1 2010/03/29 19:38:54 sborrill Exp $
--- autoconf/obsd.in.orig 2005-08-14 00:47:57.000000000 +0100
+++ autoconf/obsd.in 2010-03-29 20:16:49.000000000 +0100
@@ -44,14 +44,6 @@
$(CPP) -o dansguardian $(DGCFLAGS) $(DEBUG) $(OBJ) $(LIBS) dansguardian.cpp
install:
- @test -d $I$(SYSVLOCATION) || install -d $I$(SYSVLOCATION)
- @test -d $I$(CONFFILELOCATION) || install -d $I$(CONFFILELOCATION)
- @test -d $I$(CONFFILELOCATION)phraselists || install -d $I$(CONFFILELOCATION)phraselists
- @test -d $I$(CONFFILELOCATION)languages || install -d $I$(CONFFILELOCATION)languages
- @test -d $I$(CGIBINLOCATION) || install -d $I$(CGIBINLOCATION)
- @test -d $I$(MANUALFILES)man8/ || install -d $I$(MANUALFILES)man8/
- @test -d $I$(LOGLOCATION) || install -d $I$(LOGLOCATION)
- @test -d $I$(BINARYLOCATION) || install -d $I$(BINARYLOCATION)
cp -f ./filtergroupslist $I$(CONFFILELOCATION)filtergroupslist
cp -f ./dansguardianf1.conf $I$(CONFFILELOCATION)dansguardianf1.conf
cp -f ./dansguardian $I$(BINARYLOCATION)dansguardian
@@ -82,10 +74,6 @@
cp -f ./dansguardian.pl $I$(CGIBINLOCATION)dansguardian.pl
chmod o+x $I$(CGIBINLOCATION)dansguardian.pl
cp -f ./dansguardian.8.gz $I$(MANUALFILES)man8/dansguardian.8.gz
- chown -R $(PROXYUSER):$(PROXYGROUP) $I$(LOGLOCATION)
- chmod -R u+wr $I$(LOGLOCATION)
- chmod -R og-w $I$(LOGLOCATION)
- chmod u+wrx $I$(LOGLOCATION)
if [ -d $(LOGROTATELOCATION) ]; then cp -f ./logrotate.dansguardian $I$(LOGROTATELOCATION)dansguardian; fi
uninstall: