|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/sirkull/squidguard/squidguard.conf
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
if [ $prefix_auto = 1 ] ; then
|
|
prefix="opt/squid"
|
|
set_confopt
|
|
fi
|
|
|
|
var_append confopt " " "--with-sg-config=$sysconfdir/squidGuard.conf"
|
|
var_append confopt " " "--with-sg-dbhome=$localstatedir/db"
|
|
var_append confopt " " "--with-sg-logdir=$localstatedir/log"
|
|
|
|
# Apply the Debian patch
|
|
squidguard_preconf() {
|
|
bunzip2 -c $archdir/squidguard_$ver-$extraver.diff.bz2 | patch -p1
|
|
}
|
|
|
|
# Take care of everything "make install" doesn't install
|
|
squidguard_postmake() {
|
|
# Create missing directories and set permissions
|
|
mkdir -pv $root/$docdir
|
|
mkdir -pv $root/$datadir/examples
|
|
mkdir -pv $root/$mandir/man1
|
|
mkdir -pv $root/$sysconfdir
|
|
mkdir -pv $root/$localstatedir/db
|
|
mkdir -pv $root/$localstatedir/log
|
|
chown -R nobody:nogroup $root/$localstatedir/db
|
|
|
|
# Install sample config
|
|
cp $confdir/squidguard.conf $root/$sysconfdir/squidGuard.conf || true
|
|
|
|
# Install the CGI
|
|
cp -v samples/*.cgi $root/$datadir/examples || true
|
|
|
|
# Install the documentation
|
|
cp -v doc/*.{txt,gif,html} $root/$docdir || true
|
|
|
|
# Install the manpage
|
|
cp -v debian/squidGuard.1 $root/$mandir/man1 || true
|
|
}
|
|
|
|
preconf="squidguard_preconf"
|
|
postmake="squidguard_postmake"
|
|
|
|
srctar="squidGuard-$ver.tar.bz2"
|
|
srcdir="squidGuard-$ver"
|
|
|