Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62075 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]
[patch]
Modifications to the simscan ebuild
simscan-1.1.ebuild.diff (text/plain), 6.30 KB, created by
Ed Cates
on 2005-06-27 10:07:22 UTC
(
hide
)
Description:
Modifications to the simscan ebuild
Filename:
MIME Type:
Creator:
Ed Cates
Created:
2005-06-27 10:07:22 UTC
Size:
6.30 KB
patch
obsolete
>--- simscan-1.1.ebuild.old 2005-06-27 12:04:58.000000000 -0500 >+++ simscan-1.1.ebuild 2005-06-27 12:00:56.000000000 -0500 >@@ -2,27 +2,37 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > >-inherit toolchain-funcs eutils fixheadtails >+inherit toolchain-funcs eutils fixheadtails flag-o-matic > >-IUSE="" >+IUSE="pcre" > DESCRIPTION="simscan is a powerful qmail content scanner." > SRC_URI="http://www.inter7.com/simscan/${P}.tar.gz" > HOMEPAGE="http://www.inter7.com/?page=simscan" > SLOT="0" > LICENSE="GPL-2" >-KEYWORDS="~x86" >+KEYWORDS="x86" > >-DEPEND="mail-mta/qmail >+DEPEND="|| ( mail-mta/qmail-ldap mail-mta/qmail mail-mta/qmail-mysql) >+ pcre? ( >=dev-libs/libpcre-5.0 ) > net-mail/ripmime > app-antivirus/clamav > mail-filter/spamassassin" > >+RDEPEND="${DEPEND}" >+ >+# Where will simscan unpack mail messages for scanning? >+simscan_workdir="/var/spool/simscan" >+ >+# User simscan will run as. "simscan" is the default. >+simscan_user="simscan" >+ >+ >+append-flags "-Wl,-z,now" >+ > pkg_setup() { >- einfo "Creating user, group and directory..." >- enewgroup simscan >- enewuser simscan /bin/false /var/spool/simscan simscan >- diropts -m 755 -o simscan -g simscan >- dodir /var/spool/simscan >+ einfo "Creating user and working directory..." >+ enewuser ${simscan_user} -1 /bin/false ${simscan_workdir} clamav >+ pwconv || die > } > > src_unpack() { >@@ -31,24 +41,84 @@ > } > > src_compile() { >- econf --enable-user=simscan --enable-clamav=y \ >- --enable-clamdscan=`which clamdscan` --enable-per-domain=y \ >- --enable-attach=y --enable-spam=y --enable-spam-passthru=y \ >- --enable-spam-user=n --enable-dropmsg=n --enable-qmaildir=/var/qmail \ >- --enable-workdir=/var/spool/simscan --enable-spamc=`which spamc` \ >- --enable-received=y --enable-spamassassin-path=`which spamassassin` \ >- --enable-clamavdb-path=`which clamscan` --enable-sigtool-path=`which sigtool` || die "Error: econf failed!" >+ >+ local myconf >+ >+ # "simscan" is the default user. If you want to change this, please user the >+ # variable above. >+ myconf="${myconf} --enable-user=${simscan_user}" >+ >+ # Directory where simscan will scan messages. Please edit variable above >+ # to change this value. >+ myconf="${myconf} --enable-workdir=${simscan_workdir}" >+ >+ # If you want to keep SPAM/virus messages in a quarantine, uncomment this: >+ # myconf="${myconf} --enable-quarantinedir=${simscan_workdir}/quarantine" >+ >+ # Scanning attachments is a good idea, eh? >+ myconf="${myconf} --enable-attach=y" >+ >+ # If scanning for attachments, we need ripmime: >+ myconf="${myconf} --enable-ripmime=`which ripmime`" >+ >+ # Allow different configuration rules for different domains. This ebuild >+ # provides a reasonable default "catchall" rule, so leaving this enabled >+ # won't really hurt anything. >+ myconf="${myconf} --enable-per-domain=y" >+ >+ # clamav is enabled by default. Change to "n" and uncomment to disable >+ # myconf="${myconf} --enable-clamav=y" >+ >+ # Tell simscan where the clamdscan binary is. This option does nothing if >+ # clamav is not enabled. >+ myconf="${myconf} --enable-clamdscan=`which clamdscan`" >+ >+ # spamassassin scanning is enabled. Uncomment the 'spamc-args' line >+ # to pass custom arguments to spamc. >+ myconf="${myconf} --enable-spam=y" >+ myconf="${myconf} --enable-spamc=`which spamc`" >+ # myconf="${myconf} --enable-spamc-args="" >+ >+ # By default, this installation will reject (drop) any message with >+ # a spamassassin score > 10 >+ myconf="${myconf} --enable-spam-hits=10" >+ myconf="${myconf} --enable-dropmsg=y" >+ >+ # If you want SPAM/virus messages to go on to their intended user, >+ # uncomment the following line and comment out "spam-hits" and "dropmsg" >+ # above >+ # myconf="${myconf} --enable-spam-passthru >+ >+ # If you want to set up super-funky per-user spam scanning options, read the >+ # docs and change this to "y" >+ myconf="${myconf} --enable-spam-user=n" >+ >+ # Enable regular expression scanning if 'pcre' is in USE >+ myconf="${myconf} `use_enable pcre regex`" >+ >+ # This adds a "Received:" header to scanned e-mail, showing how many scanners/filters >+ # simscan invoked. If you comment this out, you can comment out the path information >+ # below. >+ myconf="${myconf} --enable-received=y" >+ >+ # Path information for 'enable-received' >+ myconf="${myconf} --enable-clamavdb-path=/var/lib/clamav" >+ myconf="${myconf} --enable-sigtool-path=`which sigtool`" >+ >+ myconf="${myconf} --enable-spamassassin-path=`which spamassassin`" >+ >+ econf ${myconf} || die > > emake || die > } > > src_install() { > >- insopts -o simscan -g simscan -m 0755 >+ insopts -o simscan -g clamav -m 0755 > insinto /var/qmail/bin > doins simscanmk > >- insopts -o simscan -g simscan -m 4755 >+ insopts -o simscan -g clamav -m 4755 > insinto /var/qmail/bin > doins simscan > >@@ -59,24 +129,51 @@ > > einfo "Setting default configuration..." > touch simcontrol >- echo :clam=yes,spam=yes > simcontrol >+ echo ":clam=yes,spam=yes,attach=.scr:.bat:.com:.pif:.exe" > simcontrol > insopts -o root -g root -m 644 > insinto /var/qmail/control > doins simcontrol >- >+ > touch ssattach > insopts -o root -g root -m 644 > insinto /var/qmail/control > doins ssattach > } > >-pkg_postinst () { >- einfo "to activate simscan, please edit your" >+pkg_preinst() { >+ einfo "Creating user and directory..." >+ enewuser simscan -1 /bin/false /var/spool/simscan clamav >+ diropts -m 2775 -o simscan -g clamav >+ dodir ${simscan_workdir} >+} >+ >+pkg_postinst() { >+ einfo "To activate simscan, please edit your" > einfo "/var/qmail/control/conf-common file and set:" > einfo "export QMAILQUEUE=/var/qmail/bin/simscan" > einfo "or place it in your tcprules file." >- >- einfo "run /var/qmail/bin/simscanmk -g to build" >- einfo "your configuration" >+ echo "" >+ einfo "Running '/var/qmail/bin/simscanmk' & '/var/qmail/bin/simscanmk -g' to build" >+ einfo "your configuration." >+ einfo " `/var/qmail/bin/simscanmk` " >+ einfo " `/var/qmail/bin/simscanmk -g`" >+ echo "" >+ ewarn "Simscan has been configured to block the following attachments by default:" >+ ewarn " .scr: Windows screensavers" >+ ewarn " .bat: 'DOS' batch file executables" >+ ewarn " .com: Windows command files" >+ ewarn " .pif: Windows Program Information File" >+ ewarn " .exe: Windows executables" >+ ewarn "Read the documentation and see /var/qmail/control/simcontrol" >+ echo "" > } > >+pkg_postrm() { >+ >+ for i in `ls /var/qmail/control/sim*` ; do >+ rm -rf ${i} >+ done >+ >+ userdel ${simscan_user} >+ >+}
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 90605
:
57376
|
62075
|
89703
|
89705
|
89934
|
89935
|
100154
|
107408
|
107409
|
115019
|
115021
|
115023
|
115024
|
116128
|
116130