|
Lines 143-167
Link Here
|
| 143 |
sed -i -e 's/^loadplugin/\#loadplugin/g' ${D}/etc/mail/spamassassin/init.pre |
143 |
sed -i -e 's/^loadplugin/\#loadplugin/g' ${D}/etc/mail/spamassassin/init.pre |
| 144 |
|
144 |
|
| 145 |
# Add the init and config scripts. |
145 |
# Add the init and config scripts. |
| 146 |
newinitd "${FILESDIR}"/3.0.0-spamd.init spamd |
146 |
newinitd "${FILESDIR}"/3.1.8-spamd.init spamd |
| 147 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
147 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
| 148 |
|
148 |
|
| 149 |
if use doc; then |
149 |
use postgres && \ |
| 150 |
dodoc NOTICE TRADEMARK CREDITS INSTALL UPGRADE BUGS USAGE \ |
150 |
sed -i -e 's:@USEPOSTGRES@::' "${D}/etc/init.d/spamd" || \ |
| 151 |
sql/README.bayes sql/README.awl README.ldap procmailrc.example \ |
151 |
sed -i -e '/@USEPOSTGRES@/d' "${D}/etc/init.d/spamd" |
|
|
152 |
|
| 153 |
use mysql && \ |
| 154 |
sed -i -e 's:@USEMYSQL@::' "${D}/etc/init.d/spamd" || \ |
| 155 |
sed -i -e '/@USEMYSQL@/d' "${D}/etc/init.d/spamd" |
| 156 |
|
| 157 |
dodoc NOTICE TRADEMARK CREDITS INSTALL UPGRADE BUGS USAGE \ |
| 158 |
README.ldap procmailrc.example \ |
| 152 |
sample-nonspam.txt sample-spam.txt rules/STATISTICS-set0.txt \ |
159 |
sample-nonspam.txt sample-spam.txt rules/STATISTICS-set0.txt \ |
| 153 |
STATISTICS-set1.txt STATISTICS-set2.txt STATISTICS-set3.txt \ |
160 |
STATISTICS-set1.txt STATISTICS-set2.txt STATISTICS-set3.txt \ |
| 154 |
spamd/PROTOCOL |
161 |
spamd/PROTOCOL |
| 155 |
|
162 |
|
| 156 |
# Rename some docu files so they don't clash with others |
163 |
# Rename some docu files so they don't clash with others |
| 157 |
newdoc spamd/README README.spamd |
164 |
newdoc spamd/README README.spamd |
| 158 |
newdoc sql/README README.sql |
165 |
newdoc ldap/README README.ldap |
| 159 |
newdoc ldap/README README.ldap |
166 |
use qmail && newdoc spamc/README.qmail README.qmail |
| 160 |
use qmail && newdoc spamc/README.qmail README.qmail |
167 |
|
|
|
168 |
dohtml doc/*.html |
| 161 |
|
169 |
|
| 162 |
dohtml doc/*.html |
170 |
if use postgres || use mysql || use sqlite; then |
| 163 |
docinto sql |
171 |
docinto sql |
| 164 |
dodoc sql/*.sql |
172 |
dodoc sql/* |
| 165 |
fi |
173 |
fi |
| 166 |
|
174 |
|
| 167 |
# Install provided tools. See bug 108168 |
175 |
# Install provided tools. See bug 108168 |
|
Lines 181-187
Link Here
|
| 181 |
pkg_postinst() { |
189 |
pkg_postinst() { |
| 182 |
perl-module_pkg_postinst |
190 |
perl-module_pkg_postinst |
| 183 |
|
191 |
|
| 184 |
if ! has_version "perl-core/DB_File"; then |
192 |
if use postgres || use mysql || use sqlite; then |
|
|
193 |
elog "You need to configure your database to be able to use Bayes filter" |
| 194 |
elog "with database backend, otherwise it will still use (and need) the" |
| 195 |
elog "Berkeley DB support." |
| 196 |
elog "Look at the sql/README.bayes file in the documentation directory" |
| 197 |
elog "for how to configure it." |
| 198 |
elif ! has_version "perl-core/DB_File"; then |
| 185 |
einfo "The Bayes backend requires the Berkeley DB to store its data. You" |
199 |
einfo "The Bayes backend requires the Berkeley DB to store its data. You" |
| 186 |
einfo "need to emerge perl-core/DB_File or USE=berkdb to make it available." |
200 |
einfo "need to emerge perl-core/DB_File or USE=berkdb to make it available." |
| 187 |
fi |
201 |
fi |
|
Lines 197-213
Link Here
|
| 197 |
fi |
211 |
fi |
| 198 |
fi |
212 |
fi |
| 199 |
|
213 |
|
| 200 |
if use doc; then |
214 |
elog |
| 201 |
einfo |
215 |
elog "Please read the file" |
| 202 |
einfo "Please read the file" |
216 |
elog " /usr/share/doc/${PF}/INSTALL" |
| 203 |
einfo " /usr/share/doc/${PF}/INSTALL.gz" |
217 |
elog "to find out which optional modules you need to install to enable" |
| 204 |
einfo "to find out which optional modules you need to install to enable" |
218 |
elog "additional features which depend on them." |
| 205 |
einfo "additional features which depend on them." |
219 |
elog |
| 206 |
einfo |
220 |
elog "If upgraded from 2.x, please read the file" |
| 207 |
einfo "If upgraded from 2.x, please read the file" |
221 |
elog " /usr/share/doc/${PF}/UPGRADE" |
| 208 |
einfo " /usr/share/doc/${PF}/UPGRADE.gz" |
222 |
elog |
| 209 |
einfo |
|
|
| 210 |
fi |
| 211 |
|
223 |
|
| 212 |
ewarn |
224 |
ewarn |
| 213 |
ewarn "spamd is not designed to listen to an untrusted network" |
225 |
ewarn "spamd is not designed to listen to an untrusted network" |