mirror of the now-defunct rocklinux.org
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.
 
 
 
 
 
 

63 lines
2.1 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/sirkull/anomy-mailtools/anomy-mailtools.conf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# 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; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-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