1 |
commit: 53a0888a09fa3b8661d47f26b111122b8d4547ef |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 5 18:55:04 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 5 18:55:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a0888a |
7 |
|
8 |
app-mobilephone/kannel: Revbump for dependency change |
9 |
|
10 |
Bug: https://bugs.gentoo.org/665830 |
11 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
12 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
13 |
|
14 |
app-mobilephone/kannel/kannel-1.5.0-r4.ebuild | 128 ++++++++++++++++++++++++++ |
15 |
1 file changed, 128 insertions(+) |
16 |
|
17 |
diff --git a/app-mobilephone/kannel/kannel-1.5.0-r4.ebuild b/app-mobilephone/kannel/kannel-1.5.0-r4.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..685697eb64d |
20 |
--- /dev/null |
21 |
+++ b/app-mobilephone/kannel/kannel-1.5.0-r4.ebuild |
22 |
@@ -0,0 +1,128 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+WANT_AUTOMAKE=none |
28 |
+ |
29 |
+inherit autotools flag-o-matic ssl-cert user |
30 |
+ |
31 |
+DESCRIPTION="Powerful SMS and WAP gateway" |
32 |
+HOMEPAGE="http://www.kannel.org/" |
33 |
+SRC_URI="http://www.kannel.org/download/${PV}/gateway-${PV}.tar.gz" |
34 |
+ |
35 |
+LICENSE="Apache-1.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="debug doc mysql libressl pam pcre postgres sqlite ssl" |
39 |
+ |
40 |
+RESTRICT="test" # some tests fail with "address already in use" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ sys-libs/e2fsprogs-libs |
44 |
+ dev-libs/libxml2:2 |
45 |
+ dev-lang/perl |
46 |
+ sys-libs/zlib |
47 |
+ ssl? ( |
48 |
+ libressl? ( dev-libs/libressl:0= ) |
49 |
+ !libressl? ( dev-libs/openssl:0= ) ) |
50 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
51 |
+ sqlite? ( dev-db/sqlite:3 ) |
52 |
+ postgres? ( dev-db/postgresql:=[server] ) |
53 |
+ pcre? ( dev-libs/libpcre:3 ) |
54 |
+ pam? ( virtual/pam ) |
55 |
+" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ >=sys-devel/bison-2.2 |
58 |
+ doc? ( media-gfx/transfig |
59 |
+ app-text/jadetex |
60 |
+ app-text/docbook-dsssl-stylesheets |
61 |
+ app-text/docbook-sgml-dtd:3.1 ) |
62 |
+" |
63 |
+ |
64 |
+S="${WORKDIR}/gateway-${PV}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-1.5.0-custom-wap-ports.patch" |
68 |
+ "${FILESDIR}/${PN}-1.4.3-autotools.patch" |
69 |
+ "${FILESDIR}/${PN}-1.4.3-external-libuuid.patch" |
70 |
+ "${FILESDIR}/${PN}-1.5.0-initgroups.patch" |
71 |
+) |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ enewgroup kannel |
75 |
+ enewuser kannel -1 -1 /var/log/kannel kannel |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ |
81 |
+ #by default, use current directory for logging |
82 |
+ sed -i -e 's:/tmp/::' doc/examples/kannel.conf |
83 |
+ |
84 |
+ mv configure.in configure.ac || die |
85 |
+ eautoconf |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ append-flags -fno-strict-aliasing # some code breaks strict aliasing |
90 |
+ econf \ |
91 |
+ --enable-localtime \ |
92 |
+ --disable-start-stop-daemon \ |
93 |
+ --without-sqlite2 \ |
94 |
+ $(use_enable pam) \ |
95 |
+ $(use_enable debug debug) \ |
96 |
+ $(use_enable pcre) \ |
97 |
+ $(use_enable doc docs) \ |
98 |
+ $(use_enable ssl) \ |
99 |
+ $(use_with mysql) \ |
100 |
+ $(use_with sqlite sqlite3) \ |
101 |
+ $(use_with postgres pgsql) |
102 |
+} |
103 |
+ |
104 |
+# phase disabled by RESTRICT |
105 |
+# src_test() { |
106 |
+# emake check || die "emake check failed" |
107 |
+# } |
108 |
+ |
109 |
+src_install() { |
110 |
+ default |
111 |
+ |
112 |
+ if use doc; then |
113 |
+ emake -j1 DESTDIR="${D}" install-docs || die "emake install-docs failed" |
114 |
+ fi |
115 |
+ |
116 |
+ diropts -g kannel -m0750 |
117 |
+ dodir /etc/kannel |
118 |
+ insinto /etc/kannel |
119 |
+ newins doc/examples/kannel.conf kannel.conf.sample |
120 |
+ |
121 |
+ local f |
122 |
+ for f in bearerbox smsbox wapbox; do |
123 |
+ newinitd "${FILESDIR}/kannel-$f.initd" kannel-$f |
124 |
+ done |
125 |
+ |
126 |
+ diropts -g kannel -m0770 |
127 |
+ keepdir /var/log/kannel |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ if use ssl; then |
132 |
+ elog "SSL certificate can be created by running" |
133 |
+ elog " emerge --config =${CATEGORY}/${PF}" |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+pkg_config() { |
138 |
+ if use ssl; then |
139 |
+ if install_cert /etc/ssl/kannel; then |
140 |
+ chown kannel "${ROOT}"etc/ssl/kannel.{pem,key} |
141 |
+ einfo "For using this certificate, you have to add following line to your kannel.conf:" |
142 |
+ einfo ' ssl-client-certkey-file = "/etc/ssl/kannel.pem"' |
143 |
+ einfo ' ssl-server-cert-file = "/etc/ssl/kannel.crt"' |
144 |
+ einfo ' ssl-server-key-file = "/etc/ssl/kannel.key"' |
145 |
+ fi |
146 |
+ else |
147 |
+ eerror "This phase exists only for creating kannel SSL certificate" |
148 |
+ eerror "and ssl USE flag is disabled for this package!" |
149 |
+ fi |
150 |
+} |