You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.5 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../dansguardian/dansguardian.conf
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
var_append makeopt " " "CPP=$CXX"
# 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/ \
--sysvdir=$root/etc/rc.d/init.d/ --mandir=$root/usr/man/ \
--logdir=$root/var/log/dansguardian/ --runas_usr=dansguardian \
--runas_grp=dansguardian --piddir=$root/var/run/"
if [ "$SDECFG_PKG_DANSGUARDIAN_DGVIRUS" == 1 ]; then
# Apply the DG Anti-Virus patch
var_append patchfiles ' ' $( match_source_file -p 'antivirus' )
# 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
[ $arch = x86-64 ] &&
var_append makeopt " " "libdir=$libdir"