/[gentoo-x86]/app-mobilephone/kannel-sqlbox/kannel-sqlbox-0.7.2.ebuild
Gentoo

Contents of /app-mobilephone/kannel-sqlbox/kannel-sqlbox-0.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jul 25 01:53:56 2013 UTC (5 years, 3 months ago) by creffett
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Fix LICENSE wrt bug 425914.

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 42618354)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel-sqlbox/kannel-sqlbox-0.7.2.ebuild,v 1.3 2012/12/02 08:26:23 ulm Exp $
4
5 EAPI="2"
6
7 inherit eutils autotools
8
9 DESCRIPTION="DB-Based Kannel Box for message queueing"
10 HOMEPAGE="http://www.kannel.org/~aguerrieri/SqlBox/"
11 SRC_URI="http://www.kannel.org/~aguerrieri/SqlBox/Releases/sqlbox-${PV}.tar.gz"
12
13 LICENSE="Apache-1.1 GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="ssl doc"
17
18 RDEPEND="|| (
19 >=app-mobilephone/kannel-1.4.3-r1[mysql]
20 >=app-mobilephone/kannel-1.4.3-r1[sqlite]
21 >=app-mobilephone/kannel-1.4.3-r1[postgres]
22 )
23 ssl? ( dev-libs/openssl )"
24 DEPEND="${RDEPEND}
25 doc? ( media-gfx/transfig
26 app-text/jadetex
27 app-text/docbook-dsssl-stylesheets
28 app-text/docbook-sgml-dtd:3.1 )"
29
30 S="${WORKDIR}/sqlbox-${PV}"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-sqlinit-hfiles.patch
34 epatch "${FILESDIR}"/${P}-configure.patch
35
36 # This package doesn't contain configure script, only configure.in
37 eautoreconf
38 }
39
40 src_configure() {
41 econf --docdir=/usr/share/doc/${PF} \
42 --without-ctlib \
43 --without-mssql \
44 $(use_enable ssl) \
45 $(use_enable doc docs) \
46 || die "econf failed"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die "failed emake install"
51
52 if use doc; then
53 emake doc/userguide.html || die "emake docs failed"
54 dohtml doc/userguide.html || die "userguide.html not found"
55 fi
56
57 newinitd "${FILESDIR}"/kannel-sqlbox.initd kannel-sqlbox
58
59 dodoc AUTHORS ChangeLog NEWS README
60 insinto /etc/kannel
61 newins example/sqlbox.conf.example sqlbox.conf.sample
62 }
63
64 pkg_postinst() {
65 elog "Please view the following page for config information:"
66 elog "http://www.kannel.org/pipermail/users/2006-October/000859.html"
67 elog ""
68 elog "In essence you need to do 3 things"
69 elog "1. Create the database (tables will be automatically created by kannel)"
70 elog "2. Point sqlbox to the smsbox-port in kannel [core] group"
71 elog "3. Point smsbox to smsbox-port in sqlbox [sqlbox] group"
72 elog ""
73 elog "This literally puts sqlbox in between the bearerbox and smsbox"
74 elog "for data storage into a database"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20