Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/fetchmail: ChangeLog fetchmail-6.3.9-r1.ebuild
Date: Fri, 20 Feb 2009 04:26:18
Message-Id: E1LaMxr-0007FN-Qm@stork.gentoo.org
1 darkside 09/02/20 04:26:15
2
3 Modified: ChangeLog
4 Added: fetchmail-6.3.9-r1.ebuild
5 Log:
6 (non maintainer commit) don't run fetchmail as root - create new fetchmail user instead, long standing bug in Gentoo. Fixed by Brian Verkley in bug 124387
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.155 net-mail/fetchmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/ChangeLog?rev=1.155&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/ChangeLog?rev=1.155&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/ChangeLog?r1=1.154&r2=1.155
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-mail/fetchmail/ChangeLog,v
19 retrieving revision 1.154
20 retrieving revision 1.155
21 diff -u -r1.154 -r1.155
22 --- ChangeLog 11 Jan 2009 15:56:08 -0000 1.154
23 +++ ChangeLog 20 Feb 2009 04:26:15 -0000 1.155
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-mail/fetchmail
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-mail/fetchmail/ChangeLog,v 1.154 2009/01/11 15:56:08 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-mail/fetchmail/ChangeLog,v 1.155 2009/02/20 04:26:15 darkside Exp $
29 +
30 +*fetchmail-6.3.9-r1 (20 Feb 2009)
31 +
32 + 20 Feb 2009; Jeremy Olexa <darkside@g.o> +files/fetchmail.new,
33 + +fetchmail-6.3.9-r1.ebuild:
34 + (non maintainer commit) don't run fetchmail as root - create new fetchmail
35 + user instead, long standing bug in Gentoo. Fixed by Brian Verkley in bug
36 + 124387
37
38 11 Jan 2009; Tobias Scherbaum <dertobi123@g.o>
39 -files/fetchmail-6.3.7-poll-again.patch, -fetchmail-6.3.6.ebuild,
40
41
42
43 1.1 net-mail/fetchmail/fetchmail-6.3.9-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/fetchmail-6.3.9-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/fetchmail-6.3.9-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: fetchmail-6.3.9-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-mail/fetchmail/fetchmail-6.3.9-r1.ebuild,v 1.1 2009/02/20 04:26:15 darkside Exp $
53
54 inherit multilib python eutils
55
56 DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
57 HOMEPAGE="http://fetchmail.berlios.de"
58 SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
59
60 LICENSE="GPL-2 public-domain"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
63 IUSE="ssl nls ipv6 kerberos krb4 hesiod"
64
65 RDEPEND="hesiod? ( net-dns/hesiod )
66 ssl? ( >=dev-libs/openssl-0.9.6 )
67 kerberos? ( app-crypt/mit-krb5 )
68 nls? ( virtual/libintl )
69 elibc_FreeBSD? ( sys-libs/com_err )
70 virtual/python"
71 DEPEND="${RDEPEND}
72 nls? ( sys-devel/gettext )"
73
74 pkg_setup() {
75 enewgroup ${PN}
76 enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
77 }
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82
83 # this patch fixes bug #34788 (ticho@g.o 2004-09-03)
84 epatch "${FILESDIR}"/${PN}-6.2.5-broken-headers.patch
85
86 # dont compile during src_install
87 : > "${S}"/py-compile
88 }
89
90 src_compile() {
91 # PYTHON=: \
92 econf \
93 --disable-dependency-tracking \
94 --enable-RPA \
95 --enable-NTLM \
96 --enable-SDPS \
97 $(use_enable nls) \
98 $(use_enable ipv6 inet6) \
99 $(use_with kerberos gssapi) \
100 $(use_with kerberos kerberos5) \
101 $(use_with krb4 kerberos) \
102 $(use_with ssl) \
103 $(use_with hesiod) \
104 ${myconf} || die "Configuration failed."
105 # wont compile reliably on smp (mkennedy@g.o 2003-11-12)
106 emake || die "Compilation failed."
107 }
108
109 src_install() {
110 # dir for pidfile
111 dodir /var/run/${PN} || die "dodir failed"
112 keepdir /var/run/${PN}
113 fowners ${PN}:${PN} /var/run/${PN} || die "fowners failed"
114
115 # fetchmail's homedir (holds fetchmail's .fetchids)
116 dodir /var/lib/${PN} || die "dodir failed"
117 keepdir /var/lib/${PN}
118 fowners ${PN}:${PN} /var/lib/${PN} || die "fowners failed"
119 fperms 700 /var/lib/${PN} || die "fperms failed"
120
121 emake DESTDIR="${D}" install || die
122 python_need_rebuild
123
124 dohtml *.html
125
126 dodoc FAQ FEATURES NEWS NOTES README README.NTLM README.SSL TODO || die
127
128 newinitd "${FILESDIR}"/fetchmail.new fetchmail || die
129 newconfd "${FILESDIR}"/conf.d-fetchmail fetchmail || die
130
131 docinto contrib
132 local f
133 for f in contrib/* ; do
134 [ -f "${f}" ] && dodoc "${f}"
135 done
136 }
137
138 pkg_postinst() {
139 python_version
140 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
141
142 if ! python -c "import Tkinter" >/dev/null 2>&1
143 then
144 elog
145 elog "You will not be able to use fetchmailconf(1), because you"
146 elog "don't seem to have Python with tkinter support."
147 elog
148 elog "If you want to be able to use fetchmailconf(1), do the following:"
149 elog " 1. Add 'tk' to the USE variable in /etc/make.conf."
150 elog " 2. (Re-)merge Python."
151 elog
152 fi
153
154 elog "Please see /etc/conf.d/fetchmail if you want to adjust"
155 elog "the polling delay used by the fetchmail init script."
156 }
157
158 pkg_postrm() {
159 python_version
160 python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages
161 }