Lines 1-5
Link Here
|
1 |
--- autoconf/fbsd.in.orig Wed Nov 19 16:06:41 2003 |
1 |
--- autoconf/fbsd.in.orig Tue Dec 23 16:17:18 2003 |
2 |
+++ autoconf/fbsd.in Mon Nov 24 11:14:17 2003 |
2 |
+++ autoconf/fbsd.in Wed Jan 7 14:48:42 2004 |
3 |
@@ -20,7 +20,7 @@ |
3 |
@@ -20,7 +20,7 @@ |
4 |
logrotate.dansguardian |
4 |
logrotate.dansguardian |
5 |
|
5 |
|
Lines 9-25
Link Here
|
9 |
PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\" |
9 |
PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\" |
10 |
PASSVARS += -DPIDDIR=\"${PIDDIR}\" |
10 |
PASSVARS += -DPIDDIR=\"${PIDDIR}\" |
11 |
|
11 |
|
12 |
@@ -41,52 +41,83 @@ |
12 |
@@ -44,49 +44,79 @@ |
13 |
$(CPP) -o dansguardian $(DGCFLAGS) $(DEBUG) $(OBJ) $(LIBS) dansguardian.cpp |
13 |
@test -d $I$(SYSVLOCATION) || install -d $I$(SYSVLOCATION) |
14 |
|
14 |
@test -d $I$(CONFFILELOCATION) || install -d $I$(CONFFILELOCATION) |
15 |
install: |
15 |
@test -d $I$(CONFFILELOCATION)phraselists || install -d $I$(CONFFILELOCATION)phraselists |
16 |
- @test -d $I$(SYSVLOCATION) || install -d $I$(SYSVLOCATION) |
16 |
+ @test -d $I$(CONFFILELOCATION)phraselists/chat || install -d $I$(CONFFILELOCATION)phraselists/chat |
17 |
- @test -d $I$(CONFFILELOCATION) || install -d $I$(CONFFILELOCATION) |
17 |
+ @test -d $I$(CONFFILELOCATION)phraselists/drugadvocacy || install -d $I$(CONFFILELOCATION)phraselists/drugadvocacy |
18 |
- @test -d $I$(CONFFILELOCATION)phraselists || install -d $I$(CONFFILELOCATION)phraselists |
18 |
+ @test -d $I$(CONFFILELOCATION)phraselists/dutchbadwords || install -d $I$(CONFFILELOCATION)phraselists/dutchbadwords |
19 |
- @test -d $I$(CGIBINLOCATION) || install -d $I$(CGIBINLOCATION) |
19 |
+ @test -d $I$(CONFFILELOCATION)phraselists/frenchbadwords || install -d $I$(CONFFILELOCATION)phraselists/frenchbadwords |
20 |
- @test -d $I$(MANUALFILES)man8/ || install -d $I$(MANUALFILES)man8/ |
20 |
+ @test -d $I$(CONFFILELOCATION)phraselists/gambling || install -d $I$(CONFFILELOCATION)phraselists/gambling |
|
|
21 |
+ @test -d $I$(CONFFILELOCATION)phraselists/germanpornography || install -d $I$(CONFFILELOCATION)phraselists/germanpornography |
22 |
+ @test -d $I$(CONFFILELOCATION)phraselists/goodphrases || install -d $I$(CONFFILELOCATION)phraselists/goodphrases |
23 |
+ @test -d $I$(CONFFILELOCATION)phraselists/gore || install -d $I$(CONFFILELOCATION)phraselists/gore |
24 |
+ @test -d $I$(CONFFILELOCATION)phraselists/illegaldrugs || install -d $I$(CONFFILELOCATION)phraselists/illegaldrugs |
25 |
+ @test -d $I$(CONFFILELOCATION)phraselists/intolerance || install -d $I$(CONFFILELOCATION)phraselists/intolerance |
26 |
+ @test -d $I$(CONFFILELOCATION)phraselists/italianbadwords || install -d $I$(CONFFILELOCATION)phraselists/italianbadwords |
27 |
+ @test -d $I$(CONFFILELOCATION)phraselists/legaldrugs || install -d $I$(CONFFILELOCATION)phraselists/legaldrugs |
28 |
+ @test -d $I$(CONFFILELOCATION)phraselists/personals || install -d $I$(CONFFILELOCATION)phraselists/personals |
29 |
+ @test -d $I$(CONFFILELOCATION)phraselists/pornography || install -d $I$(CONFFILELOCATION)phraselists/pornography |
30 |
+ @test -d $I$(CONFFILELOCATION)phraselists/violence || install -d $I$(CONFFILELOCATION)phraselists/violence |
31 |
+ @test -d $I$(CONFFILELOCATION)phraselists/warezhacking || install -d $I$(CONFFILELOCATION)phraselists/warezhacking |
32 |
+ @test -d $I$(CONFFILELOCATION)phraselists/weapons || install -d $I$(CONFFILELOCATION)phraselists/weapons |
33 |
@test -d $I$(CGIBINLOCATION) || install -d $I$(CGIBINLOCATION) |
34 |
@test -d $I$(MANUALFILES)man8/ || install -d $I$(MANUALFILES)man8/ |
21 |
- @test -d $I$(LOGLOCATION) || install -d $I$(LOGLOCATION) |
35 |
- @test -d $I$(LOGLOCATION) || install -d $I$(LOGLOCATION) |
22 |
- @test -d $I$(BINARYLOCATION) || install -d $I$(BINARYLOCATION) |
36 |
@test -d $I$(BINARYLOCATION) || install -d $I$(BINARYLOCATION) |
23 |
- cp -f ./dansguardian $I$(BINARYLOCATION)dansguardian |
37 |
- cp -f ./dansguardian $I$(BINARYLOCATION)dansguardian |
24 |
- cp -f ./dansguardian.conf $I$(CONFFILELOCATION)dansguardian.conf |
38 |
- cp -f ./dansguardian.conf $I$(CONFFILELOCATION)dansguardian.conf |
25 |
- cp -f ./bannedphraselist $I$(CONFFILELOCATION)bannedphraselist |
39 |
- cp -f ./bannedphraselist $I$(CONFFILELOCATION)bannedphraselist |
Lines 50-135
Link Here
|
50 |
- chmod -R u+wr $I$(LOGLOCATION) |
64 |
- chmod -R u+wr $I$(LOGLOCATION) |
51 |
- chmod u+wrx $I$(LOGLOCATION) |
65 |
- chmod u+wrx $I$(LOGLOCATION) |
52 |
- if [ -d $(LOGROTATELOCATION) ]; then cp -f ./logrotate.dansguardian $I$(LOGROTATELOCATION)dansguardian; fi |
66 |
- if [ -d $(LOGROTATELOCATION) ]; then cp -f ./logrotate.dansguardian $I$(LOGROTATELOCATION)dansguardian; fi |
53 |
+ install -d $I$(CONFFILELOCATION) |
|
|
54 |
+ install -d $I$(CONFFILELOCATION)phraselists |
55 |
+ install -d $I$(CONFFILELOCATION)phraselists/chat |
56 |
+ install -d $I$(CONFFILELOCATION)phraselists/drugadvocacy |
57 |
+ install -d $I$(CONFFILELOCATION)phraselists/dutchbadwords |
58 |
+ install -d $I$(CONFFILELOCATION)phraselists/frenchbadwords |
59 |
+ install -d $I$(CONFFILELOCATION)phraselists/gambling |
60 |
+ install -d $I$(CONFFILELOCATION)phraselists/germanpornography |
61 |
+ install -d $I$(CONFFILELOCATION)phraselists/goodphrases |
62 |
+ install -d $I$(CONFFILELOCATION)phraselists/gore |
63 |
+ install -d $I$(CONFFILELOCATION)phraselists/illegaldrugs |
64 |
+ install -d $I$(CONFFILELOCATION)phraselists/intolerance |
65 |
+ install -d $I$(CONFFILELOCATION)phraselists/italianbadwords |
66 |
+ install -d $I$(CONFFILELOCATION)phraselists/legaldrugs |
67 |
+ install -d $I$(CONFFILELOCATION)phraselists/personals |
68 |
+ install -d $I$(CONFFILELOCATION)phraselists/pornography |
69 |
+ install -d $I$(CONFFILELOCATION)phraselists/violence |
70 |
+ install -d $I$(CONFFILELOCATION)phraselists/warezhacking |
71 |
+ install -d $I$(CONFFILELOCATION)phraselists/weapons |
72 |
+ install -d $I$(CGIBINLOCATION) |
73 |
+ install -d $I$(MANUALFILES)man8/ |
74 |
+ install -d $I$(LOGLOCATION) |
75 |
+ install -d $I$(BINARYLOCATION) |
76 |
+ install -o root -g wheel -m 755 ./dansguardian $I$(BINARYLOCATION)dansguardian |
67 |
+ install -o root -g wheel -m 755 ./dansguardian $I$(BINARYLOCATION)dansguardian |
77 |
+ install -o root -g wheel -m 644 ./dansguardian.conf $I$(CONFFILELOCATION)dansguardian.conf |
68 |
+ install -o root -g wheel -m 644 ./dansguardian.conf $I$(CONFFILELOCATION)dansguardian.conf.dist |
78 |
+ install -o root -g wheel -m 644 ./bannedphraselist $I$(CONFFILELOCATION)bannedphraselist |
69 |
+ install -o root -g wheel -m 644 ./bannedphraselist $I$(CONFFILELOCATION)bannedphraselist.dist |
79 |
+ install -o root -g wheel -m 644 ./exceptionphraselist $I$(CONFFILELOCATION)exceptionphraselist |
70 |
+ install -o root -g wheel -m 644 ./exceptionphraselist $I$(CONFFILELOCATION)exceptionphraselist.dist |
80 |
+ install -o root -g wheel -m 644 ./weightedphraselist $I$(CONFFILELOCATION)weightedphraselist |
71 |
+ install -o root -g wheel -m 644 ./weightedphraselist $I$(CONFFILELOCATION)weightedphraselist.dist |
81 |
+ install -o root -g wheel -m 644 ./phraselists/chat/weighted $I$(CONFFILELOCATION)phraselists/chat/weighted |
72 |
+ install -o root -g wheel -m 644 ./phraselists/chat/weighted $I$(CONFFILELOCATION)phraselists/chat/weighted.dist |
82 |
+ install -o root -g wheel -m 644 ./phraselists/drugadvocacy/weighted $I$(CONFFILELOCATION)phraselists/drugadvocacy/weighted |
73 |
+ install -o root -g wheel -m 644 ./phraselists/drugadvocacy/weighted $I$(CONFFILELOCATION)phraselists/drugadvocacy/weighted.dist |
83 |
+ install -o root -g wheel -m 644 ./phraselists/dutchbadwords/weighted $I$(CONFFILELOCATION)phraselists/dutchbadwords/weighted |
74 |
+ install -o root -g wheel -m 644 ./phraselists/dutchbadwords/weighted $I$(CONFFILELOCATION)phraselists/dutchbadwords/weighted.dist |
84 |
+ install -o root -g wheel -m 644 ./phraselists/frenchbadwords/weighted $I$(CONFFILELOCATION)phraselists/frenchbadwords/weighted |
75 |
+ install -o root -g wheel -m 644 ./phraselists/frenchbadwords/weighted $I$(CONFFILELOCATION)phraselists/frenchbadwords/weighted.dist |
85 |
+ install -o root -g wheel -m 644 ./phraselists/gambling/banned $I$(CONFFILELOCATION)phraselists/gambling/banned |
76 |
+ install -o root -g wheel -m 644 ./phraselists/gambling/banned $I$(CONFFILELOCATION)phraselists/gambling/banned.dist |
86 |
+ install -o root -g wheel -m 644 ./phraselists/gambling/weighted $I$(CONFFILELOCATION)phraselists/gambling/weighted |
77 |
+ install -o root -g wheel -m 644 ./phraselists/gambling/weighted $I$(CONFFILELOCATION)phraselists/gambling/weighted.dist |
87 |
+ install -o root -g wheel -m 644 ./phraselists/germanpornography/weighted $I$(CONFFILELOCATION)phraselists/germanpornography/weighted |
78 |
+ install -o root -g wheel -m 644 ./phraselists/germanpornography/weighted $I$(CONFFILELOCATION)phraselists/germanpornography/weighted.dist |
88 |
+ install -o root -g wheel -m 644 ./phraselists/goodphrases/exception $I$(CONFFILELOCATION)phraselists/goodphrases/exception |
79 |
+ install -o root -g wheel -m 644 ./phraselists/goodphrases/exception $I$(CONFFILELOCATION)phraselists/goodphrases/exception.dist |
89 |
+ install -o root -g wheel -m 644 ./phraselists/goodphrases/weighted $I$(CONFFILELOCATION)phraselists/goodphrases/weighted |
80 |
+ install -o root -g wheel -m 644 ./phraselists/goodphrases/weighted $I$(CONFFILELOCATION)phraselists/goodphrases/weighted.dist |
90 |
+ install -o root -g wheel -m 644 ./phraselists/gore/weighted $I$(CONFFILELOCATION)phraselists/gore/weighted |
81 |
+ install -o root -g wheel -m 644 ./phraselists/gore/weighted $I$(CONFFILELOCATION)phraselists/gore/weighted.dist |
91 |
+ install -o root -g wheel -m 644 ./phraselists/illegaldrugs/banned $I$(CONFFILELOCATION)phraselists/illegaldrugs/banned |
82 |
+ install -o root -g wheel -m 644 ./phraselists/illegaldrugs/banned $I$(CONFFILELOCATION)phraselists/illegaldrugs/banned.dist |
92 |
+ install -o root -g wheel -m 644 ./phraselists/illegaldrugs/weighted $I$(CONFFILELOCATION)phraselists/illegaldrugs/weighted |
83 |
+ install -o root -g wheel -m 644 ./phraselists/illegaldrugs/weighted $I$(CONFFILELOCATION)phraselists/illegaldrugs/weighted.dist |
93 |
+ install -o root -g wheel -m 644 ./phraselists/intolerance/banned $I$(CONFFILELOCATION)phraselists/intolerance/banned |
84 |
+ install -o root -g wheel -m 644 ./phraselists/intolerance/weighted $I$(CONFFILELOCATION)phraselists/intolerance/weighted.dist |
94 |
+ install -o root -g wheel -m 644 ./phraselists/intolerance/weighted $I$(CONFFILELOCATION)phraselists/intolerance/weighted |
85 |
+ install -o root -g wheel -m 644 ./phraselists/italianbadwords/weighted $I$(CONFFILELOCATION)phraselists/italianbadwords/weighted.dist |
95 |
+ install -o root -g wheel -m 644 ./phraselists/italianbadwords/weighted $I$(CONFFILELOCATION)phraselists/italianbadwords/weighted |
86 |
+ install -o root -g wheel -m 644 ./phraselists/legaldrugs/weighted $I$(CONFFILELOCATION)phraselists/legaldrugs/weighted.dist |
96 |
+ install -o root -g wheel -m 644 ./phraselists/legaldrugs/weighted $I$(CONFFILELOCATION)phraselists/legaldrugs/weighted |
87 |
+ install -o root -g wheel -m 644 ./phraselists/personals/weighted $I$(CONFFILELOCATION)phraselists/personals/weighted.dist |
97 |
+ install -o root -g wheel -m 644 ./phraselists/personals/weighted $I$(CONFFILELOCATION)phraselists/personals/weighted |
88 |
+ install -o root -g wheel -m 644 ./phraselists/pornography/banned $I$(CONFFILELOCATION)phraselists/pornography/banned.dist |
98 |
+ install -o root -g wheel -m 644 ./phraselists/pornography/banned $I$(CONFFILELOCATION)phraselists/pornography/banned |
89 |
+ install -o root -g wheel -m 644 ./phraselists/pornography/weighted $I$(CONFFILELOCATION)phraselists/pornography/weighted.dist |
99 |
+ install -o root -g wheel -m 644 ./phraselists/pornography/weighted $I$(CONFFILELOCATION)phraselists/pornography/weighted |
90 |
+ install -o root -g wheel -m 644 ./phraselists/violence/weighted $I$(CONFFILELOCATION)phraselists/violence/weighted.dist |
100 |
+ install -o root -g wheel -m 644 ./phraselists/violence/weighted $I$(CONFFILELOCATION)phraselists/violence/weighted |
91 |
+ install -o root -g wheel -m 644 ./phraselists/warezhacking/weighted $I$(CONFFILELOCATION)phraselists/warezhacking/weighted.dist |
101 |
+ install -o root -g wheel -m 644 ./phraselists/warezhacking/weighted $I$(CONFFILELOCATION)phraselists/warezhacking/weighted |
92 |
+ install -o root -g wheel -m 644 ./phraselists/weapons/weighted $I$(CONFFILELOCATION)phraselists/weapons/weighted.dist |
102 |
+ install -o root -g wheel -m 644 ./phraselists/weapons/weighted $I$(CONFFILELOCATION)phraselists/weapons/weighted |
93 |
+ install -o root -g wheel -m 644 ./bannediplist $I$(CONFFILELOCATION)bannediplist.dist |
103 |
+ install -o root -g wheel -m 644 ./bannediplist $I$(CONFFILELOCATION)bannediplist |
94 |
+ install -o root -g wheel -m 644 ./banneduserlist $I$(CONFFILELOCATION)banneduserlist.dist |
104 |
+ install -o root -g wheel -m 644 ./banneduserlist $I$(CONFFILELOCATION)banneduserlist |
95 |
+ install -o root -g wheel -m 644 ./bannedextensionlist $I$(CONFFILELOCATION)bannedextensionlist.dist |
105 |
+ install -o root -g wheel -m 644 ./bannedextensionlist $I$(CONFFILELOCATION)bannedextensionlist |
96 |
+ install -o root -g wheel -m 644 ./bannedmimetypelist $I$(CONFFILELOCATION)bannedmimetypelist.dist |
106 |
+ install -o root -g wheel -m 644 ./bannedmimetypelist $I$(CONFFILELOCATION)bannedmimetypelist |
97 |
+ install -o root -g wheel -m 644 ./bannedurllist $I$(CONFFILELOCATION)bannedurllist.dist |
107 |
+ install -o root -g wheel -m 644 ./bannedurllist $I$(CONFFILELOCATION)bannedurllist |
98 |
+ install -o root -g wheel -m 644 ./bannedregexpurllist $I$(CONFFILELOCATION)bannedregexpurllist.dist |
108 |
+ install -o root -g wheel -m 644 ./bannedregexpurllist $I$(CONFFILELOCATION)bannedregexpurllist |
99 |
+ install -o root -g wheel -m 644 ./bannedsitelist $I$(CONFFILELOCATION)bannedsitelist.dist |
109 |
+ install -o root -g wheel -m 644 ./bannedsitelist $I$(CONFFILELOCATION)bannedsitelist |
100 |
+ install -o root -g wheel -m 644 ./contentregexplist $I$(CONFFILELOCATION)contentregexplist.dist |
110 |
+ install -o root -g wheel -m 644 ./contentregexplist $I$(CONFFILELOCATION)contentregexplist |
101 |
+ install -o root -g wheel -m 644 ./exceptionsitelist $I$(CONFFILELOCATION)exceptionsitelist.dist |
111 |
+ install -o root -g wheel -m 644 ./exceptionsitelist $I$(CONFFILELOCATION)exceptionsitelist |
102 |
+ install -o root -g wheel -m 644 ./exceptionurllist $I$(CONFFILELOCATION)exceptionurllist.dist |
112 |
+ install -o root -g wheel -m 644 ./exceptionurllist $I$(CONFFILELOCATION)exceptionurllist |
103 |
+ install -o root -g wheel -m 644 ./exceptionuserlist $I$(CONFFILELOCATION)exceptionuserlist.dist |
113 |
+ install -o root -g wheel -m 644 ./exceptionuserlist $I$(CONFFILELOCATION)exceptionuserlist |
104 |
+ install -o root -g wheel -m 644 ./exceptioniplist $I$(CONFFILELOCATION)exceptioniplist.dist |
114 |
+ install -o root -g wheel -m 644 ./exceptioniplist $I$(CONFFILELOCATION)exceptioniplist |
105 |
+ install -o root -g wheel -m 644 ./pics $I$(CONFFILELOCATION)pics.dist |
115 |
+ install -o root -g wheel -m 644 ./pics $I$(CONFFILELOCATION)pics |
106 |
+ install -o root -g wheel -m 644 ./template.html $I$(CONFFILELOCATION)template.html.dist |
116 |
+ install -o root -g wheel -m 644 ./template.html $I$(CONFFILELOCATION)template.html |
107 |
+ install -o root -g wheel -m 644 ./messages $I$(CONFFILELOCATION)messages.dist |
117 |
+ install -o root -g wheel -m 644 ./messages $I$(CONFFILELOCATION)messages |
108 |
+ install -o root -g wheel -m 755 ./dansguardian.bsdv $I$(SYSVLOCATION)start-dg.sh.dist |
118 |
+ install -o root -g wheel -m 755 ./dansguardian.bsdv $I$(SYSVLOCATION)start-dg.sh |
109 |
+ install -o root -g wheel -m 755 ./dansguardian.pl $I$(CGIBINLOCATION)dansguardian.pl.dist |
119 |
+ install -o root -g wheel -m 755 ./dansguardian.pl $I$(CGIBINLOCATION)dansguardian.pl |
|
|
120 |
+ install -o root -g wheel -m 644 ./dansguardian.8 $I$(MANUALFILES)man8/dansguardian.8 |
110 |
+ install -o root -g wheel -m 644 ./dansguardian.8 $I$(MANUALFILES)man8/dansguardian.8 |
121 |
+ install -o nobody -g nogroup -m 644 /dev/null $I$(LOGLOCATION)dansguardian.log |
111 |
+ @test -f $I$(LOGLOCATION)/dansguardian.log || install -o nobody -g nogroup -m 644 /dev/null $I$(LOGLOCATION)dansguardian.log |
122 |
|
112 |
|
123 |
uninstall: |
113 |
uninstall: |
124 |
rm -f $(BINARYLOCATION)dansguardian |
114 |
rm -f $(BINARYLOCATION)dansguardian |
125 |
rm -f $(SYSVLOCATION)dansguardian |
115 |
rm -f $(SYSVLOCATION)dansguardian |
126 |
rm -f $(CGIBINLOCATION)dansguardian.pl |
116 |
rm -f $(CGIBINLOCATION)dansguardian.pl |
127 |
- rm -f $(MANUALFILES)man8/dansguardian.8.gz |
117 |
- rm -f $(MANUALFILES)man8/dansguardian.8.gz |
128 |
+ rm -f $(MANUALFILES)man8/dansguardian.8* |
118 |
+ rm -fr $(MANUALFILES)man8/dansguardian.8* |
129 |
rm -fr $(CONFFILELOCATION) |
119 |
rm -fr $(CONFFILELOCATION) |
130 |
- rm -fr $(LOGLOCATION) |
120 |
- rm -fr $(LOGLOCATION) |
131 |
- if [ -f $(LOGROTATELOCATION)dansguardian ]; then rm -f $(LOGROTATELOCATION)dansguardian; fi |
121 |
- if [ -f $(LOGROTATELOCATION)dansguardian ]; then rm -f $(LOGROTATELOCATION)dansguardian; fi |
132 |
+ rm -fr $(LOGLOCATION)dansguardian.log |
122 |
+ rm -f $(LOGLOCATION)/dansguardian.log |
133 |
|
123 |
|
134 |
clean: |
124 |
clean: |
135 |
rm -f $(OBJ) $(PROG) |
125 |
rm -f $(OBJ) $(PROG) |