summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice van der Pot <griffon26@gentoo.org>2008-08-11 21:26:12 +0000
committerMaurice van der Pot <griffon26@gentoo.org>2008-08-11 21:26:12 +0000
commit308d62bcf81a9cb0e2335282365bdb13b7274248 (patch)
treec8af592625a898ca2d43e63abcb873e1a07a629e /net-mail
parentrevision bump with patches from fedora, also reported in bug #202315 (diff)
downloadhistorical-308d62bcf81a9cb0e2335282365bdb13b7274248.tar.gz
historical-308d62bcf81a9cb0e2335282365bdb13b7274248.tar.bz2
historical-308d62bcf81a9cb0e2335282365bdb13b7274248.zip
Fixed init script for tpop3d-1.5.4
Package-Manager: portage-2.2_rc3/cvs/Linux 2.6.26 x86_64
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/tpop3d/ChangeLog10
-rw-r--r--net-mail/tpop3d/Manifest14
-rw-r--r--net-mail/tpop3d/files/tpop3d-1.5.4.init30
-rw-r--r--net-mail/tpop3d/tpop3d-1.5.4-r1.ebuild99
4 files changed, 151 insertions, 2 deletions
diff --git a/net-mail/tpop3d/ChangeLog b/net-mail/tpop3d/ChangeLog
index 259cf37dc74d..1f9b1682cd5a 100644
--- a/net-mail/tpop3d/ChangeLog
+++ b/net-mail/tpop3d/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-mail/tpop3d
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/ChangeLog,v 1.25 2008/05/21 18:59:22 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/ChangeLog,v 1.26 2008/08/11 21:26:11 griffon26 Exp $
+
+*tpop3d-1.5.4-r1 (11 Aug 2008)
+
+ 11 Aug 2008; Maurice van der Pot <griffon26@gentoo.org>
+ +files/tpop3d-1.5.4.init, +tpop3d-1.5.4-r1.ebuild:
+ The --background option to start-stop-daemon is no longer needed for
+ tpop3d-1.5.4 (see bug #76027) and it was causing the init script to report an
+ error while tpop3d actually started successfully.
21 May 2008; Tiziano Müller <dev-zero@gentoo.org> tpop3d-1.5.3.ebuild,
tpop3d-1.5.3-r1.ebuild, tpop3d-1.5.4.ebuild:
diff --git a/net-mail/tpop3d/Manifest b/net-mail/tpop3d/Manifest
index 1ef02e3a34ed..c03528eaf7c9 100644
--- a/net-mail/tpop3d/Manifest
+++ b/net-mail/tpop3d/Manifest
@@ -1,10 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX tpop3d-1.5.3-invalid-user-message.patch 1098 RMD160 57d1cd6c82f2e132e3314fd15eb89f7872ee95d2 SHA1 f505ee60dd663f12208afb055f172b7ce6cba230 SHA256 4f66c0d4fb999250d7f4f0f7024fd081f11f36d13ecc0a729847824160594301
AUX tpop3d-1.5.3-variable-name-clash.patch 2215 RMD160 7efd8f5dd3d2c2e9c522a171b9267ae32a7b347b SHA1 654a41147f3ff15dd5bb78019ec7dbfdff549df8 SHA256 a475318c968c32cd2c5dfed1ffed28c323802c01913412525496f9cadfdd8293
+AUX tpop3d-1.5.4.init 723 RMD160 cf0bae03c05be242644a4b3db8594eae1b4c2ed6 SHA1 12bdbcdc5745c47bbae42fd8a042cb6896b10208 SHA256 0ca07a32ee4e2a34b2ad050bd02fc88f55b0c3488aa0528957e6cdb7715317d6
AUX tpop3d-init 688 RMD160 e6741cdfd4c6ade7647d6244d7501190826888c6 SHA1 7c044c5135497ff420d6efbd64eaabf49fd75fe5 SHA256 c4ac3aa1d96134c0bff88edd11afd6317f5fa95ba512b0cb5621f7069ba132ed
DIST tpop3d-1.5.3.tar.gz 242294 RMD160 d4edadb2a73540672f5aca9642c4730226600841 SHA1 5ce2f9a7f2ea42cca8005bcc71677606f7f14e26 SHA256 48625d1cd65de3ff76eaca7f6bca08984bb84d3823ecfc3e4531db1a5a932bd8
DIST tpop3d-1.5.4.tar.gz 283888 RMD160 9501138209046e7fdb0c4326fbbdb65afcd688df SHA1 869e673e07dae49b471f71d9217ca9841a3e3d6f SHA256 5ce3650b6f48565d671f4fe8a62e6915d03dc2971bc5e5b2620d8a48e96f3482
EBUILD tpop3d-1.5.3-r1.ebuild 2984 RMD160 a80da6231411a858eaff42191dd90dff7084b9e8 SHA1 6463410c96056821c890c516c281c7f87eb26cd4 SHA256 f54dfb82217b450179c2fbf8298435523014e29f526f852b91212e736528a549
EBUILD tpop3d-1.5.3.ebuild 2723 RMD160 89f9009a11c31e7f904366d81e039bdff3161479 SHA1 34252906f3d5d52702a639729d5594bc1e5d9b2d SHA256 e3a04d6465978f4aadff55a1feeb9a466b0a73f58f97d76bf18631837cdb1f87
+EBUILD tpop3d-1.5.4-r1.ebuild 3295 RMD160 0158e74625c59326ea915a97119a25a068ccb2b0 SHA1 a8e1eb0b7532550781256c5af1b8638ebec2c5b8 SHA256 c1da79dc53ccf7ca82cf69ccbf619ea03db72caccd0fad6d51ae7f8751b7f39b
EBUILD tpop3d-1.5.4.ebuild 3286 RMD160 3637f6cb6622a50d7139dbba3a500c3196ff1a59 SHA1 3fd790034edca6d5791ec86989f0b73babc208d8 SHA256 76ce03e371ebe32d0dcd989ad747a36b08c08265442c5cd6c08557b23dab03b8
-MISC ChangeLog 4289 RMD160 680bc24b2a3f01169ba302a8e9baee7f2cf7a64a SHA1 123633ae34fa255bee8bb33034df5b76f7789994 SHA256 5fb6a9f588841e06695639adb17611176ca6cd1aaf9389393d4586119a1e55a2
+MISC ChangeLog 4637 RMD160 0f6a0e6adda1a0af0845d93761f44d1421146a8c SHA1 a7fff4aab2e18639d8a1aa009b34428c1f5d7ad3 SHA256 9a3b6a5ea584f536b5e202496adbebcb43d8534532aaa6dff448b5ee66562dc4
MISC metadata.xml 222 RMD160 e60881a148594dfd9204f6ae2c66d6deb700e579 SHA1 879222582b1d94e1460e337008f0cbafd4a55e7f SHA256 2b75aa1c231df03698c7e478ea74ab81e56316c227a49ccb3d74bd97a0ec3814
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkigroAACgkQMGnpIbeahxykZQCgrNTazSdeIA42E/0HfejC5Jgu
+5WEAnjT1eCDuZrbi1HScFS+dZIy49ldT
+=BGvv
+-----END PGP SIGNATURE-----
diff --git a/net-mail/tpop3d/files/tpop3d-1.5.4.init b/net-mail/tpop3d/files/tpop3d-1.5.4.init
new file mode 100644
index 000000000000..8be7925c9eff
--- /dev/null
+++ b/net-mail/tpop3d/files/tpop3d-1.5.4.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/files/tpop3d-1.5.4.init,v 1.1 2008/08/11 21:26:12 griffon26 Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/tpop3d/tpop3d.conf ] ; then
+ eerror "You need an /etc/tpop3d/tpop3d.conf file to run tpop3d"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting tpop3d"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/tpop3d -- -f /etc/tpop3d/tpop3d.conf \
+ -p /var/run/tpop3d.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tpop3d"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/tpop3d
+ eend $?
+}
diff --git a/net-mail/tpop3d/tpop3d-1.5.4-r1.ebuild b/net-mail/tpop3d/tpop3d-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..866bbecb0c97
--- /dev/null
+++ b/net-mail/tpop3d/tpop3d-1.5.4-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/tpop3d-1.5.4-r1.ebuild,v 1.1 2008/08/11 21:26:11 griffon26 Exp $
+
+EAPI=1
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="An extensible POP3 server with vmail-sql/MySQL support."
+HOMEPAGE="http://savannah.nongnu.org/projects/tpop3d/"
+SRC_URI="http://download.savannah.nongnu.org/releases/tpop3d/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="authexternal debug drac flatfile gdbm ldap maildir mbox mysql offensive
+ pam passwd perl postgres +sha1 shadow ssl tcpd"
+
+RDEPEND="
+ debug? ( >=dev-util/efence-2.4.13 )
+ sha1? ( >=dev-libs/openssl-0.9.6 )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ ldap? ( >=net-nds/openldap-2.0.7 )
+ mysql? ( virtual/mysql )
+ postgres? ( >=virtual/postgresql-server-7.3 )
+ perl? ( >=dev-lang/perl-5.6.1 )
+ pam? ( virtual/pam
+ >=net-mail/mailbase-0.00-r8 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
+
+DEPEND="${RDEPEND}
+ drac? ( mail-client/drac )"
+
+src_compile() {
+ local myconf=""
+ local noauth=0
+
+ elog "This version of the tpop3d ebuild has a lot of new USE flags."
+ elog "Make sure that everything you need is enabled."
+
+ # Various authentication methods
+ use authexternal && myconf="${myconf} --enable-auth-other"
+ use flatfile && myconf="${myconf} --enable-auth-flatfile"
+ use gdbm && myconf="${myconf} --enable-auth-gdbm"
+ use ldap && myconf="${myconf} --enable-auth-ldap"
+ use mysql && myconf="${myconf} --enable-auth-mysql"
+ use pam || myconf="${myconf} --disable-auth-pam"
+ use passwd && myconf="${myconf} --enable-auth-passwd"
+ use perl && myconf="${myconf} --enable-auth-perl"
+ use postgres && myconf="${myconf} --enable-auth-pgsql"
+ use shadow && myconf="${myconf} --enable-auth-passwd --enable-shadow-passwords"
+
+ use authexternal || use flatfile || use gdbm || use ldap || use mysql ||
+ use pam || use passwd || use perl || use postgres || use shadow ||
+ noauth=1
+
+ if [[ ${noauth} -eq 1 ]]; then
+ ewarn "None of tpop3d's authentication mechanism USE flags are set."
+ ewarn "As a result tpop3d will be built with /etc/passwd authentication only."
+ myconf="${myconf} --enable-auth-passwd"
+ fi
+
+ # Other optional features
+ use debug && myconf="${myconf} --enable-electric-fence --enable-backtrace"
+ use maildir && myconf="${myconf} --enable-mbox-maildir"
+ use mbox || myconf="${myconf} --disable-mbox-bsd"
+ use offensive || myconf="${myconf} --disable-snide-comments"
+ use sha1 || myconf="${myconf} --disable-sha1-passwords"
+ use ssl && myconf="${myconf} --enable-tls"
+ use tcpd && myconf="${myconf} --enable-tcp-wrappers"
+
+ # Install mail-client/drac for integration with tpop3d
+ use drac && myconf="${myconf} --enable-drac"
+
+ econf ${myconf} || die "./configure failed"
+
+ # Causes crash with "stack smashing attack" on connect, because of bug in
+ # SSP (bug #115285)
+ filter-flags -fstack-protector
+
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodir /etc/tpop3d
+
+ if use pam ; then
+ dodir /etc/pam.d
+ dosym /etc/pam.d/pop3 /etc/pam.d/tpop3d
+ fi
+
+ newinitd "${FILESDIR}/${PN}-1.5.4.init" tpop3d
+}
+
+pkg_postinst() {
+ elog "Read the tpop3d.conf manpage"
+ elog "Please create /etc/tpop3d/tpop3d.conf to fit your configuration"
+}