diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-08 06:36:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-08 06:36:08 +0000 |
commit | 4916d463645c685e80fb269aa887322a2262ff28 (patch) | |
tree | b9856db7c59028f55c9f40271d5f6cee2f4f1cb2 /net-mail/amavis | |
parent | repoman ... this was a good example of many things to not do ;) (diff) | |
download | gentoo-2-4916d463645c685e80fb269aa887322a2262ff28.tar.gz gentoo-2-4916d463645c685e80fb269aa887322a2262ff28.tar.bz2 gentoo-2-4916d463645c685e80fb269aa887322a2262ff28.zip |
old
Diffstat (limited to 'net-mail/amavis')
-rw-r--r-- | net-mail/amavis/amavis-0.2.1-r2.ebuild | 41 | ||||
-rw-r--r-- | net-mail/amavis/amavis-0.3.12_pre8.ebuild | 138 | ||||
-rw-r--r-- | net-mail/amavis/files/digest-amavis-0.2.1-r2 | 1 | ||||
-rw-r--r-- | net-mail/amavis/files/digest-amavis-0.3.12_pre8 | 1 |
4 files changed, 0 insertions, 181 deletions
diff --git a/net-mail/amavis/amavis-0.2.1-r2.ebuild b/net-mail/amavis/amavis-0.2.1-r2.ebuild deleted file mode 100644 index 42301edf5975..000000000000 --- a/net-mail/amavis/amavis-0.2.1-r2.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis/amavis-0.2.1-r2.ebuild,v 1.12 2003/09/05 02:35:44 msterret Exp $ - -S=${WORKDIR}/${P} -DESCRIPTION="Virus Scanner" -SRC_URI="http://www.amavis.org/dist/${P}.tar.gz" -HOMEPAGE="http://www.amavis.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 sparc " - -DEPEND="net-mail/maildrop - >=net-mail/tnef-0.13 - >=net-mail/vlnx-407e - net-mail/qmail" - -src_compile() { - - ./reconf - econf \ - --with-logdir=/var/log/scanmail \ - --with-virusdir=/var/tmp/virusmails \ - --enable-qmail || die - - make || die -} - -src_install() { - - try make prefix=${D}/usr install - into /usr - dodoc AUTHORS BUGS COPYING ChangeLog FAQ HINTS NEWS README* TODO - dodoc doc/amavis.txt - dohtml -r doc - dodir /var/log/scanmail - dodir /var/tmp/virusmails - chmod 777 ${D}/var/log/scanmail - chmod 777 ${D}/var/tmp/virusmails -} diff --git a/net-mail/amavis/amavis-0.3.12_pre8.ebuild b/net-mail/amavis/amavis-0.3.12_pre8.ebuild deleted file mode 100644 index 1dc6fc1854d2..000000000000 --- a/net-mail/amavis/amavis-0.3.12_pre8.ebuild +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/amavis/amavis-0.3.12_pre8.ebuild,v 1.9 2003/09/05 02:35:44 msterret Exp $ - -DESCRIPTION="A perl module which integrates virus scanning software with your MTA" -HOMEPAGE="http://www.amavis.org" -SRC_URI="mirror://sourceforge/amavis/${P/_/}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" - -IUSE="" - -DEPEND="dev-lang/perl - sys-apps/file - app-arch/arc - sys-apps/bzip2 - app-arch/lha - app-arch/unarj - sys-apps/sharutils - app-arch/unrar - app-arch/zoo - dev-perl/IO-stringy - dev-perl/Unix-Syslog - dev-perl/MailTools - dev-perl/MIME-Base64 - >=dev-perl/MIME-tools-5.313 - >dev-perl/Convert-UUlib-0.2 - >=dev-perl/Convert-TNEF-0.06 - >=dev-perl/Compress-Zlib-1.14 - dev-perl/Archive-Tar - >=dev-perl/Archive-Zip-1.0 - dev-perl/libnet - virtual/mta - virtual/mda" - -S="${WORKDIR}/${P/_/}" - -pkg_setup() { - - if ! grep -q ^amavis: /etc/group ; then - groupadd -g 10025 amavis \ - || die "problem adding the amavis group" - grpconv || die "failed running grpconv" - fi - - if ! grep -q ^amavis: /etc/passwd ; then - useradd -u 10025 -g amavis amavis \ - || die "problem adding the amavis user" - pwconv || die "failed running pwconv" - fi - - if ! grep -a ^virusalert: /etc/mail/aliases ; then - cp /etc/mail/aliases /etc/mail/aliases.orig - echo >> /etc/mail/aliases - echo "# user that virus messages are forwarded to" \ - >> /etc/mail/aliases - echo "virusalert: root" >> /etc/mail/aliases - newaliases || die "check your /etc/mail/aliases for problems" - fi - -} - -mymta=`grep "^virtual/mta net-mail\/\(exim\|postfix\|qmail\)" /var/cache/edb/virtuals | awk -F/ '{print $3}'` - -src_unpack() { - - unpack ${A} - cd ${S} - - if [ "$mymta" == "postfix" ]; then - patch -p1 < ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" - fi - -} - -src_compile() { - - cp configure configure.tmp - sed \ - -e "s:/usr/local/f-prot:/opt/f-prot:" \ - -e "s:ac_dummy=\"\$PATH\:/usr/bin\:/usr/local/bin\":ac_dummy=\"\$PATH\:/usr/bin\:/usr/local/bin\:/opt/vlnx\":" \ - < configure.tmp > configure - - local myconf - - if [ "$mymta" == "postfix" ]; then - myconf="--enable-postfix" - elif [ "$mymta" == "qmail" ]; then - myconf="--enable-qmail" - elif [ "$mymta" == "exim" ]; then - myconf="--enable-exim" - elif [ "$mymta" == "sendmail" ]; then - myconf="--enable-sendmail" - fi - - # The quarantine directory for infected emails - myconf="${myconf} --with-virusdir=/var/amavis/quarantine" - - econf ${myconf} || die "configure failed" - - make || die "make failed" - -} - -src_install() { - - dodir /var/amavis/quarantine - - if [ "$mymta" == "qmail" ]; then - chown -R qmailq:qmail ${D}/var/amavis - else - chown -R amavis:amavis ${D}/var/amavis - fi - - chmod -R 770 ${D}/var/amavis - - keepdir /var/amavis /var/amavis/quarantine - - einstall \ - logdir=${D}/var/amavis \ - runtime_dir=${D}/var/amavis \ - virusdir=${D}/var/amavis/quarantine \ - || die "make install failed" - - dodoc AUTHORS BUGS ChangeLog FAQ HINTS INSTALL NEWS README* TODO -} - -pkg_postinst() { - - einfo "" - einfo "For amavis to work properly with your $mymta installation" - einfo "there are some configuration changes required" - einfo "" - einfo "less /usr/share/doc/amavis-0.3.12_pre8/README.$mymta.gz" - einfo "" -} diff --git a/net-mail/amavis/files/digest-amavis-0.2.1-r2 b/net-mail/amavis/files/digest-amavis-0.2.1-r2 deleted file mode 100644 index 07a826c27a74..000000000000 --- a/net-mail/amavis/files/digest-amavis-0.2.1-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 8d2ce5007d5ad841498ba0294350d492 amavis-0.2.1.tar.gz 236011 diff --git a/net-mail/amavis/files/digest-amavis-0.3.12_pre8 b/net-mail/amavis/files/digest-amavis-0.3.12_pre8 deleted file mode 100644 index e603c0895ace..000000000000 --- a/net-mail/amavis/files/digest-amavis-0.3.12_pre8 +++ /dev/null @@ -1 +0,0 @@ -MD5 7b10f4ad2446c61cb85dd28a1fa7eada amavis-0.3.12pre8.tar.gz 310174 |