Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 116130 Details for
Bug 90605
simscan-1.1.ebuild (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New simscan-1.1.ebuild (please use this ebuild instead the old one)
simscan-1.1.ebuild (text/plain), 4.82 KB, created by
Andrea Cerrito
on 2007-04-13 07:59:49 UTC
(
hide
)
Description:
New simscan-1.1.ebuild (please use this ebuild instead the old one)
Filename:
MIME Type:
Creator:
Andrea Cerrito
Created:
2007-04-13 07:59:49 UTC
Size:
4.82 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit toolchain-funcs eutils fixheadtails flag-o-matic > >DESCRIPTION="Simscan, a qmail scanner" >HOMEPAGE="http://inter7.com:?page=simscan" >SRC_URI="http://inter7.com/simscan/${P}.tar.gz" >LICENSE="GPL-1" >SLOT="0" >KEYWORDS="~x86 ~amd64" >IUSE="attachment clamav custom-smtp-reject dropmsg passthru perdomain >quarantine regex received spamassassin" > >RESTRICT="test" >DEPEND="attachment? ( net-mail/ripmime ) > clamav? ( app-antivirus/clamav ) > spamassassin? ( mail-filter/spamassassin ) > regex? ( dev-libs/libpcre )" >RDEPEND="${DEPEND} > virtual/qmail" > >S=${WORKDIR}/${P} > >src_unpack() { > unpack ${P}.tar.gz > cd "${S}" > epatch ${FILESDIR}/simscan-configurenouser-${PV}.patch > sed -i "s:daily.cvd:main.cvd:g" configure > sed -i "s:daily.cvd:main.cvd:g" configure.in > sed -i "s:daily.cvd:main.cvd:g" simscanmk.c >} > >pkg_preinst() { > # setup simscan user and group > enewgroup simscan > enewuser simscan -1 -1 /dev/null simscan > > einfo "Adding conf.d entry for simscan" > newconfd "${FILESDIR}"/simscan.confd simscan >} > >src_compile() { > local myconf > > if useq attachment; then > myconf="${myconf} --enable-attach=y --enable-ripmime=/usr/bin/ripmime" > else > myconf="${myconf} --enable-attach=n" > fi > > if useq clamav; then > myconf="${myconf} --enable-clamav=y > --enable-clamdscan=/usr/bin/clamdscan --enable-clamavdb-path=/var/lib/clamav/" > else > myconf="${myconf} --enable-clamav=n" > fi > > if use custom-smtp-reject ; then > myconf="${myconf} --enable-custom-smtp-reject=y" > else > myconf="${myconf} --enable-custom-smtp-reject=n" > fi > > if useq dropmsg; then > myconf="${myconf} --enable-dropmsg=y" > else > myconf="${myconf} --enable-dropmsg=n" > fi > > if useq spamassassin; then > myconf="${myconf} --enable-spam=y \ > --enable-spamc=/usr/bin/spamc \ > --enable-spamc-user=n" > if useq passthru; then > myconf="${myconf} --enable-spam-passthru=y" > else > export `cat "${FILESDIR}"/simscan.confd` > myconf="${myconf} --enable-spam-hits=${SPAM_HITS}" > fi > if useq quarantine; then > myconf="${myconf} --enable-quarantinedir=/var/qmail/quarantine" > fi > else > myconf="${myconf} --enable-spam=n" > fi > > if useq regex; then > myconf="${myconf} --enable-regex=y" > else > myconf="${myconf} --enable-regex=n" > fi > > if useq received; then > myconf="${myconf} --enable-received=y" > else > myconf="${myconf} --enable-received=n" > fi > > if useq perdomain; then > myconf="${myconf} --enable-per-domain=y" > else > myconf="${myconf} --enable-per-domain=n" > fi > > myconf="${myconf} --enable-user=simscan" > > if useq spamassassin; then > ./configure ${myconf} \ > --enable-spamc-args="-u spamd" || die "econf failed" > else > ./configure ${myconf} || die "econf failed" > fi > emake LDFLAGS='-Wl,-z,now' || die "emake failed" >} > >src_install() { > einfo "Installing documentation and contrib files" > dodoc AUTHORS README TODO > > docinto contrib > dodoc contrib/*.patch > > einfo "Installing binaries" > exeinto /var/qmail/bin > doexe simscan > doexe simscanmk > > diropts -m750 > dodir /var/qmail/simscan > fowners simscan /var/qmail/bin/simscan > fowners simscan:simscan /var/qmail/simscan > fperms 4711 /var/qmail/bin/simscan > fperms 770 /var/qmail/simscan > keepdir /var/qmail/simscan > > einfo "Setting default configuration..." > echo ':clam=yes,spam=yes'>simcontrol > insopts -o root -g root -m 644 > insinto /var/qmail/control > doins simcontrol >} > >pkg_postinst() { > # Clamav runs as user clamav (default) > # It's necessary to update the clamav permissions > # to permit scan of simscan directory and files > if useq clamav; then > usermod -G simscan,nofiles clamav > fi > > einfo "" > einfo "Now update the simscan configuration files :" > ewarn "You have to do that after clamav or spamassassin update" > einfo "" > einfo "/var/qmail/bin/simscanmk" > einfo "`/var/qmail/bin/simscanmk`" > einfo "" > > # simscanmk -g works only if simscan is compiled > # with custom-smtp-reject > # > if useq custom-smtp-reject; then > einfo "/var/qmail/bin/simscanmk -g" > einfo "`/var/qmail/bin/simscanmk -g`" > einfo "" > einfo "You must have qmail with QMAILQUEUE patch" > ewarn "Becareful, if you use the \"custom-smtp-reject\" flag you will" > ewarn "have many problems if qmail was not patched with" > ewarn "qmail-queue-custom-error.patch" > ewarn "" > ewarn "If your not sure, re-emerge simscan without this flag" > ebeep 5 > einfo "" > fi > einfo "And, in order use simscan, edit your tcp.qmail-smtpd rules" > einfo "and update as follow (for example only)" > einfo "" > einfo ":allow,QMAILQUEUE=\"/var/qmail/bin/simscan\"" > einfo "" > > ewarn "Read the documentation and personnalize /var/qmail/control/simcontrol" > 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 90605
:
57376
|
62075
|
89703
|
89705
|
89934
|
89935
|
100154
|
107408
|
107409
|
115019
|
115021
|
115023
|
115024
|
116128
| 116130