aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2003-01-04 18:59:25 +0800
committerdemon <demon@FreeBSD.org>2003-01-04 18:59:25 +0800
commit5091ebd371f2fa7832d7c7e3cbff4064ad5cdb12 (patch)
tree142cc6d4d0d22f7fb8ffdfa4cf8f82353f14cd29
parentc3ffbccd195070f044442ca560ed736339e59d69 (diff)
downloadfreebsd-ports-gnome-5091ebd371f2fa7832d7c7e3cbff4064ad5cdb12.tar.gz
freebsd-ports-gnome-5091ebd371f2fa7832d7c7e3cbff4064ad5cdb12.tar.zst
freebsd-ports-gnome-5091ebd371f2fa7832d7c7e3cbff4064ad5cdb12.zip
Fix broken files (duplicate contents).
Noticed by: Blaz Zupan <blaz@si.FreeBSD.org> Pointy hat to: /me
-rw-r--r--security/amavisd-new/files/DEINSTALL.tmpl33
-rw-r--r--security/amavisd-new/files/INSTALL.tmpl48
-rw-r--r--security/amavisd-new/files/MESSAGE.tmpl15
-rw-r--r--security/amavisd-new/files/amavisd.sh.tmpl37
-rw-r--r--security/amavisd-new/files/patch-amavisd.conf35
5 files changed, 2 insertions, 166 deletions
diff --git a/security/amavisd-new/files/DEINSTALL.tmpl b/security/amavisd-new/files/DEINSTALL.tmpl
index ab47a8059013..53e7a696dc43 100644
--- a/security/amavisd-new/files/DEINSTALL.tmpl
+++ b/security/amavisd-new/files/DEINSTALL.tmpl
@@ -1,37 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/DEINSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
-#
-
-USER=%%AMAVISUSER%%
-GROUP=%%AMAVISGROUP%%
-DIR=%%AMAVISDIR%%
-QUARANTINE=%%AMAVISQUARANTINE%%
-
-if [ "$2" = "POST-DEINSTALL" ]; then
-
- if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
- /usr/sbin/pw groupdel ${GROUP}
- echo "Deleted group \"${GROUP}\"."
- fi
-
- if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
- /usr/sbin/pw userdel ${USER}
- echo "Deleted user \"${USER}\"."
- fi
-
- if [ -e ${DIR} ]; then
- /bin/rm -rf ${DIR}
- echo "Deleted \"${DIR}\" directory."
- fi
-
- if [ -e ${QUARANTINE} ]; then
- echo "You should manually remove the \"${QUARANTINE}\" directory."
- fi
-fi
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/DEINSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
+# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/DEINSTALL.tmpl,v 1.2 2003-01-04 10:59:25 demon Exp $
#
USER=%%AMAVISUSER%%
diff --git a/security/amavisd-new/files/INSTALL.tmpl b/security/amavisd-new/files/INSTALL.tmpl
index 7f8bf5b8edbc..1b8cc6e0cd35 100644
--- a/security/amavisd-new/files/INSTALL.tmpl
+++ b/security/amavisd-new/files/INSTALL.tmpl
@@ -1,52 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/INSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
-#
-
-USER=%%AMAVISUSER%%
-GROUP=%%AMAVISGROUP%%
-DIR=%%AMAVISDIR%%
-QUARANTINE=%%AMAVISQUARANTINE%%
-
-if [ "$2" = "PRE-INSTALL" ]; then
-
- if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if /usr/sbin/pw groupadd ${GROUP} -h -
- then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- fi
-
- if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if /usr/sbin/pw useradd ${USER} -g ${GROUP} -h - \
- -d ${DIR} \
- -s /bin/sh \
- -c "Scanning Virus Account"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- fi
-
- /usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${DIR}
- echo "Created \"${DIR}\" directory."
- /usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${QUARANTINE}
- echo "Created \"${QUARANTINE}\" directory."
-fi
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/INSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
+# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/INSTALL.tmpl,v 1.2 2003-01-04 10:59:25 demon Exp $
#
USER=%%AMAVISUSER%%
diff --git a/security/amavisd-new/files/MESSAGE.tmpl b/security/amavisd-new/files/MESSAGE.tmpl
index 0082cf726f01..88e297c716e6 100644
--- a/security/amavisd-new/files/MESSAGE.tmpl
+++ b/security/amavisd-new/files/MESSAGE.tmpl
@@ -13,18 +13,3 @@
%%DOCSDIR%%.
*******************************************************************
-
-*******************************************************************
- To use amavisd-new, you need to install at least one virus scanner.
- For example McAfee VirusScan is available as a FreeBSD port
- in /usr/ports/security/vscan. If you want to use the amavis sendmail
- milter interface, you need to type the following command:
-
- touch %%AMAVISDIR%%/use.milter
-
- A configuration template is available in %%PREFIX%%/etc
- as amavisd.conf-dist. Copy it to amavisd.conf and edit it to
- suit your needs. Documentation is available in
- %%DOCSDIR%%.
-*******************************************************************
-
diff --git a/security/amavisd-new/files/amavisd.sh.tmpl b/security/amavisd-new/files/amavisd.sh.tmpl
index 21d13f537961..5c49ebf710e1 100644
--- a/security/amavisd-new/files/amavisd.sh.tmpl
+++ b/security/amavisd-new/files/amavisd.sh.tmpl
@@ -35,40 +35,3 @@ stop)
esac
exit 0
-#!/bin/sh
-
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-DIR=%%AMAVISDIR%%
-PIDFILE=$DIR/amavisd.pid
-CONFIGFILE=${PREFIX}/etc/amavisd.conf
-SOCKFILES=$DIR/amavis*.sock
-MILTERFLAG=$DIR/use.milter
-
-case "$1" in
-start)
- if [ -e ${PREFIX}/etc/amavisd.conf ]; then
- rm -rf ${SOCKFILES}
- if [ -e $MILTERFLAG ]; then
- su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavis-milter -D -p $DIR/amavis-milter.sock"
- fi
- su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavisd -c ${CONFIGFILE} > /dev/null 2>&1" && echo -n ' amavisd'
- fi
- ;;
-stop)
- if [ -e $MILTERFLAG ]; then
- killall -u %%AMAVISUSER%% amavis-milter >/dev/null 2>&1
- fi
- if [ -e $PIDFILE ]; then
- su %%AMAVISUSER%% -c "kill `cat $PIDFILE`" && echo -n ' amavisd'
- fi
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- ;;
-esac
-
-exit 0
diff --git a/security/amavisd-new/files/patch-amavisd.conf b/security/amavisd-new/files/patch-amavisd.conf
index dfe969ab8dea..9419a5d3497f 100644
--- a/security/amavisd-new/files/patch-amavisd.conf
+++ b/security/amavisd-new/files/patch-amavisd.conf
@@ -33,38 +33,3 @@
# ... or set directly:
map { $whitelist_sender{lc($_)}=1 } (qw(
---- amavisd.conf.orig Fri Dec 27 16:04:17 2002
-+++ amavisd.conf Fri Jan 3 22:29:45 2003
-@@ -36,11 +36,11 @@
- #
-
- # Set the user and group to which the daemon will change when started as root:
--$daemon_user = 'amavis'; # (no default; customary: vscan or amavis)
--$daemon_group = 'amavis'; # (no default)
-+$daemon_user = '%%AMAVISUSER%%'; # (no default; customary: vscan or amavis)
-+$daemon_group = '%%AMAVISGROUP%%'; # (no default)
-
- # Runtime directory (no trailing slash, defaults to '/var/amavis')
--$TEMPBASE = '/var/amavis';
-+$TEMPBASE = '%%AMAVISDIR%%';
-
-
- # MTA SETTINGS, UNCOMMENT AS APPROPRIATE, defaults to 'smtp:127.0.0.1:10025'
-@@ -309,7 +309,7 @@
- # or a directory (no trailing slash)
- # (the default value is undef, meaning no quarantine)
- #
--$QUARANTINEDIR = '/var/virusmails';
-+$QUARANTINEDIR = '%%AMAVISQUARANTINE%%';
-
-
- # A finer control of quarantining is available through variable
-@@ -638,7 +638,7 @@
- # a hash lookup table can be read from a file,
- # one address per line, comments and empty lines are permitted:
- #
--read_hash(\%whitelist_sender, '/var/amavis/whitelist_sender');
-+#read_hash(\%whitelist_sender, '/var/amavis/whitelist_sender');
-
- # ... or set directly:
- map { $whitelist_sender{lc($_)}=1 } (qw(