remove own courierebuild, everything is in portage
Hanno Böck

Hanno Böck commited on 2008-05-06 00:33:19
Zeige 14 geänderte Dateien mit 0 Einfügungen und 1015 Löschungen.

... ...
@@ -1,15 +0,0 @@
1
-AUX apache-sqwebmail.inc 347 RMD160 9d046149af6138320448fe7bb762b142e0eb9b94 SHA1 4996c33b74a3c9b70886f27948334e3880df8073 SHA256 3a6616dacfd49ab0c89c62d9df5662fc3c2d9e598786d781240bf5e8900afc65
2
-AUX courier-0.48.1-spf-error-handling.patch 318 RMD160 3051e323b9564e9e31d9593ef2a1afb76ed45a3f SHA1 75c93cbf98806bc94da91b96daab39aec071851d SHA256 f6f706470cab4bffb45f6ef196799a1c596e8abf5cbef1b5e3d22287c990298b
3
-AUX courier-init-r1 5252 RMD160 2c770526b4fd2e342c904289573c4f8cb19ca6df SHA1 ac67cd4a9664b1010322b5260f84d017ee06736b SHA256 e74fc291b49dace3ffb3af1844b976255c0c7a34aa0e2d87b5c05f672db9058a
4
-AUX fam-disable-check.patch 654 RMD160 c43ae28da398b0106efd73924a0b2c9f4490b799 SHA1 5c00b1d4180c65b1c6feed3979b60b018f874996 SHA256 775dab159b4e05141e4d8fdfa5df75967dda8a8f60e4e962208f724a497d3f54
5
-AUX mailer.conf 197 RMD160 4229dfa9cf33b275571538211dad33da5ae84048 SHA1 caf095797e8c526dc5fec59d9d89d51f318cd28a SHA256 5a946a7c4ed42bbddf2c471e2e00898150e4bff33f4af70620cf814ab2f12b47
6
-AUX norewrite.patch 489 RMD160 1d0bacf702126cc4f8b9d7b07bbc6a9357b7b6e9 SHA1 007059af9ab5d89b36004e590b6a21911515f69b SHA256 526f3742fb43af93811e6e4b3210fda1c611b50ce5abdf3a57a25dfe4f5c38e4
7
-AUX password.dist 247 RMD160 eab211be0b1e3dbd6206f79e993b1d314a24efa3 SHA1 2cdd5bcf561f7267be6f18b731813962030af166 SHA256 46f20a84922d108d39a7c26ad3ba8915326549f46cea811e2384f55a589d38e2
8
-AUX remove-sysconftool.patch 1462 RMD160 e7cf6c03ff92840278eed734ed62920ed5095bfe SHA1 70910e9a4e39b7b9474d8354f67dd344559dadcb SHA256 bcd99b15bffa735a7ce219ddf52f018c3bc630b5b95b928e7ba7652ee3cff298
9
-AUX webadmin_files 164 RMD160 56b30ab7b07aae197d5854f964cdef62201055d5 SHA1 f5962037dec133016b17b797b959f04f7f995968 SHA256 94b13ac04a299ccb2b6baaf4b9eba5772f72c57e39b0d52ed28971a77f77ad99
10
-AUX webmail_files 334 RMD160 f791304987a7ddc324b116477b71f4b7180a34c3 SHA1 dcfad62f80874e910a3da3d7d847ec3576de7019 SHA256 37b9887a8d7ac9f02482befe89106b2241502df7183a9ded7b8fdcaabced7863
11
-DIST courier-0.58.0.tar.bz2 7123136 RMD160 940fb7967d154aeeb462691beb508155b3df4e29 SHA1 964d81e6de5390678c9f10dddbc176273b925f6d SHA256 d61db181df19a2deb0ff31356665042d79b718efbab6b1615b6b1ce5c8de5742
12
-DIST courier-0.59.0.tar.bz2 7121762 RMD160 580e57fd9d39b62772e07dcdec653379cd21caaf SHA1 6870d2b12f1c93d5ede12f2a5c9c1107a7fb647c SHA256 e488cc920ed970c6d38496dba21359b50c6032ff4f2f91432b5d23db261578ec
13
-EBUILD courier-0.58.0.ebuild 11087 RMD160 5b97e5b10267ee82b342eb84ae552f5e172f470a SHA1 3de581bedc7d02d16c3cbdc3cbc386b862ae0a60 SHA256 6c4fc052a2274f65ea723e9a48292f471cf1c4ccde874a2f81cae652b4e963d1
14
-EBUILD courier-0.59.0.ebuild 10414 RMD160 46761369c01269f942f022be4774e63a80e82346 SHA1 b58b8533cf58cb0787ef9310b9866c983a9fae63 SHA256 764987d146da4f43733790954d22416fa1ab54e3e69fad71ca7693216e838dab
15
-MISC metadata.xml 322 RMD160 44060011d03244f97a8cc9605f0eb0de3631a2e5 SHA1 ca88991053a2eef8c9f1603ce850eff1d145deaa SHA256 1ef3b7121e17952973a7b717155b7e892b40ef64ff22d370bf7d425521df88a0
... ...
@@ -1,351 +0,0 @@
1
-# Copyright 1999-2008 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.55.1-r1.ebuild,v 1.4 2008/02/03 10:51:33 hollow Exp $
4
-
5
-WANT_AUTOCONF="latest"
6
-WANT_AUTOMAKE="latest"
7
-
8
-inherit eutils flag-o-matic autotools
9
-
10
-DESCRIPTION="An MTA designed specifically for maildirs"
11
-[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
12
-[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
13
-[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
14
-HOMEPAGE="http://www.courier-mta.org/"
15
-S="${WORKDIR}/${P%%_pre}"
16
-
17
-SLOT="0"
18
-LICENSE="GPL-2"
19
-# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64
20
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
21
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \
22
-	fam nowebmail nowebadmin"
23
-
24
-PROVIDE="virtual/mta
25
-	 virtual/mda
26
-	 virtual/imapd"
27
-
28
-DEPEND="
29
-	>=net-libs/courier-authlib-0.59
30
-	>=dev-libs/openssl-0.9.6
31
-	>=sys-libs/gdbm-1.8.0
32
-	dev-libs/libpcre
33
-	app-misc/mime-types
34
-	fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 )
35
-	pam? ( virtual/pam )
36
-	mysql? ( virtual/mysql )
37
-	ldap? ( >=net-nds/openldap-1.2.11 )
38
-	postgres? ( >=dev-db/postgresql-7.1.3 )
39
-	spell? ( virtual/aspell-dict )
40
-	fam? ( virtual/fam )
41
-	!mailwrapper? ( !virtual/mta )
42
-	!virtual/imapd
43
-	!mail-filter/maildrop"
44
-
45
-RDEPEND="${DEPEND}
46
-	dev-lang/perl
47
-	sys-process/procps"
48
-
49
-PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 )
50
-	pam? ( net-mail/mailbase )
51
-	crypt? ( >=app-crypt/gnupg-1.0.4 )"
52
-
53
-filter-flags '-fomit-frame-pointer'
54
-filter-ldflags '-Wl,--as-needed'
55
-
56
-src_unpack() {
57
-	use fam || (
58
-		ewarn "File Alteration Monitor (FAM) is disabled"
59
-		ewarn "courier-imap will fall back to 60 second polls."
60
-		ewarn 'add "fam" to your USE flags to build as usual'
61
-		ebeep 4
62
-		epause 4 )
63
-	unpack ${A}
64
-	cd ${S}
65
-	use norewrite && epatch ${FILESDIR}/norewrite.patch
66
-	use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub
67
-
68
-	epatch "${FILESDIR}/remove-sysconftool.patch"
69
-
70
-	# some libtool version mismatch
71
-	_elibtoolize --copy --force || die
72
-}
73
-
74
-src_compile() {
75
-	local myconf
76
-	myconf="`use_with ipv6` \
77
-		`use_with ldap ldapaliasd` `use_enable ldap maildropldap`"
78
-
79
-	use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
80
-	use spell || myconf="${myconf} --without-ispell"
81
-
82
-	myconf="${myconf} --enable-mimetypes=/etc/mime.types"
83
-
84
-	myconf="${myconf} $(use_with fam)"
85
-	
86
-	#myconf="${myconf} --without-webmail --without-webadmin"
87
-
88
-	#if use nowebadmin ; then
89
-	#	sed -i -e 's:\(^ac_subdirs_all=.*\)webadmin \(.*$\):\1\2:' configure
90
-	#fi
91
-	#
92
-	#if use nowebmail ; then
93
-	#	sed -i -e 's:\(^ac_subdirs_all=.*\)webmail \(.*$\):\1\2:' configure
94
-	#	sed -i -e 's:\(^ac_subdirs_all=.*\)ldapaddressbook \(.*$\):\1\2:' configure
95
-	#	sed -i -e 's:\(^ac_subdirs_all=.*\)gpglib \(.*$\):\1\2:' configure
96
-	#fi
97
-
98
-	einfo "Configuring courier: `echo ${myconf} | xargs echo`"
99
-
100
-	econf \
101
-		--prefix=/usr \
102
-		--disable-root-check \
103
-		--mandir=/usr/share/man \
104
-		--sysconfdir=/etc/courier \
105
-		--libexecdir=/usr/$(get_libdir)/courier \
106
-		--datadir=/usr/share/courier \
107
-		--sharedstatedir=/var/lib/courier/com \
108
-		--localstatedir=/var/lib/courier \
109
-		--with-piddir=/var/run/courier \
110
-		--with-authdaemonvar=/var/lib/courier/authdaemon \
111
-		--with-mailuser=mail \
112
-		--with-mailgroup=mail \
113
-		--with-paranoid-smtpext \
114
-		--with-db=gdbm \
115
-		--disable-autorenamesent \
116
-		--cache-file=${S}/configuring.cache \
117
-		--host=${CHOST} ${myconf} debug=true || die "./configure"
118
-	sed -e'/^install-perms-local:/a\	sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
119
-	emake || die "Compile problem"
120
-}
121
-
122
-etc_courier() {
123
-	# Import existing /etc/courier/file if it exists.
124
-	# Add option only if it was not already set or even commented out
125
-	file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
126
-	[ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
127
-			cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
128
-	grep -q "${word}" "${D}/etc/courier/${file}" || \
129
-		echo "${2}" >> "${D}/etc/courier/${file}"
130
-}
131
-
132
-etc_courier_chg() {
133
-	file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
134
-	[ -z "${section}" ] && section="${2}"
135
-	grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
136
-	sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
137
-}
138
-
139
-
140
-src_install() {
141
-	local f
142
-	diropts -o mail -g mail
143
-	keepdir /var/run/courier
144
-	keepdir /var/lib/courier/tmp
145
-	keepdir /var/lib/courier/msgs
146
-	make install DESTDIR=${D} || die "install"
147
-	make install-configure || die "install-configure"
148
-
149
-	# Get rid of files we dont want
150
-	if use nowebmail ; then
151
-		cd ${D}
152
-		cat ${FILESDIR}/webmail_files | xargs rm -rf
153
-	fi
154
-
155
-	if use nowebadmin ; then
156
-		cd ${D}
157
-		cat ${FILESDIR}/webadmin_files | xargs rm -rf
158
-	fi
159
-
160
-	#if ! use fax ; then
161
-	#	cd ${D}
162
-	#	cat ${FILESDIR}/fax_files | xargs rm -rf
163
-	#fi
164
-
165
-	for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
166
-		keepdir $dir2keep || die "failed running keepdir: $dir2keep"
167
-	done
168
-
169
-	newinitd ${FILESDIR}/courier-init-r1 courier
170
-	use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
171
-
172
-	cd ${D}/etc/courier
173
-	if ! use nowebmail ; then
174
-		insinto /etc/courier
175
-		newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
176
-	fi
177
-
178
-	for f in *.dist ; do cp ${f} ${f%%.dist} ; done
179
-	if use ldap ; then
180
-		[ -e ldapaliasrc ] &&  ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc )
181
-	else
182
-		rm -f ldapaliasrc
183
-	fi
184
-
185
-	( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
186
-		> ${D}/etc/courier/sizelimit
187
-	etc_courier maildroprc ""
188
-	etc_courier esmtproutes ""
189
-	etc_courier backuprelay ""
190
-	etc_courier locallowercase ""
191
-	etc_courier bofh "opt BOFHBADMIME=accept"
192
-	etc_courier bofh "opt BOFHSPFTRUSTME=1"
193
-	etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
194
-	etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
195
-	etc_courier bofh "opt BOFHSPFFROM=all"
196
-	etc_courier bofh "opt BOFHSPFMAILFROM=all"
197
-	etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
198
-	etc_courier esmtpd "BOFHBADMIME=accept"
199
-	etc_courier esmtpd-ssl "BOFHBADMIME=accept"
200
-	etc_courier esmtpd-msa "BOFHBADMIME=accept"
201
-
202
-	# Fix SSL (default SSL3 is incompatible with current openssl-clients)
203
-	#   - bernd@bwurst.org, 2008-03-07
204
-	etc_courier_chg esmtpd TLS_PROTOCOL SSL23
205
-	etc_courier_chg esmtpd-ssl TLS_PROTOCOL SSL23
206
-	etc_courier_chg imapd-ssl TLS_PROTOCOL SSL23
207
-	etc_courier_chg pop3d-ssl TLS_PROTOCOL SSL23
208
-	etc_courier_chg courierd TLS_PROTOCOL SSL23
209
-
210
-	use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
211
-	use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
212
-
213
-	# Fix for a sandbox violation on subsequential merges
214
-	# - ticho@gentoo.org, 2005-07-10
215
-	rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
216
-	dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d
217
-	dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
218
-	dosym /usr/share/courier/imapd /usr/sbin/courier-imapd
219
-	dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
220
-
221
-	cd ${S}
222
-	cp imap/README README.imap
223
-	use nls && cp unicode/README README.unicode
224
-	dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
225
-	dodoc tcpd/README.couriertls
226
-	mv ${D}/usr/share/courier/htmldoc ${D}/usr/share/doc/${P}/html
227
-
228
-	if ! use nowebmail ; then
229
-		insinto /usr/$(get_libdir)/courier/courier
230
-		insopts -m 755 -o mail -g mail
231
-		doins ${S}/courier/webmaild
232
-	fi
233
-
234
-	if ! use nowebadmin ; then
235
-		insinto /etc/courier/webadmin
236
-		insopts -m 400 -o mail -g mail
237
-		doins ${FILESDIR}/password.dist
238
-	fi
239
-
240
-	# avoid name collisions in /usr/sbin, make webadmin match
241
-	cd ${D}/usr/sbin
242
-	for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
243
-	if ! use nowebadmin ; then
244
-		sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
245
-			-e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
246
-			${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
247
-			|| ewarn "failed to fix webadmin"
248
-		sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
249
-			-e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
250
-			${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
251
-			|| ewarn "failed to fix webadmin"
252
-	fi
253
-
254
-	# users should be able to send mail. Could be restricted with suictl.
255
-	chmod u+s ${D}/usr/bin/sendmail
256
-
257
-	if use mailwrapper ; then
258
-		mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
259
-		mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
260
-		mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
261
-
262
-		mv ${D}/usr/share/man/man1/sendmail.1 \
263
-			${D}/usr/share/man/man1/sendmail-courier.1
264
-		mv ${D}/usr/share/man/man1/mailq.1 \
265
-			${D}/usr/share/man/man1/mailq-courier.1
266
-		mv ${D}/usr/share/man/man1/rmail.1 \
267
-			${D}/usr/share/man/man1/rmail-courier.1
268
-
269
-		insopts -m 444 -o mail -g mail
270
-		insinto /etc/mail
271
-		doins ${FILESDIR}/mailer.conf
272
-	else
273
-		dosym /usr/bin/sendmail /usr/sbin/sendmail
274
-	fi
275
-}
276
-
277
-src_test() {
278
-	addpredict /
279
-	vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
280
-	if hasq userpriv ${FEATURES} ; then
281
-		if ! emake -j1 check; then
282
-			hasq test ${FEATURES} && die "Make check failed. See above for details."
283
-			hasq test ${FEATURES} || eerror "Make check failed. See above for details."
284
-		fi
285
-	else
286
-		hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
287
-	fi
288
-	SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
289
-}
290
-
291
-pkg_postinst() {
292
-	use fam && elog "fam daemon is needed for courier-imapd" \
293
-		|| ewarn "courier was built without fam support"
294
-}
295
-
296
-pkg_config() {
297
-	mailhost=`hostname`
298
-	export mailhost
299
-
300
-	domainname=`domainname`
301
-	if [ "x$domainname" = "x(none)" ] ; then
302
-		domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
303
-	fi
304
-	export domainname
305
-
306
-	if [ ${ROOT} = "/" ] ; then
307
-		file=${ROOT}/etc/courier/locals
308
-		if [ ! -f ${file} ] ; then
309
-			echo "localhost" > ${file};
310
-			echo ${domainname} >> ${file};
311
-		fi
312
-		file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
313
-		if [ ! -f ${file} ] ; then
314
-			echo ${domainname} > ${file}
315
-			/usr/sbin/makeacceptmailfor
316
-		fi
317
-
318
-		file=${ROOT}/etc/courier/smtpaccess/${domainname}
319
-		if [ ! -f ${file} ]
320
-		then
321
-			netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
322
-			do
323
-				i=1
324
-				net=""
325
-				TIFS=${IFS}
326
-				IFS="."
327
-				for o in ${netmask}
328
-				do
329
-					if [ ${o} == "255" ]
330
-					then
331
-						[ "_${net}" == "_" ] || net="${net}."
332
-						t=`echo ${network} | cut -d " " -f ${i}`
333
-						net="${net}${t}"
334
-					fi
335
-					i=$((${i} + 1))
336
-				done
337
-				IFS=${TIFS}
338
-				echo "doing configuration - relay control for the network ${net} !"
339
-				echo "${net}	allow,RELAYCLIENT" >> ${file}
340
-			done
341
-			/usr/sbin/makesmtpaccess
342
-		fi
343
-	fi
344
-
345
-	echo "creating cert for esmtpd-ssl:"
346
-	/usr/sbin/mkesmtpdcert
347
-	echo "creating cert for imapd-ssl:"
348
-	/usr/sbin/mkpop3dcert
349
-	echo "creating cert for pop3d-ssl:"
350
-	/usr/sbin/mkimapdcert
351
-}
... ...
@@ -1,327 +0,0 @@
1
-# Copyright 1999-2008 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.55.1-r1.ebuild,v 1.4 2008/02/03 10:51:33 hollow Exp $
4
-
5
-WANT_AUTOCONF="latest"
6
-WANT_AUTOMAKE="latest"
7
-
8
-inherit eutils flag-o-matic autotools
9
-
10
-DESCRIPTION="An MTA designed specifically for maildirs"
11
-[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
12
-[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
13
-[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
14
-HOMEPAGE="http://www.courier-mta.org/"
15
-S="${WORKDIR}/${P%%_pre}"
16
-
17
-SLOT="0"
18
-LICENSE="GPL-2"
19
-# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64
20
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
21
-IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \
22
-	fam web webmail"
23
-
24
-PROVIDE="virtual/mta
25
-	 virtual/mda
26
-	 virtual/imapd"
27
-
28
-DEPEND="
29
-	>=net-libs/courier-authlib-0.59
30
-	>=dev-libs/openssl-0.9.6
31
-	>=sys-libs/gdbm-1.8.0
32
-	dev-libs/libpcre
33
-	app-misc/mime-types
34
-	fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 )
35
-	pam? ( virtual/pam )
36
-	mysql? ( virtual/mysql )
37
-	ldap? ( >=net-nds/openldap-1.2.11 )
38
-	postgres? ( >=dev-db/postgresql-7.1.3 )
39
-	spell? ( virtual/aspell-dict )
40
-	fam? ( virtual/fam )
41
-	!mailwrapper? ( !virtual/mta )
42
-	!virtual/imapd
43
-	!mail-filter/maildrop"
44
-
45
-RDEPEND="${DEPEND}
46
-	dev-lang/perl
47
-	sys-process/procps"
48
-
49
-PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 )
50
-	pam? ( net-mail/mailbase )
51
-	crypt? ( >=app-crypt/gnupg-1.0.4 )"
52
-
53
-filter-flags '-fomit-frame-pointer'
54
-filter-ldflags '-Wl,--as-needed'
55
-
56
-src_unpack() {
57
-	use fam || (
58
-		ewarn "File Alteration Monitor (FAM) is disabled"
59
-		ewarn "courier-imap will fall back to 60 second polls."
60
-		ewarn 'add "fam" to your USE flags to build as usual'
61
-		ebeep 4
62
-		epause 4 )
63
-	unpack ${A}
64
-	cd "${S}"
65
-	use norewrite && epatch "${FILESDIR}/norewrite.patch"
66
-	use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub
67
-
68
-	epatch "${FILESDIR}/remove-sysconftool.patch"
69
-
70
-	# some libtool version mismatch
71
-	_elibtoolize --copy --force || die
72
-}
73
-
74
-src_compile() {
75
-	local myconf
76
-	myconf="`use_with ipv6` \
77
-		`use_with ldap ldapaliasd` `use_enable ldap maildropldap`"
78
-
79
-	use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
80
-	use spell || myconf="${myconf} --without-ispell"
81
-
82
-	myconf="${myconf} --enable-mimetypes=/etc/mime.types"
83
-
84
-	myconf="${myconf} $(use_with fam)"
85
-	#myconf="${myconf} --without-webmail --without-webadmin"
86
-
87
-	einfo "Configuring courier: $(echo ${myconf} | xargs echo)"
88
-
89
-	econf \
90
-		--prefix=/usr \
91
-		--disable-root-check \
92
-		--mandir=/usr/share/man \
93
-		--sysconfdir=/etc/courier \
94
-		--libexecdir=/usr/$(get_libdir)/courier \
95
-		--datadir=/usr/share/courier \
96
-		--sharedstatedir=/var/lib/courier/com \
97
-		--localstatedir=/var/lib/courier \
98
-		--with-piddir=/var/run/courier \
99
-		--with-authdaemonvar=/var/lib/courier/authdaemon \
100
-		--with-mailuser=mail \
101
-		--with-mailgroup=mail \
102
-		--with-paranoid-smtpext \
103
-		--with-db=gdbm \
104
-		--disable-autorenamesent \
105
-		--cache-file="${S}/configuring.cache" \
106
-		--host="${CHOST}" ${myconf} debug=true || die "./configure"
107
-	sed -e'/^install-perms-local:/a\	sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
108
-	emake || die "Compile problem"
109
-}
110
-
111
-etc_courier() {
112
-	# Import existing /etc/courier/file if it exists.
113
-	# Add option only if it was not already set or even commented out
114
-	file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
115
-	[ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
116
-			cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
117
-	grep -q "${word}" "${D}/etc/courier/${file}" || \
118
-		echo "${2}" >> "${D}/etc/courier/${file}"
119
-}
120
-
121
-etc_courier_chg() {
122
-	file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
123
-	[ -z "${section}" ] && section="${2}"
124
-	grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
125
-	sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
126
-}
127
-
128
-
129
-src_install() {
130
-	local f
131
-	diropts -o mail -g mail
132
-	keepdir /var/run/courier
133
-	keepdir /var/lib/courier/tmp
134
-	keepdir /var/lib/courier/msgs
135
-	make install DESTDIR="${D}" || die "install"
136
-	make install-configure || die "install-configure"
137
-
138
-	# Get rid of files we dont want
139
-	if ! use webmail ; then
140
-		cd "${D}"
141
-		cat "${FILESDIR}/webmail_files" | xargs rm -rf
142
-	fi
143
-
144
-	if ! use web ; then
145
-		cd "${D}"
146
-		cat "${FILESDIR}/webadmin_files" | xargs rm -rf
147
-	fi
148
-
149
-	for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
150
-		keepdir "$dir2keep" || die "failed running keepdir: $dir2keep"
151
-	done
152
-
153
-	newinitd "${FILESDIR}/courier-init-r1" "courier"
154
-	use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
155
-
156
-	cd "${D}/etc/courier"
157
-	if use webmail ; then
158
-		insinto /etc/courier
159
-		newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
160
-	fi
161
-
162
-	for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
163
-	if use ldap ; then
164
-		[ -e ldapaliasrc ] &&  ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc )
165
-	else
166
-		rm -f ldapaliasrc
167
-	fi
168
-
169
-	( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \
170
-		> "${D}/etc/courier/sizelimit"
171
-	etc_courier maildroprc ""
172
-	etc_courier esmtproutes ""
173
-	etc_courier backuprelay ""
174
-	etc_courier locallowercase ""
175
-	etc_courier bofh "opt BOFHBADMIME=accept"
176
-	etc_courier bofh "opt BOFHSPFTRUSTME=1"
177
-	etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail"
178
-	etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none"
179
-	etc_courier bofh "opt BOFHSPFFROM=all"
180
-	etc_courier bofh "opt BOFHSPFMAILFROM=all"
181
-	etc_courier bofh "#opt BOFHSPFHARDERROR=fail"
182
-	etc_courier esmtpd "BOFHBADMIME=accept"
183
-	etc_courier esmtpd-ssl "BOFHBADMIME=accept"
184
-	etc_courier esmtpd-msa "BOFHBADMIME=accept"
185
-
186
-	use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
187
-	use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256"
188
-
189
-	# Fix for a sandbox violation on subsequential merges
190
-	# - ticho@gentoo.org, 2005-07-10
191
-	rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
192
-	dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d
193
-	dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl
194
-	dosym /usr/share/courier/imapd /usr/sbin/courier-imapd
195
-	dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl
196
-
197
-	cd "${S}"
198
-	cp imap/README README.imap
199
-	use nls && cp unicode/README README.unicode
200
-	dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt
201
-	dodoc tcpd/README.couriertls
202
-	mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
203
-
204
-	if use webmail ; then
205
-		insinto /usr/$(get_libdir)/courier/courier
206
-		insopts -m 755 -o mail -g mail
207
-		doins "${S}/courier/webmaild"
208
-	fi
209
-
210
-	if use web ; then
211
-		insinto /etc/courier/webadmin
212
-		insopts -m 400 -o mail -g mail
213
-		doins "${FILESDIR}/password.dist"
214
-	fi
215
-
216
-	# avoid name collisions in /usr/sbin, make webadmin match
217
-	cd "${D}/usr/sbin"
218
-	for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
219
-	if use web ; then
220
-		sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \
221
-			-e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \
222
-			"${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
223
-			|| ewarn "failed to fix webadmin"
224
-		sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \
225
-			-e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \
226
-			"${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
227
-			|| ewarn "failed to fix webadmin"
228
-	fi
229
-
230
-	# users should be able to send mail. Could be restricted with suictl.
231
-	chmod u+s "${D}/usr/bin/sendmail"
232
-
233
-	if use mailwrapper ; then
234
-		mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
235
-		mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
236
-		mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
237
-
238
-		mv "${D}/usr/share/man/man1/sendmail.1" \
239
-			"${D}/usr/share/man/man1/sendmail-courier.1"
240
-		mv "${D}/usr/share/man/man1/mailq.1" \
241
-			"${D}/usr/share/man/man1/mailq-courier.1"
242
-		mv "${D}/usr/share/man/man1/rmail.1" \
243
-			"${D}/usr/share/man/man1/rmail-courier.1"
244
-
245
-		insopts -m 444 -o mail -g mail
246
-		insinto /etc/mail
247
-		doins "${FILESDIR}/mailer.conf"
248
-	else
249
-		dosym /usr/bin/sendmail /usr/sbin/sendmail
250
-	fi
251
-}
252
-
253
-src_test() {
254
-	addpredict /
255
-	vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
256
-	if hasq userpriv "${FEATURES}" ; then
257
-		if ! emake -j1 check; then
258
-			hasq test "${FEATURES}" && die "Make check failed. See above for details."
259
-			hasq test "${FEATURES}" || eerror "Make check failed. See above for details."
260
-		fi
261
-	else
262
-		hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work."
263
-	fi
264
-	SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
265
-}
266
-
267
-pkg_postinst() {
268
-	use fam && elog "fam daemon is needed for courier-imapd" \
269
-		|| ewarn "courier was built without fam support"
270
-}
271
-
272
-pkg_config() {
273
-	mailhost="$(hostname)"
274
-	export mailhost
275
-
276
-	domainname="$(domainname)"
277
-	if [ "x$domainname" = "x(none)" ] ; then
278
-		domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
279
-	fi
280
-	export domainname
281
-
282
-	if [ "${ROOT}" = "/" ] ; then
283
-		file="${ROOT}/etc/courier/locals"
284
-		if [ ! -f "${file}" ] ; then
285
-			echo "localhost" > "${file}";
286
-			echo "${domainname}" >> "${file}";
287
-		fi
288
-		file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
289
-		if [ ! -f "${file}" ] ; then
290
-			echo "${domainname}" > "${file}"
291
-			/usr/sbin/makeacceptmailfor
292
-		fi
293
-
294
-		file="${ROOT}/etc/courier/smtpaccess/${domainname}"
295
-		if [ ! -f "${file}" ]
296
-		then
297
-			netstat -nr | grep "^[1-9]" | while read network gateway netmask rest
298
-			do
299
-				i=1
300
-				net=""
301
-				TIFS="${IFS}"
302
-				IFS="."
303
-				for o in "${netmask}"
304
-				do
305
-					if [ "${o}" == "255" ]
306
-					then
307
-						[ "_${net}" == "_" ] || net="${net}."
308
-						t="$(echo "${network}" | cut -d " " -f ${i})"
309
-						net="${net}${t}"
310
-					fi
311
-					i="$((${i} + 1))"
312
-				done
313
-				IFS="${TIFS}"
314
-				echo "doing configuration - relay control for the network ${net} !"
315
-				echo "${net}	allow,RELAYCLIENT" >> ${file}
316
-			done
317
-			/usr/sbin/makesmtpaccess
318
-		fi
319
-	fi
320
-
321
-	echo "creating cert for esmtpd-ssl:"
322
-	/usr/sbin/mkesmtpdcert
323
-	echo "creating cert for imapd-ssl:"
324
-	/usr/sbin/mkpop3dcert
325
-	echo "creating cert for pop3d-ssl:"
326
-	/usr/sbin/mkimapdcert
327
-}
... ...
@@ -1,14 +0,0 @@
1
-Alias /webmail/ /usr/share/courier/sqwebmail/images/
2
-<Directory /usr/share/courier/sqwebmail/>
3
-	Order Allow,Deny
4
-	AllowOverride All
5
-	Allow from all
6
-</Directory>
7
-
8
-ScriptAlias /courier/ /usr/lib/courier/courier/webmail/
9
-<Directory /usr/lib/courier/courier/webmail/>
10
-	AllowOverride All
11
-	Options ExecCGI
12
-	Order allow,deny
13
-	Allow from all
14
-</Directory>
... ...
@@ -1,11 +0,0 @@
1
---- courier-0.50.0/rfc1035/spf.c	2004-08-24 02:43:30.000000000 +0200
2
-+++ courier-0.50.1/rfc1035/spf.c	2005-07-03 06:19:39.000000000 +0200
3
-@@ -771,7 +771,7 @@
4
- 
5
- 		free(domain_spec);
6
- 
7
--		if (rc < 0)
8
-+		if (rc != 0)
9
- 		{
10
- 			set_err_msg(info->errmsg_buf, info->errmsg_buf_size,
11
- 				    "IP address lookup failed.\n");
... ...
@@ -1,185 +0,0 @@
1
-#!/sbin/runscript
2
-# Portions Copyright 2003 Gentoo Linux
3
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/files/courier-init-r1,v 1.1 2006/07/11 00:21:53 chtekk Exp $
4
-#
5
-# script originally from Courier distfile original name = courier.sysvinit
6
-# adapted for Gentoo by Brian Jackson
7
-#
8
-# TODO
9
-# should we update all the .dat/.pem files when the source/config files are 
10
-#	newer than the .dat/.pem files?
11
-
12
-prefix="/usr"
13
-exec_prefix="/usr/bin"
14
-sysconfdir="/etc/courier"
15
-sbindir="/usr/sbin"
16
-libexecdir="/usr/lib/courier"
17
-datadir="/usr/share/courier"
18
-
19
-depend() {
20
-	need net
21
-	[ -d /etc/courier/authlib ] && need courier-authlib
22
-	grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && use famd
23
-	grep -q "^IMAPDSSLSTART=.*[Yy].*" /etc/courier/imapd-ssl && use famd
24
-}
25
-
26
-checkconfig() {
27
-
28
-	[ -f ${sysconfdir}/pop3d-ssl ] && . ${sysconfdir}/pop3d-ssl
29
-
30
-	# If we do not have a certificate, make one up.
31
-	[ ! -f "${datadir}/pop3d.pem" ] && \
32
-	ebegin " generating-POP3-SSL-certificate..." && "${sbindir}/mkpop3dcert"
33
-
34
-	[ -f ${sysconfdir}/imapd-ssl ] && . ${sysconfdir}/imapd-ssl
35
-
36
-	# If we do not have a certificate, make one up.
37
-	[ ! -f ${datadir}/imapd.pem ] && \
38
-	ebegin " generating-IMAP-SSL-certificate..." && "${sbindir}/mkimapdcert"
39
-
40
-	[ -f ${sysconfdir}/esmtpd-ssl ] && . ${sysconfdir}/esmtpd-ssl
41
-
42
-	# If we do not have a certificate, make one up.
43
-	[ ! -f ${datadir}/esmtpd.pem ] && \
44
-	ebegin " generating-ESMTP-SSL-certificate..." && "${sbindir}/mkesmtpdcert"
45
-
46
-	# First time after install create aliases.dat and smtpaccess.dat
47
-
48
-	[ -f ${sysconfdir}/aliases.dat ] || ${sbindir}/makealiases
49
-
50
-	[ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess
51
-
52
-	[ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa
53
-}
54
-
55
-start() {
56
-	# Start daemons.
57
-	ebegin "Starting Courier mail server:"
58
-
59
-	checkconfig || return 1
60
-
61
-	ebegin " Starting courierfilterd"
62
-	${sbindir}/courierfilter start
63
-
64
-	[ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
65
-	${libexecdir}/authlib/authdaemond start && ebegin " Starting authdaemond"
66
-
67
-	[ -x ${libexecdir}/courier/webmaild ] && \
68
-	  ${libexecdir}/courier/webmaild start && ebegin " Starting webmaild" 
69
-	[ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
70
-	  ${libexecdir}/courier/sqwebmaild start && ebegin " Starting sqwebmaild"
71
-
72
-	[ -x ${sbindir}/courierldapaliasd ] && \
73
-	${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd"
74
-
75
-	ebegin " Starting courierd"
76
-	${sbindir}/courier start
77
-
78
-	# start esmtpd if so written
79
-	[ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd
80
-	case x$ESMTPDSTART in
81
-	x[yY]*)
82
-		ebegin " Starting esmtpd"
83
-		${sbindir}/esmtpd start
84
-		;;
85
-	esac
86
-
87
-	# start esmtpd-msa if so written
88
-	[ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa
89
-	case x$ESMTPDSTART in
90
-	x[yY]*)
91
-		ebegin " Starting esmtpd-msa"
92
-		${sbindir}/esmtpd-msa start
93
-		;;
94
-	esac
95
-
96
-	# start esmtpd-ssl if so written
97
-	[ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl
98
-	case x$ESMTPDSSLSTART in
99
-	x[yY]*)
100
-		ebegin " Starting esmtpd-ssl"
101
-		${sbindir}/esmtpd-ssl start
102
-		;;
103
-	esac
104
-
105
-	# start pop3d if so written
106
-	[ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d
107
-	case x$POP3DSTART in
108
-	x[yY]*)
109
-		ebegin " courier-pop3d"
110
-		${sbindir}/courier-pop3d start
111
-		;;
112
-	esac
113
-
114
-	# start pop3d-ssl if so written
115
-	[ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl
116
-	case x$POP3DSSLSTART in
117
-	x[yY]*)
118
-		ebegin " courier-pop3d-ssl"
119
-		${sbindir}/courier-pop3d-ssl start
120
-		;;
121
-	esac
122
-
123
-	[ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd
124
-	case x$IMAPDSTART in
125
-	x[yY]*)
126
-		ebegin " courier-imapd"
127
-		${sbindir}/courier-imapd start
128
-		;;
129
-	esac
130
-
131
-	[ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl
132
-	case x$IMAPDSSLSTART in
133
-	x[yY]*)
134
-		ebegin " courier-imapd-ssl"
135
-		${sbindir}/courier-imapd-ssl start
136
-		;;
137
-	esac
138
-
139
-	eend $?
140
-}
141
-
142
-stop() {
143
-	ebegin "Stopping Courier mail server:"
144
-
145
-	ebegin " Stopping courier-esmtpd"
146
-	${sbindir}/esmtpd stop
147
-
148
-	ebegin " Stopping courier-esmtpd-msa"
149
-	${sbindir}/esmtpd-msa stop
150
-
151
-	ebegin " Stopping courier-esmtpd-ssl"
152
-	${sbindir}/esmtpd-ssl stop
153
-
154
-	[ -x ${sbindir}/courier-pop3d ] && \
155
-		ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop
156
-
157
-	[ -x ${sbindir}/courier-pop3d-ssl ] && \
158
-		ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop
159
-
160
-	[ -x ${sbindir}/courier-imapd ] && \
161
-		ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop
162
-
163
-
164
-	[ -x ${sbindir}/courier-imapd-ssl ] && \
165
-		ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop
166
-
167
-	ebegin " Stopping courierd"
168
-	${sbindir}/courier stop
169
-
170
-	[ -x ${sbindir}/courierldapaliasd ] && \
171
-	( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" )
172
-
173
-	[ -x ${libexecdir}/courier/webmaild ] && \
174
-	  ( ${libexecdir}/courier/webmaild stop ; ebegin " Stopping webmaild" )
175
-	[ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
176
-	  ( ${libexecdir}/courier/sqwebmaild stop ; ebegin " Stopping sqwebmaild" )
177
-
178
-	[ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
179
-	( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" )
180
-
181
-	${sbindir}/courierfilter stop
182
-	ebegin " Stopping courierfilterd"
183
-
184
-	eend $?
185
-}
... ...
@@ -1,23 +0,0 @@
1
---- courier-imap-3.0.7-orig/maildir/configure.in	2004-06-08 15:44:23.000000000 -0700
2
-+++ courier-imap-3.0.7/maildir/configure.in	2004-08-14 15:28:20.525714876 -0700
3
-@@ -60,6 +60,12 @@
4
- dnl Checks for library functions.
5
- AC_CHECK_HEADER(fam.h, :, :)
6
- AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
7
-+AC_ARG_WITH(fam, [  --with-fam              Compile with FAM support],
8
-+       fam="$withval",
9
-+       fam="no")
10
-+
11
-+if test "$fam" != "no"
12
-+then
13
- AC_CHECK_LIB(fam, FAMOpen,  [
14
- 			LIBFAM=-lfam
15
- 			AC_DEFINE_UNQUOTED(HAVE_FAM,1,
16
-@@ -74,6 +80,7 @@
17
- AC_MSG_ERROR([[FAM development libraries not found.]]) ]
18
- 					)
19
- 		  ])
20
-+fi
21
- 
22
- AC_SUBST(LIBFAM)
23
- 
... ...
@@ -1,6 +0,0 @@
1
-# Execute the "real" sendmail program, named /usr/sbin/sendmail
2
-#
3
-sendmail	/usr/bin/sendmail.courier
4
-send-mail	/usr/bin/sendmail.courier
5
-mailq		/usr/bin/mailq.courier
6
-rmail		/usr/bin/rmail.courier
... ...
@@ -1,21 +0,0 @@
1
---- courier/module.esmtp/esmtp.c.orig	2004-02-03 01:08:15.679486558 -0700
2
-+++ courier/module.esmtp/esmtp.c	2004-02-03 01:07:41.262697092 -0700
3
-@@ -255,6 +255,10 @@ const char *me;
4
- struct rfc822t	*tp;
5
- struct rfc822token at;
6
- 
7
-+#if 1
8
-+	(*func)(info);
9
-+	return;
10
-+#else
11
- 	if (info->ptr == 0)
12
- 	{
13
- 		(*func)(info);
14
-@@ -289,6 +293,7 @@ struct rfc822token at;
15
- 	(*func)(info);
16
- 	*r=0;
17
- 	rfc822t_free(tp);
18
-+#endif
19
- }
20
- 
21
- static void rw_esmtp(struct rw_info *info, void (*func)(struct rw_info *))
... ...
@@ -1,6 +0,0 @@
1
-# 1. Open /etc/courier/webadmin/password for editing
2
-# 2. There should be one word in this file.  The webadmin password
3
-# 3. chown mail:mail password
4
-# 4. chmod 400 password
5
-#
6
-# Thanks to Fernando Tobler on bug #10574 for the concise instructions
... ...
@@ -1,30 +0,0 @@
1
---- orig/configure.in	2008-03-06 13:50:29.000000000 +0100
2
-+++ new/configure.in	2008-03-06 13:50:39.000000000 +0100
3
-@@ -19,7 +19,6 @@
4
- 
5
- AC_PROG_MAKE_SET
6
- AC_PROG_CXX
7
--AC_PROG_SYSCONFTOOL
8
- AC_PATH_PROGS(SETENV, env)
9
- 
10
- AC_ARG_ENABLE(root-check, [  --disable-root-check    Allow build as root (make check will fail)],
11
---- orig/Makefile.in	2008-03-06 19:37:53.000000000 +0100
12
-+++ new/Makefile.in	2008-03-06 19:38:22.000000000 +0100
13
-@@ -791,7 +791,6 @@
14
- 
15
- install-configure:
16
- 	@$(MAKE) -$(MAKEFLAGS) install-perms
17
--	@SYSCONFTOOL@ `awk ' $$5 == "config" && $$1 ~ /\.dist$$/ { print $$1 }' <permissions.dat`
18
- 
19
- install-webadmin-password:
20
- 	@stty -echo ; echo -n "Password: " ; read P; stty echo ; echo "" ; echo $$P >@sysconfdir@/webadmin/password && chown @mailuser@ @sysconfdir@/webadmin/password && chgrp @mailgroup@ @sysconfdir@/webadmin/password && chmod 400 @sysconfdir@/webadmin/password
21
---- orig/Makefile.am	2008-03-06 19:39:06.000000000 +0100
22
-+++ new/Makefile.am	2008-03-06 19:39:21.000000000 +0100
23
-@@ -160,7 +160,6 @@
24
- 
25
- install-configure:
26
- 	@$(MAKE) -$(MAKEFLAGS) install-perms
27
--	@SYSCONFTOOL@ `awk ' $$5 == "config" && $$1 ~ /\.dist$$/ { print $$1 }' <permissions.dat`
28
- 
29
- install-webadmin-password:
30
- 	@stty -echo ; echo -n "Password: " ; read P; stty echo ; echo "" ; echo $$P >@sysconfdir@/webadmin/password && chown @mailuser@ @sysconfdir@/webadmin/password && chgrp @mailgroup@ @sysconfdir@/webadmin/password && chmod 400 @sysconfdir@/webadmin/password
... ...
@@ -1,5 +0,0 @@
1
-./usr/share/courier/courierwebadmin
2
-./usr/lib64/courier/courier/webmail/webadmin
3
-./etc/courier/webadmin
4
-./etc/courier/webadmin/added
5
-./etc/courier/webadmin/removed
... ...
@@ -1,11 +0,0 @@
1
-var/lib/courier/webmail-logincache
2
-usr/share/courier/sqwebmail
3
-usr/lib64/courier/courier/sqwebpasswd
4
-usr/lib64/courier/courier/sqwebmaild
5
-usr/lib64/courier/courier/webmail/webmail
6
-usr/lib64/courier/courier/webmail/webmlm
7
-usr/sbin/webmaild
8
-usr/sbin/webgpg
9
-etc/courier/sqwebmaild.dist
10
-etc/courier/webmail.authpam
11
-etc/courier/sqwebmaild
... ...
@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
-
4
-<pkgmetadata>
5
-  <herd>no-herd</herd>
6
-  <longdescription>
7
-      Complete email package consisting of pop, imap, smtp, and fax
8
-      server and secure version of the above also
9
-  </longdescription>
10
-</pkgmetadata>
11 0