1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/anomy-mailtools/anomy-mailtools.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
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 if [ $prefix_auto = 1 ]; then
14 prefix="opt/anomy-mailtools"
19 # Create necessary directories
20 mkdir -p $root$bindir/Anomy/Sanitizer
21 mkdir -p $root$datadir/contrib
22 mkdir -p $root$datadir/testcases/results.def
24 # Install the executables
25 install -v -m 755 bin/*.pl contrib/check_for_virus $root$bindir
26 install -v -m 644 bin/Anomy/*.pm $root$bindir/Anomy
27 install -v -m 644 bin/Anomy/Sanitizer/*.pm $root$bindir/Anomy/Sanitizer
29 # Install the contributed files and testcases
30 install -v -m 644 contrib/* $root$datadir/contrib
31 install -v -m 644 testcases/* $root$datadir/testcases || true
32 install -v -m 644 testcases/results.def/* $root$datadir/testcases/results.def
35 for I in CHANGELOG.sanitizer CREDITS README.sanitizer \
36 sanitizer.html UNICODE.TXT
38 install -v -m 644 $I $root$docdir
41 # Install a sample config that uses ClamAV
42 install -v -m 644 $confdir/sanitizer.cfg $root$sysconfdir
44 # Set up the environment variable
45 echo "Creating /etc/profile.d/$pkg ..."
46 cat <<- EOT > $root/etc/profile.d/$pkg
47 export ANOMY=$root/opt/$pkg
52 hook_add postmake 5 "anomy_custmain"