Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 40025 Details for
Bug 64778
amavis emerge deceptive, says it uses courier but does not
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Ebuild that applies the courier patch if courier is detected as the MTA
amavis-0.3.12.ebuild (text/plain), 3.16 KB, created by
Michael Farnbach
on 2004-09-20 11:17:01 UTC
(
hide
)
Description:
Ebuild that applies the courier patch if courier is detected as the MTA
Filename:
MIME Type:
Creator:
Michael Farnbach
Created:
2004-09-20 11:17:01 UTC
Size:
3.16 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/amavis-0.3.12.ebuild,v 1.8 2004/07/13 23:23:55 langthang Exp $ > >inherit eutils > >IUSE="" > >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 ~amd64 ~alpha sparc ~ppc" > >DEPEND="dev-lang/perl > sys-apps/file > app-arch/arc > app-arch/bzip2 > app-arch/lha > app-arch/unarj > app-arch/sharutils > app-arch/unrar > app-arch/zoo > app-arch/unzip > 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 > virtual/antivirus" > >S="${WORKDIR}/${P/_/}" > >pkg_setup() { > > enewgroup amavis > enewuser amavis -1 /bin/false /dev/null amavis > pwconv || die > > 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=$(portageq best_version / virtual/mta) > mymta=${mymta%-[0-9]*} > mymta=${mymta##*\/} > einfo "My MTA is: ${mymta}" >} > >src_unpack() { > > unpack ${A} > cd ${S} > > if [ "$mymta" == "postfix" ]; then > epatch ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" > fi > > if [ "$mymta" == "courier" ]; then > epatch ${FILESDIR}/0.3.12-courier.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" == "courier" ]; then > myconf="--enable-courier" > 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/${P}/README.$mymta.gz" > einfo "" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 64778
:
40024
| 40025 |
40026