freebsd-ports/www/dansguardian/files/patch-autoconf::fbsd.in
Cy Schubert c877a9d58d Update 2.2.7-1 -> 2.2.8-0.
PR:		36677
Submitted by:	MAINTAINER:  Freddie Cash <fcash@bigfoot.com>
2002-04-08 01:48:41 +00:00

76 lines
3.8 KiB
Plaintext

--- autoconf/fbsd.in.orig Tue Apr 2 11:51:15 2002
+++ autoconf/fbsd.in Tue Apr 2 11:54:12 2002
@@ -17,7 +17,7 @@
dansguardian.conf config.cache Makefile logrotation
PASSVARS = -DPROXYUSER=\"${PROXYUSER}\"
-PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}access.log\"
+PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}dansguardian.log\"
PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\"
PASSVARS += -DPIDDIR=\"${PIDDIR}\"
@@ -34,36 +34,31 @@
.cpp.o:
$(CPP) $(DEBUG) $(CFLAGS) -c $<
all: $(OBJ)
$(CPP) -o dansguardian $(DGCFLAGS) $(DEBUG) $(OBJ) $(LIBS) dansguardian.cpp
install:
@test -d $(SYSVLOCATION) || install -d $(SYSVLOCATION)
@test -d $(CONFFILELOCATION) || install -d $(CONFFILELOCATION)
@test -d $(CGIBINLOCATION) || install -d $(CGIBINLOCATION)
- @test -d $(MANUALFILES)man8/ || install -d $(MANUALFILES)man8/
- @test -d $(LOGLOCATION) || install -d $(LOGLOCATION)
- @test -d $(BINARYLOCATION) || /usr/sbin/install -d $(BINARYLOCATION)
- cp -f ./dansguardian $(BINARYLOCATION)dansguardian
- cp -f ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf
- cp -f ./bannedphraselist $(CONFFILELOCATION)bannedphraselist
- cp -f ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist
- cp -f ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist
- cp -f ./bannedurllist $(CONFFILELOCATION)bannedurllist
- cp -f ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist
- cp -f ./bannedsitelist $(CONFFILELOCATION)bannedsitelist
- cp -f ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist
- cp -f ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist
- cp -f ./exceptioniplist $(CONFFILELOCATION)exceptioniplist
- cp -f ./pics $(CONFFILELOCATION)pics
- cp -f ./logrotation $(CONFFILELOCATION)logrotation
- cp -f ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh
- cp -f ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl
- chmod o+x $(CGIBINLOCATION)dansguardian.pl
- cp -f ./dansguardian.8.gz $(MANUALFILES)man8/dansguardian.8.gz
- chown -R $(PROXYUSER).$(PROXYGROUP) $(LOGLOCATION)
- chmod -R u+wr $(LOGLOCATION)
- chmod u+wrx $(LOGLOCATION)
+ @test -d $(BINARYLOCATION) || install -d $(BINARYLOCATION)
+ @install -m 755 -o root -g wheel ./dansguardian $(BINARYLOCATION)dansguardian
+ @install -m 644 -o root -g wheel ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf
+ @install -m 644 -o root -g wheel ./bannedphraselist $(CONFFILELOCATION)bannedphraselist
+ @install -m 644 -o root -g wheel ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist
+ @install -m 644 -o root -g wheel ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist
+ @install -m 644 -o root -g wheel ./bannedurllist $(CONFFILELOCATION)bannedurllist
+ @install -m 644 -o root -g wheel ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist
+ @install -m 644 -o root -g wheel ./bannedsitelist $(CONFFILELOCATION)bannedsitelist
+ @install -m 644 -o root -g wheel ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist
+ @install -m 644 -o root -g wheel ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist
+ @install -m 644 -o root -g wheel ./exceptioniplist $(CONFFILELOCATION)exceptioniplist
+ @install -m 644 -o root -g wheel ./pics $(CONFFILELOCATION)pics
+ @install -m 755 -o root -g wheel ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh
+ @install -m 755 -o root -g wheel ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl
+ @install -m 644 -o root -g wheel ./dansguardian.8 $(MANUALFILES)man8/dansguardian.8
+ @touch $(LOGLOCATION)dansguardian.log
+ @chown $(PROXYUSER):$(PROXYGROUP) $(LOGLOCATION)dansguardian.log
uninstall:
rm -f $(BINARYLOCATION)dansguardian
@@ -71,7 +66,7 @@
rm -f $(CGIBINLOCATION)dansguardian.pl
rm -f $(MANUALFILES)man8/dansguardian.8.gz
rm -fr $(CONFFILELOCATION)
- rm -fr $(LOGLOCATION)
+ rm -f $(LOGLOCATION)dansguardian.log
clean:
rm -f $(OBJ) $(PROG)