1 |
commit: 51d6ba35065ddb6e91bf5011c6f835315d834337 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 23:55:06 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 23:55:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d6ba35 |
7 |
|
8 |
mail-client/nail: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
mail-client/nail/nail-12.4-r3.ebuild | 110 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 110 insertions(+) |
14 |
|
15 |
diff --git a/mail-client/nail/nail-12.4-r3.ebuild b/mail-client/nail/nail-12.4-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..98b25cd |
18 |
--- /dev/null |
19 |
+++ b/mail-client/nail/nail-12.4-r3.ebuild |
20 |
@@ -0,0 +1,110 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+ |
27 |
+inherit eutils toolchain-funcs |
28 |
+ |
29 |
+HOMEPAGE="http://heirloom.sourceforge.net/" |
30 |
+DESCRIPTION="an enhanced mailx-compatible mail client" |
31 |
+LICENSE="BSD" |
32 |
+ |
33 |
+MY_PN="mailx" |
34 |
+MY_P="${MY_PN}-${PV}" |
35 |
+SRC_URI="mirror://sourceforge/project/heirloom/heirloom-${MY_PN}/${PV}/${MY_P}.tar.bz2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" |
38 |
+IUSE="libressl ssl net kerberos" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ net? ( |
42 |
+ ssl? ( |
43 |
+ !libressl? ( dev-libs/openssl:0 ) |
44 |
+ libressl? ( dev-libs/libressl ) |
45 |
+ ) |
46 |
+ kerberos? ( virtual/krb5 ) |
47 |
+ ) |
48 |
+ !mail-client/mailx |
49 |
+ !net-mail/mailutils |
50 |
+" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+ |
53 |
+S=${WORKDIR}/${MY_P} |
54 |
+ |
55 |
+undef() { |
56 |
+ sed -i -e "/$1/s:#define:#undef:" config.h || die |
57 |
+} |
58 |
+ |
59 |
+droplib() { |
60 |
+ sed -i -e "/$1/s:^:#:" LIBS || die |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ epatch "${FILESDIR}"/${P}-debian.patch \ |
65 |
+ "${FILESDIR}"/${P}-openssl-1.patch |
66 |
+ # Do not strip the binary |
67 |
+ sed -i -e '/STRIP/d' Makefile |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ # Build config.h and LIBS, neccesary to tweak the config |
72 |
+ # use -j1 because it will produce bogus output otherwise |
73 |
+ emake -j1 config.h LIBS || die |
74 |
+ |
75 |
+ # Logic to 'configure' the package |
76 |
+ |
77 |
+ if ! use ssl || ! use net ; then |
78 |
+ undef 'USE_\(OPEN\)\?SSL' |
79 |
+ droplib -lssl |
80 |
+ fi |
81 |
+ |
82 |
+ if ! use kerberos || ! use net ; then |
83 |
+ undef 'USE_GSSAPI' |
84 |
+ droplib -lgssapi_krb5 |
85 |
+ fi |
86 |
+ |
87 |
+ if ! use net ; then |
88 |
+ undef 'HAVE_SOCKETS' |
89 |
+ fi |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ # No configure script to check for and set this |
94 |
+ tc-export CC |
95 |
+ |
96 |
+ emake \ |
97 |
+ CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" \ |
98 |
+ PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc \ |
99 |
+ SENDMAIL="${EPREFIX}/usr/sbin/sendmail" \ |
100 |
+ MAILSPOOL='/var/spool/mail' \ |
101 |
+ || die "emake failed" |
102 |
+} |
103 |
+ |
104 |
+src_install () { |
105 |
+ # Use /usr/sbin/sendmail by default and provide an example |
106 |
+ cat <<- EOSMTP >> nail.rc |
107 |
+ |
108 |
+ # Use the local sendmail (/usr/sbin/sendmail) binary by default. |
109 |
+ # (Uncomment the following line to use a SMTP server) |
110 |
+ #set smtp=localhost |
111 |
+ |
112 |
+ # Ask for CC: list too. |
113 |
+ set askcc |
114 |
+ EOSMTP |
115 |
+ |
116 |
+ emake DESTDIR="${D}" \ |
117 |
+ UCBINSTALL=$(type -p install) \ |
118 |
+ PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc install \ |
119 |
+ || die |
120 |
+ |
121 |
+ dodoc AUTHORS README || die |
122 |
+ |
123 |
+ dodir /bin |
124 |
+ dosym ../usr/bin/mailx /bin/mail || die |
125 |
+ dosym mailx /usr/bin/mail || die |
126 |
+ dosym mailx /usr/bin/Mail || die |
127 |
+ |
128 |
+ dosym mailx.1 /usr/share/man/man1/mail.1 || die |
129 |
+ dosym mailx.1 /usr/share/man/man1/Mail.1 || die |
130 |
+} |