1 |
tupone 08/03/02 22:38:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: simscan-1.4.0-r1.ebuild |
5 |
Log: |
6 |
Adding USE flags for spamc-user, spam-auth-user and custom-smtp-reject |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 mail-filter/simscan/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/ChangeLog?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- ChangeLog 25 Feb 2008 17:21:50 -0000 1.6 |
23 |
+++ ChangeLog 2 Mar 2008 22:38:04 -0000 1.7 |
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.6 2008/02/25 17:21:50 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.7 2008/03/02 22:38:04 tupone Exp $ |
29 |
+ |
30 |
+*simscan-1.4.0-r1 (02 Mar 2008) |
31 |
+ |
32 |
+ 02 Mar 2008; Tupone Alfredo <tupone@g.o> +simscan-1.4.0-r1.ebuild: |
33 |
+ Adding USE flags for spamc-user, spam-auth-user and custom-smtp-reject |
34 |
|
35 |
25 Feb 2008; Jeroen Roovers <jer@g.o> simscan-1.4.0.ebuild: |
36 |
Fix patch names (thanks to Tobias Schlitt on IRC). |
37 |
|
38 |
|
39 |
|
40 |
1.1 mail-filter/simscan/simscan-1.4.0-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/simscan-1.4.0-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/simscan/simscan-1.4.0-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: simscan-1.4.0-r1.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-r1.ebuild,v 1.1 2008/03/02 22:38:04 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 custom-smtp-reject dropmsg passthru per-domain |
61 |
quarantine regex received spamassassin spamc-user spam-auth-user" |
62 |
|
63 |
RESTRICT="test" |
64 |
|
65 |
DEPEND="attachment? ( net-mail/ripmime ) |
66 |
clamav? ( app-antivirus/clamav ) |
67 |
spamassassin? ( mail-filter/spamassassin ) |
68 |
regex? ( dev-libs/libpcre )" |
69 |
|
70 |
RDEPEND="${DEPEND} |
71 |
virtual/qmail" |
72 |
|
73 |
pkg_setup() { |
74 |
test -z "${SIMSCAN_HITS}" && SIMSCAN_HITS=10 |
75 |
|
76 |
enewgroup simscan |
77 |
enewuser simscan -1 -1 /dev/null simscan |
78 |
|
79 |
use clamav && usermod -a -G simscan,nofiles clamav |
80 |
} |
81 |
|
82 |
src_unpack() { |
83 |
unpack ${A} |
84 |
cd "${S}" |
85 |
|
86 |
epatch "${FILESDIR}"/${PN}-1.3.1-destdir.patch \ |
87 |
"${FILESDIR}"/${PN}-1.3.1-printf.patch |
88 |
|
89 |
sed -i \ |
90 |
-e "s:daily.cvd:main.cvd:g" \ |
91 |
configure.in \ |
92 |
simscanmk.c \ |
93 |
|| die "sed failed" |
94 |
|
95 |
eautoreconf |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
econf \ |
100 |
--enable-qmaildir=/var/qmail \ |
101 |
--enable-qmail-queue=/var/qmail/bin/qmail-queue \ |
102 |
$(use_enable attachment attach) \ |
103 |
$(use_enable clamav) \ |
104 |
$(use_enable clamav clamdscan /usr/bin/clamdscan) \ |
105 |
$(use_enable clamav clamavdb-path /var/lib/clamav) \ |
106 |
$(use_enable dropmsg) \ |
107 |
$(use_enable spamassassin spam) \ |
108 |
$(use_enable spamassassin spamc /usr/bin/spamc) \ |
109 |
$(use_enable spamassassin spam-hits ${SIMSCAN_HITS}) \ |
110 |
$(use_enable spamc-user) \ |
111 |
$(use_enable spam-auth-user) \ |
112 |
$(use_enable passthru spam-passthru) \ |
113 |
$(use_enable quarantine quarantinedir /var/qmail/quarantine) \ |
114 |
$(use_enable regex) \ |
115 |
$(use_enable custom-smtp-reject) \ |
116 |
$(use_enable received) \ |
117 |
$(use_enable per-domain) || die "econf failed" |
118 |
|
119 |
emake || die "emake failed" |
120 |
} |
121 |
|
122 |
src_install() { |
123 |
emake DESTDIR="${D}" install || die "emake install failed" |
124 |
dodoc AUTHORS ChangeLog README TODO |
125 |
|
126 |
keepdir /var/qmail/control |
127 |
keepdir /var/qmail/simscan |
128 |
|
129 |
if use clamav; then |
130 |
echo -n ":clam=yes," > "${D}"/var/qmail/control/simcontrol |
131 |
else |
132 |
echo -n ":clam=no," > "${D}"/var/qmail/control/simcontrol |
133 |
fi |
134 |
|
135 |
if use spamassassin; then |
136 |
echo "spam=yes,spam_hits=${SIMSCAN_HITS}" >> "${D}"/var/qmail/control/simcontrol |
137 |
else |
138 |
echo "spam=no" >> "${D}"/var/qmail/control/simcontrol |
139 |
fi |
140 |
} |
141 |
|
142 |
pkg_postinst() { |
143 |
ewarn "Updating simscan configuration files ..." |
144 |
/var/qmail/bin/simscanmk |
145 |
|
146 |
ewarn |
147 |
ewarn "You have to do that every time you update clamav or spamassassin" |
148 |
ewarn |
149 |
|
150 |
einfo |
151 |
einfo "In order use simscan update the QMAILQUEUE environment variable" |
152 |
einfo "and point it to /var/qmail/bin/simscan" |
153 |
einfo |
154 |
einfo "Read the documentation and customize /var/qmail/control/simcontrol" |
155 |
einfo |
156 |
} |
157 |
|
158 |
|
159 |
|
160 |
-- |
161 |
gentoo-commits@l.g.o mailing list |