diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-05-16 22:05:25 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-05-16 22:05:25 +0000 |
commit | 3f5647de2d3f4209344fbddcd4d2df63bfaa5294 (patch) | |
tree | 8a2175516d3a2392d7bde296f45559b983bfb995 /app-mobilephone/kannel | |
parent | warn people about using the pic flag (diff) | |
download | historical-3f5647de2d3f4209344fbddcd4d2df63bfaa5294.tar.gz historical-3f5647de2d3f4209344fbddcd4d2df63bfaa5294.tar.bz2 historical-3f5647de2d3f4209344fbddcd4d2df63bfaa5294.zip |
initial import from #30749
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'app-mobilephone/kannel')
-rw-r--r-- | app-mobilephone/kannel/ChangeLog | 10 | ||||
-rw-r--r-- | app-mobilephone/kannel/Manifest | 16 | ||||
-rw-r--r-- | app-mobilephone/kannel/files/digest-kannel-1.4.0 | 1 | ||||
-rw-r--r-- | app-mobilephone/kannel/files/kannel-confd | 10 | ||||
-rw-r--r-- | app-mobilephone/kannel/files/kannel-initd | 68 | ||||
-rw-r--r-- | app-mobilephone/kannel/kannel-1.4.0.ebuild | 89 | ||||
-rw-r--r-- | app-mobilephone/kannel/metadata.xml | 8 |
7 files changed, 202 insertions, 0 deletions
diff --git a/app-mobilephone/kannel/ChangeLog b/app-mobilephone/kannel/ChangeLog new file mode 100644 index 000000000000..f75dfbe662a2 --- /dev/null +++ b/app-mobilephone/kannel/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-mobilephone/kannel +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel/ChangeLog,v 1.1 2005/05/16 22:05:25 mrness Exp $ + +*kannel-1.4.0 (16 May 2005) + + 16 May 2005; Alin Nastac <mrness@gentoo.org> +files/kannel-confd, + +files/kannel-initd, +metadata.xml, +kannel-1.4.0.ebuild: + Initial import from bug #30749. + diff --git a/app-mobilephone/kannel/Manifest b/app-mobilephone/kannel/Manifest new file mode 100644 index 000000000000..89dfa57e3755 --- /dev/null +++ b/app-mobilephone/kannel/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 94e6880a88f56716d3c772ca69322077 ChangeLog 409 +MD5 8e6557d777542beebd0e35c01bdc156c metadata.xml 389 +MD5 ef3f70b16716a1f687642cbefd489321 kannel-1.4.0.ebuild 2196 +MD5 a7c05f05df99dd759d119b393cbe59e0 files/digest-kannel-1.4.0 66 +MD5 b77f55cded4c364d155c302e81eb07c6 files/kannel-confd 366 +MD5 0b79d37344165b8743061f68a18959ce files/kannel-initd 1529 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCiRkyjiC39V7gKu0RApbDAKDJnFnPUB6oryToDn3AKs3GsMH94wCg3t7A +1Hw52BB0TO22izflAT5ZRIU= +=7enp +-----END PGP SIGNATURE----- diff --git a/app-mobilephone/kannel/files/digest-kannel-1.4.0 b/app-mobilephone/kannel/files/digest-kannel-1.4.0 new file mode 100644 index 000000000000..6c95c81880b6 --- /dev/null +++ b/app-mobilephone/kannel/files/digest-kannel-1.4.0 @@ -0,0 +1 @@ +MD5 b6fbb1599b377c44c35a5338746c42d3 gateway-1.4.0.tar.gz 2465341 diff --git a/app-mobilephone/kannel/files/kannel-confd b/app-mobilephone/kannel/files/kannel-confd new file mode 100644 index 000000000000..686be7ebc733 --- /dev/null +++ b/app-mobilephone/kannel/files/kannel-confd @@ -0,0 +1,10 @@ +START_SMSBOX=yes +START_WAPBOX=yes + +#See the documentation for setting proper options +#Note: verbosity codes are strange! +# Default is 0, which means 'debug'. 1 is 'info, 2 'warning', 3 'error' and 4 'panic' + +BEARERBOX_OPTS="--verbosity 1 --logfile bearerbox.log" +SMSBOX_OPTS="--verbosity 1 --logfile smsbox.log" +WAPBOX_OPTS="--verbosity 1 --logfile wapbox.log" diff --git a/app-mobilephone/kannel/files/kannel-initd b/app-mobilephone/kannel/files/kannel-initd new file mode 100644 index 000000000000..25003fdd1c92 --- /dev/null +++ b/app-mobilephone/kannel/files/kannel-initd @@ -0,0 +1,68 @@ +#!/sbin/runscript + +depend() { + need net + after mysql postgresql sshd +} + +checkconfig() { + if [ ! -f /etc/kannel/kannel.conf ] ; then + eerror "/etc/kannel/kannel.conf file doesn't exists!" + return 1 + fi + #set the location of logs + if ! cd /var/log/kannel ; then + eerror "/var/log/kannel directory doesn't exists!" + return 1 + fi +} + +start() { + checkconfig || return 1 + + einfo "Starting Kannel" + ebegin " - Bearer Box" + start-stop-daemon --start --quiet --chuid kannel --exec /usr/sbin/bearerbox \ + --background -- $BEARERBOX_OPTS /etc/kannel/kannel.conf + eend $? || return 1 + + if [ "$START_SMSBOX" = "yes" ] ; then + ebegin " - SMS Box" + start-stop-daemon --start --quiet --chuid kannel --exec /usr/sbin/smsbox \ + --background -- $SMSBOX_OPTS /etc/kannel/kannel.conf + eend $? + fi + + if [ "$START_WAPBOX" = "yes" ] ; then + ebegin " - WAP Box" + start-stop-daemon --start --quiet --chuid kannel --exec /usr/sbin/wapbox \ + --background -- $WAPBOX_OPTS /etc/kannel/kannel.conf + eend $? + fi + + return 0 +} + +stop() { + if [ "$START_WAPBOX" = "yes" ] ; then + einfo "Stopping Kannel" + ebegin " - WAP Box" + start-stop-daemon --stop --quiet --exec /usr/sbin/wapbox + eend $? + fi + + if [ "$START_SMSBOX" = "yes" ] ; then + ebegin " - SMS Box" + start-stop-daemon --stop --quiet --exec /usr/sbin/smsbox + eend $? + fi + + ebegin " - Bearer Box" + start-stop-daemon --stop --quiet --exec /usr/sbin/bearerbox + eend $? + + #stopping any other processes owned by kannel user + start-stop-daemon --stop --quiet --user kannel + + return 0 +} diff --git a/app-mobilephone/kannel/kannel-1.4.0.ebuild b/app-mobilephone/kannel/kannel-1.4.0.ebuild new file mode 100644 index 000000000000..b65183295f16 --- /dev/null +++ b/app-mobilephone/kannel/kannel-1.4.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel/kannel-1.4.0.ebuild,v 1.1 2005/05/16 22:05:25 mrness Exp $ +inherit eutils + +DESCRIPTION="Powerful SMS and WAP gateway" +HOMEPAGE="http://www.kannel.org/" +SRC_URI="http://www.kannel.org/download/${PV}/gateway-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="ssl mysql sqlite postgres pcre doc debug pam" + +RDEPEND="virtual/libc + >=dev-libs/libxml2-2.6.17 + >=dev-lang/perl-5.8.5 + >=sys-libs/zlib-1.2.2 + ssl? ( >=dev-libs/openssl-0.9.7d ) + mysql? ( >=dev-db/mysql-4.0.22 ) + sqlite? ( dev-db/sqlite ) + postgres? ( dev-db/postgresql ) + pcre? ( dev-libs/libpcre ) + doc? ( media-gfx/transfig + app-text/jadetex + app-text/docbook-dsssl-stylesheets ) + pam? ( >=sys-libs/pam-0.77 )" +DEPEND="${RDEPEND} + >=sys-devel/bison-1.875d" + +S=${WORKDIR}/gateway-${PV} + +src_unpack() { + unpack ${A} + + cd ${S} + #by default, use current directory for logging + sed -i -e 's:/tmp/::' doc/examples/kannel.conf + #correct doc path + sed -i -e "s:share/doc/kannel:share/doc/${PF}:" configure configure.in +} + +src_compile() { + econf \ + --enable-localtime \ + --disable-start-stop-daemon \ + $(use_enable pam) \ + $(use_enable debug debug) \ + $(use_enable pcre) \ + $(use_enable doc docs) \ + $(use_enable ssl) \ + $(use_with mysql) \ + $(use_with sqlite) \ + $(use_with postgres pgsql) \ + || die "./configure failed" + + emake || die "emake failed" +} + +pkg_preinst() { + enewgroup kannel + enewuser kannel -1 /bin/false /var/log/kannel kannel +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + + use doc && make DESTDIR=${D} install-docs + dodoc README LICENSE + + diropts -g kannel -m0750 + dodir /etc/kannel + insinto /etc/kannel + newins doc/examples/kannel.conf kannel.conf.sample + newins doc/examples/modems.conf modems.conf.sample + use mysql && newins doc/examples/dlr-mysql.conf dlr-mysql.conf.sample + + diropts -g kannel -m0770 + keepdir /var/log/kannel + + exeinto /etc/init.d + newexe ${FILESDIR}/kannel-initd kannel + insinto /etc/conf.d + newins ${FILESDIR}/kannel-confd kannel +} + +src_test() { + make check || die "make check failed" +} diff --git a/app-mobilephone/kannel/metadata.xml b/app-mobilephone/kannel/metadata.xml new file mode 100644 index 000000000000..09ab64e83310 --- /dev/null +++ b/app-mobilephone/kannel/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mobile-phone</herd> +<longdescription>Kannel is a compact and very powerful open source WAP and SMS gateway, +used widely across the globe both for serving millions of short messages (SMS) +and pushing WAP service indications.</longdescription> +</pkgmetadata> |