Gentoo Archives: gentoo-commits

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