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.
57 lines
1.8 KiB
57 lines
1.8 KiB
18 years ago
|
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# T2 SDE: package/.../anomy-mailtools/anomy-mailtools.conf
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
# Copyright (C) 1998 - 2004 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.
|
||
|
# --- 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
|
||
|
}
|
||
|
|
||
|
custmain="anomy_custmain"
|
||
|
createdocs=0
|
||
|
|