# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/anomy-mailtools/anomy-mailtools.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2004 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 --- if [ $prefix_auto = 1 ]; then prefix="opt/anomy-mailtools" set_confopt fi anomy_custmain() { # Create necessary directories mkdir -p $root$bindir/Anomy/Sanitizer mkdir -p $root$datadir/contrib mkdir -p $root$datadir/testcases/results.def # Install the executables install -v -m 755 bin/*.pl contrib/check_for_virus $root$bindir install -v -m 644 bin/Anomy/*.pm $root$bindir/Anomy install -v -m 644 bin/Anomy/Sanitizer/*.pm $root$bindir/Anomy/Sanitizer # Install the contributed files and testcases install -v -m 644 contrib/* $root$datadir/contrib install -v -m 644 testcases/* $root$datadir/testcases || true install -v -m 644 testcases/results.def/* $root$datadir/testcases/results.def # Install the docs for I in CHANGELOG.sanitizer CREDITS README.sanitizer \ sanitizer.html UNICODE.TXT do install -v -m 644 $I $root$docdir done # Install a sample config that uses ClamAV install -v -m 644 $confdir/sanitizer.cfg $root$sysconfdir # Set up the environment variable echo "Creating /etc/profile.d/$pkg ..." cat <<- EOT > $root/etc/profile.d/$pkg export ANOMY=$root/opt/$pkg EOT } makeopt= makeinstopt= hook_add postmake 5 "anomy_custmain" createdocs=0