# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/dansguardian/dansguardian.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-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/ \ --with-logdir=$root/var/log/dansguardian/ --runas_usr=dansguardian \ --runas_grp=dansguardian --with-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 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"