Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/simscan: ChangeLog simscan-1.4.0.ebuild
Date: Sat, 23 Feb 2008 12:08:05
Message-Id: E1JStAg-0005VM-1C@stork.gentoo.org
1 tupone 08/02/23 12:08:02
2
3 Modified: ChangeLog
4 Added: simscan-1.4.0.ebuild
5 Log:
6 Version bump to 1.4.0
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.5 mail-filter/simscan/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 22 Feb 2008 23:34:12 -0000 1.4
23 +++ ChangeLog 23 Feb 2008 12:08:01 -0000 1.5
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-filter/simscan
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.4 2008/02/22 23:34:12 tupone Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.5 2008/02/23 12:08:01 tupone Exp $
29 +
30 +*simscan-1.4.0 (23 Feb 2008)
31 +
32 + 23 Feb 2008; Tupone Alfredo <tupone@g.o> +simscan-1.4.0.ebuild:
33 + Version bump to 1.4.0
34
35 22 Feb 2008; Tupone Alfredo <tupone@g.o> simscan-1.3.1.ebuild:
36 No need for qmail at buildtime. Bug #199534 by Diego Pettenò
37
38
39
40 1.1 mail-filter/simscan/simscan-1.4.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/simscan-1.4.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/simscan-1.4.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: simscan-1.4.0.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/simscan-1.4.0.ebuild,v 1.1 2008/02/23 12:08:01 tupone Exp $
50
51 inherit autotools toolchain-funcs eutils fixheadtails flag-o-matic
52
53 DESCRIPTION="Simscan, a qmail scanner"
54 HOMEPAGE="http://inter7.com/?page=simscan"
55 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
56 LICENSE="GPL-2"
57
58 SLOT="0"
59 KEYWORDS="~x86 ~amd64"
60 IUSE="attachment clamav dropmsg passthru per-domain quarantine regex received spamassassin"
61
62 RESTRICT="test"
63
64 DEPEND="attachment? ( net-mail/ripmime )
65 clamav? ( app-antivirus/clamav )
66 spamassassin? ( mail-filter/spamassassin )
67 regex? ( dev-libs/libpcre )"
68
69 RDEPEND="${DEPEND}
70 virtual/qmail"
71
72 pkg_setup() {
73 test -z "${SIMSCAN_HITS}" && SIMSCAN_HITS=10
74
75 enewgroup simscan
76 enewuser simscan -1 -1 /dev/null simscan
77
78 use clamav && usermod -a -G simscan,nofiles clamav
79 }
80
81 src_unpack() {
82 unpack ${A}
83 cd "${S}"
84
85 epatch "${FILESDIR}"/${P}-destdir.patch \
86 "${FILESDIR}"/${P}-printf.patch
87
88 sed -i \
89 -e "s:daily.cvd:main.cvd:g" \
90 configure.in \
91 simscanmk.c \
92 || die "sed failed"
93
94 eautoreconf
95 }
96
97 src_compile() {
98 econf \
99 --enable-qmaildir=/var/qmail \
100 --enable-qmail-queue=/var/qmail/bin/qmail-queue \
101 $(use_enable attachment attach) \
102 $(use_enable clamav) \
103 $(use_enable clamav clamdscan /usr/bin/clamdscan) \
104 $(use_enable clamav clamavdb-path /var/lib/clamav) \
105 $(use_enable dropmsg) \
106 $(use_enable spamassassin spam) \
107 $(use_enable spamassassin spamc /usr/bin/spamc) \
108 $(use_enable spamassassin spam-hits ${SIMSCAN_HITS}) \
109 $(use_enable passthru spam-passthru) \
110 $(use_enable quarantine quarantinedir /var/qmail/quarantine) \
111 $(use_enable regex) \
112 $(use_enable received) \
113 $(use_enable per-domain) || die "econf failed"
114
115 emake || die "emake failed"
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die "emake install failed"
120 dodoc AUTHORS ChangeLog README TODO
121
122 keepdir /var/qmail/control
123 keepdir /var/qmail/simscan
124
125 if use clamav; then
126 echo -n ":clam=yes," > "${D}"/var/qmail/control/simcontrol
127 else
128 echo -n ":clam=no," > "${D}"/var/qmail/control/simcontrol
129 fi
130
131 if use spamassassin; then
132 echo "spam=yes,spam_hits=${SIMSCAN_HITS}" >> "${D}"/var/qmail/control/simcontrol
133 else
134 echo "spam=no" >> "${D}"/var/qmail/control/simcontrol
135 fi
136 }
137
138 pkg_postinst() {
139 ewarn "Updating simscan configuration files ..."
140 /var/qmail/bin/simscanmk
141
142 ewarn
143 ewarn "You have to do that every time you update clamav or spamassassin"
144 ewarn
145
146 einfo
147 einfo "In order use simscan update the QMAILQUEUE environment variable"
148 einfo "and point it to /var/qmail/bin/simscan"
149 einfo
150 einfo "Read the documentation and customize /var/qmail/control/simcontrol"
151 einfo
152 }
153
154
155
156 --
157 gentoo-commits@l.g.o mailing list