/[gentoo-x86]/net-mail/fetchmail/fetchmail-6.3.21.ebuild
Gentoo

Contents of /net-mail/fetchmail/fetchmail-6.3.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Dec 16 20:58:06 2012 UTC (5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-mail/fetchmail/fetchmail-6.3.21.ebuild,v 1.9 2012/08/30 17:32:34 radhermit Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="tk? 2"
8 PYTHON_USE_WITH_OPT="tk"
9 PYTHON_USE_WITH="tk"
10
11 inherit python eutils autotools user
12
13 DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
14 HOMEPAGE="http://fetchmail.berlios.de"
15 SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
16
17 LICENSE="GPL-2 public-domain"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
20 IUSE="ssl nls kerberos hesiod tk socks"
21
22 RDEPEND="hesiod? ( net-dns/hesiod )
23 ssl? ( >=dev-libs/openssl-0.9.6 )
24 kerberos? ( virtual/krb5 >=dev-libs/openssl-0.9.6 )
25 nls? ( virtual/libintl )
26 !elibc_glibc? ( sys-libs/e2fsprogs-libs )
27 socks? ( net-proxy/dante )"
28 DEPEND="${RDEPEND}
29 sys-devel/flex
30 nls? ( sys-devel/gettext )"
31
32 pkg_setup() {
33 enewgroup ${PN}
34 enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
35 if use tk; then
36 python_set_active_version 2
37 python_pkg_setup
38 fi
39 }
40
41 src_prepare() {
42 epatch "${FILESDIR}/${PN}-gss_c_nt_hostbased_service.patch"
43 eautoreconf
44 # dont compile during src_install
45 : > "${S}"/py-compile
46 }
47
48 src_configure() {
49 if use tk ; then
50 export PYTHON=$(PYTHON -a )
51 else
52 export PYTHON=:
53 fi
54 econf \
55 --enable-RPA \
56 --enable-NTLM \
57 --enable-SDPS \
58 $(use_enable nls) \
59 $(use_with ssl ssl "${EPREFIX}/usr") \
60 $(use kerberos && echo "--with-ssl=${EPREFIX}/usr" ) \
61 $(use_with kerberos gssapi) \
62 $(use_with kerberos kerberos5) \
63 $(use_with hesiod) \
64 $(use_with socks)
65 }
66
67 src_install() {
68 # fetchmail's homedir (holds fetchmail's .fetchids)
69 keepdir /var/lib/${PN} || die
70 fowners ${PN}:${PN} /var/lib/${PN} || die
71 fperms 700 /var/lib/${PN} || die
72
73 emake DESTDIR="${D}" install || die
74
75 dohtml *.html
76
77 dodoc FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO || die
78
79 newinitd "${FILESDIR}"/fetchmail.initd fetchmail || die
80 newconfd "${FILESDIR}"/fetchmail.confd fetchmail || die
81
82 docinto contrib
83 local f
84 for f in contrib/* ; do
85 [ -f "${f}" ] && dodoc "${f}"
86 done
87 }
88
89 pkg_postinst() {
90 use tk && python_mod_optimize fetchmailconf.py
91
92 elog "Please see /etc/conf.d/fetchmail if you want to adjust"
93 elog "the polling delay used by the fetchmail init script."
94 }
95
96 pkg_postrm() {
97 use tk && python_mod_cleanup fetchmailconf.py
98 }

  ViewVC Help
Powered by ViewVC 1.1.13