Browse Source

Chris Efant:


			
			
				rocklinux
			
			
		
Chris Efant 21 years ago
parent
commit
e7ab08f7e5
6 changed files with 73 additions and 5 deletions
  1. +8
    -0
      package/sirkull/dansguardian/config.hlp
  2. +9
    -0
      package/sirkull/dansguardian/config.in
  3. +16
    -3
      package/sirkull/dansguardian/dansguardian.conf
  4. +6
    -2
      package/sirkull/dansguardian/dansguardian.desc
  5. +17
    -0
      package/sirkull/dansguardian/pkg_squid_pre.conf
  6. +17
    -0
      package/sirkull/perl-mail-sender/perl-mail-sender.desc

+ 8
- 0
package/sirkull/dansguardian/config.hlp

@ -0,0 +1,8 @@
ROCKCFG_PKG_DANSGUARDIAN_SQUID
This adds the Follow X-Forwarded-For support to Squid. This is needed
if you wish to use ACLs on clients accessing through DansGuardian.
ROCKCFG_PKG_DANSGUARDIAN_DGVIRUS
This adds Virus Scanning support to DansGuardian using the
DansGuardian Anti-Virus Plugin.

+ 9
- 0
package/sirkull/dansguardian/config.in

@ -0,0 +1,9 @@
if pkgcheck dansguardian X
then
menu_begin MENU_PKG_DANSGUARDIAN 'DansGuardian Options'
bool 'Add Follow X-Forwarded-For support to Squid' ROCKCFG_PKG_DANSGUARDIAN_SQUID 0
bool 'Add Virus Scanning support to DansGuardian' ROCKCFG_PKG_DANSGUARDIAN_DGVIRUS 0
menu_end
fi

+ 16
- 3
package/sirkull/dansguardian/dansguardian.conf

@ -20,9 +20,6 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
srctar="DansGuardian-$ver-$extraver.source.tar.bz2"
srcdir="DansGuardian-$ver"
# I have to define all of this manually or it doesn't install properly.
# Don't remove the trailing slash.
confopt="--bindir=$root/usr/sbin/ --sysconfdir=$root/etc/dansguardian/ \
@ -32,3 +29,19 @@ confopt="--bindir=$root/usr/sbin/ --sysconfdir=$root/etc/dansguardian/ \
hook_add postmake 3 "install_init dansguardian $confdir/dansguardian.init"
if [ "$ROCKCFG_PKG_DANSGUARDIAN_DGVIRUS" == 1 ]; then
# Apply the DG Anti-Virus patch
hook_add preconf 3 "bunzip2 -c $archdir/$dgav_patch|patch -p1"
# Install a filter for ClamAV
function dg_clamav() {
mkdir -pv $root/$prefix/lib/DGVirus
cat > $root/$prefix/lib/DGVirus/clamav-wrapper <<-'EOR'
#!/bin/sh
ClamScan=/usr/bin/clamdscan
exec $ClamScan $ScanOptions "$@"
EOR
chmod 755 $root/$prefix/lib/DGVirus/clamav-wrapper
}
hook_add postmake 3 "dg_clamav"
fi

+ 6
- 2
package/sirkull/dansguardian/dansguardian.desc

@ -40,8 +40,12 @@
[L] GPL
[S] Stable
[V] 2.6.1 12
[V] 2.6.1-13
[P] X -----5---9 307.000
[D] 141105017 DansGuardian-2.6.1-12.source.tar.gz http://sun.dansguardian.org/downloads/2/Stable/
[D] 3441682658 DansGuardian-2.6.1-13.source.tar.gz http://sun.dansguardian.org/downloads/2/Stable/
[D] 1647486319 follow_xff-2.5-rediff-1.patch.bz2 http://www.sirkull.org/downloads/rock/patches/
[D] 2571121125 DansGuardian-2.6.1-3-AntiVirus-3.1.patch.gz http://www.pcxperience.org/dgvirus/patches/DG2.6/
[O] dgav_patch=DansGuardian-2.6.1-3-AntiVirus-3.1.patch.bz2

+ 17
- 0
package/sirkull/dansguardian/pkg_squid_pre.conf

@ -0,0 +1,17 @@
if [ "$ROCKCFG_PKG_DANSGUARDIAN_SQUID" == 1 ]; then
function dg_squid_preconf() {
# Add the X-Forwarded-For patch
echo "Adding Follow X-Forwarded-For patch"
bunzip2 -c $base/download/sirkull/dansguardian/follow_xff-2.5-rediff-1.patch.bz2 \
| patch -p1
# Need to regenerate the config files
./bootstrap.sh||true
# Add X-Forwarded-For support
var_append confopt " " "--enable-follow-x-forwarded-for"
}
hook_add preconf 3 "dg_squid_preconf"
fi

+ 17
- 0
package/sirkull/perl-mail-sender/perl-mail-sender.desc

@ -0,0 +1,17 @@
[I] Perl module for sending mails with attachments
[T] Module for sending mails with attachments through an SMTP server
[A] Jan Krynicky <Jenda@Krynicky.cz>
[M] Chris Efant <rock@sirkull.org>
[C] extra/development
[L] OpenSource
[S] Stable
[V] 0.8.10
[P] X -----5---9 224.000
[D] 2746755259 Mail-Sender-0.8.10.tar.gz http://www.cpan.org/authors/id/J/JE/JENDA/

Loading…
Cancel
Save