* changed pyproject-metadata build priority (400.000 -> 109.007)
[t2sde.git] / package / network / dansguardian / dansguardian.conf
blob96d4133e9e95abc2760343acb03ae36adbff89d7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/dansguardian/dansguardian.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 var_append makeopt " " "CPP=$CXX"
15 # I have to define all of this manually or it doesn't install properly.
16 # Don't remove the trailing slash.
17 confopt="--bindir=$root/usr/sbin/ --sysconfdir=$root/etc/dansguardian/ \
18         --sysvdir=$root/etc/rc.d/init.d/ --mandir=$root/usr/man/ \
19         --with-logdir=$root/var/log/dansguardian/ --runas_usr=dansguardian \
20         --runas_grp=dansguardian --with-piddir=$root/var/run/"
22 if [ "$SDECFG_PKG_DANSGUARDIAN_DGVIRUS" == 1 ]; then
23         # Apply the DG Anti-Virus patch
24         var_append patchfiles ' ' $(match_source_file -p 'antivirus')
26         # Install a filter for ClamAV
27         dg_clamav() {
28                 mkdir -pv $root/$prefix/lib/DGVirus
29                 cat > $root/$prefix/lib/DGVirus/clamav-wrapper <<-'EOR'
30 #!/bin/sh
31 ClamScan=/usr/bin/clamdscan
32 exec $ClamScan $ScanOptions "$@"
33 EOR
34                 chmod 755 $root/$prefix/lib/DGVirus/clamav-wrapper
35         }
36         hook_add postmake 3 "dg_clamav"
39 [ $arch = x86-64 ] &&
40         var_append makeopt " " "libdir=$libdir"