summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-09-12 21:30:33 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-09-12 21:30:33 +0000
commit7b025f0acb16202434509f780e26ec7ee8319aaf (patch)
tree1fd5d4c22bff0a33d1e1e60aca12e672c891c38a /net-misc
parentInitial commit, ebuild written by me. (diff)
downloadgentoo-2-7b025f0acb16202434509f780e26ec7ee8319aaf.tar.gz
gentoo-2-7b025f0acb16202434509f780e26ec7ee8319aaf.tar.bz2
gentoo-2-7b025f0acb16202434509f780e26ec7ee8319aaf.zip
Version bump.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/ser/ChangeLog7
-rw-r--r--net-misc/ser/files/digest-ser-0.9.45
-rw-r--r--net-misc/ser/ser-0.9.4.ebuild163
3 files changed, 174 insertions, 1 deletions
diff --git a/net-misc/ser/ChangeLog b/net-misc/ser/ChangeLog
index 41945a0f2306..1f1088dbde67 100644
--- a/net-misc/ser/ChangeLog
+++ b/net-misc/ser/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/ser
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ChangeLog,v 1.17 2005/09/12 21:18:05 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ChangeLog,v 1.18 2005/09/12 21:30:33 stkn Exp $
+
+*ser-0.9.4 (12 Sep 2005)
+
+ 12 Sep 2005; Stefan Knoblich <stkn@gentoo.org> +ser-0.9.4.ebuild:
+ Version bump.
12 Sep 2005; Stefan Knoblich <stkn@gentoo.org> -ser-0.8.9.ebuild,
-ser-0.8.10.ebuild, -ser-0.8.11.ebuild, -ser-0.8.14.ebuild:
diff --git a/net-misc/ser/files/digest-ser-0.9.4 b/net-misc/ser/files/digest-ser-0.9.4
new file mode 100644
index 000000000000..b9eeb2f464d0
--- /dev/null
+++ b/net-misc/ser/files/digest-ser-0.9.4
@@ -0,0 +1,5 @@
+MD5 d12d56d76c86b59dd51a43b3251b7d3a ser-0.9.4_src.tar.gz 1888783
+MD5 4acc4f68df2894da79cbc4d697f22c8f silomail-1.0-ser-0.9.0.tar.gz 4762
+MD5 72ab86bde9715f4f712c5b6fb8909dd0 ethz-1.0-ser-0.9.0.tar.gz 5266
+MD5 f5741e12d060323eed40f1af978a1310 ldap-1.0-ser-0.9.0.tar.gz 5069
+MD5 b5500e4b2156eed20df1284e85190ae4 ldaps-1.0-ser-0.9.0.tar.gz 5051
diff --git a/net-misc/ser/ser-0.9.4.ebuild b/net-misc/ser/ser-0.9.4.ebuild
new file mode 100644
index 000000000000..8c8d36ad1378
--- /dev/null
+++ b/net-misc/ser/ser-0.9.4.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.4.ebuild,v 1.1 2005/09/12 21:30:33 stkn Exp $
+
+inherit eutils flag-o-matic
+
+IUSE="ipv6 mysql radius postgres jabber ldap ssl"
+
+ETHZ_PV="1.0"
+LDAP_PV="1.0"
+LDAPS_PV="1.0"
+SILOMAIL_PV="1.0"
+
+DESCRIPTION="SIP Express Router"
+HOMEPAGE="http://www.iptel.org/ser"
+SRC_URI="ftp://ftp.berlios.de/pub/ser/${PV}/src/${P}_src.tar.gz
+ mirror://gentoo/silomail-${SILOMAIL_PV}-${PN}-0.9.0.tar.gz
+ mirror://gentoo/ethz-${ETHZ_PV}-${PN}-0.9.0.tar.gz
+ ldap? ( mirror://gentoo/ldap-${LDAP_PV}-${PN}-0.9.0.tar.gz
+ mirror://gentoo/ldaps-${LDAPS_PV}-${PN}-0.9.0.tar.gz )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~ppc ~sparc ~x86"
+
+RDEPEND="
+ mysql? ( >=dev-db/mysql-3.23.52 )
+ radius? ( >=net-dialup/radiusclient-ng-0.5.0 )
+ postgres? ( dev-db/postgresql )
+ jabber? ( dev-libs/expat )
+ ldap? (
+ net-nds/openldap
+ ssl? ( dev-libs/openssl )
+ )"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/bison-1.35
+ >=sys-devel/flex-2.5.4a"
+
+src_unpack() {
+ local modules extmodules MY_A
+
+ # unpack ser source
+ unpack ${P}_src.tar.gz
+
+ cd ${S}
+ use ipv6 || \
+ sed -i -e "s/-DUSE_IPV6//g" Makefile.defs
+
+ # external modules
+ extmodules="silomail ethz"
+
+ use mysql && \
+ modules="${modules} mysql"
+
+ use radius && \
+ modules="${modules} auth_radius group_radius uri_radius avp_radius"
+
+ use jabber && \
+ modules="${modules} jabber"
+
+ use postgres && \
+ modules="${modules} postgres"
+
+ use ldap && \
+ extmodules="${extmodules} ldap"
+
+ use ldap && use ssl && \
+ extmodules="${extmodules} ldaps"
+
+ # put list of modules into Makefile, we need the list
+ # during compile and install phase...
+ sed -i -e "s:^\(include_modules.*\):\1 ${modules} ${extmodules}:" \
+ Makefile
+
+ # fix ser.cfg
+ sed -i -e "/force_send_socket(smaug:5080);/ d" \
+ etc/ser.cfg
+
+ # unpack external modules
+ # ugly i know...
+ for x in ${extmodules}; do
+ MY_A=$(eval echo ${x}-\${$(echo ${x} | tr "[:lower:]" "[:upper:]")_PV}-${PN}-0.9.0)
+ mkdir -p ${S}/modules/${x}
+ cd ${S}/modules/${x}
+ unpack ${MY_A}.tar.gz
+ # fix makefiles
+ if [[ -f ${FILESDIR}/${MY_A}.diff ]]; then
+ epatch ${FILESDIR}/${MY_A}.diff
+ fi
+ done
+
+ # remove sasl if openldap hasn't been built with it
+ if use ldap && ! built_with_use net-nds/openldap sasl; then
+ sed -i -e "s:-lsasl::g" \
+ ${S}/modules/ldap/Makefile
+
+ if use ssl; then
+ sed -i -e "s:-lsasl::g" \
+ ${S}/modules/ldaps/Makefile
+ fi
+ fi
+}
+
+src_compile() {
+ # add -fPIC
+ append-flags -fPIC
+
+ make all \
+ CFLAGS="${CFLAGS}" \
+ cfg-prefix=/ \
+ cfg-target=/etc/ser \
+ ${myconf} || die
+}
+
+src_install () {
+ make install \
+ prefix="" \
+ bin-prefix=${D}/usr/sbin \
+ bin-dir="" \
+ cfg-prefix=${D}/etc \
+ cfg-dir=ser/ \
+ cfg-target=/etc/ser/ \
+ modules-prefix=${D}/usr/lib/ser \
+ modules-dir=modules \
+ modules-target=/usr/lib/ser/modules/ \
+ man-prefix=${D}/usr/share/man \
+ man-dir="" \
+ doc-prefix=${D}/usr/share/doc \
+ doc-dir=${P} || die
+
+ newinitd ${FILESDIR}/ser.rc6 ser
+ newconfd ${FILESDIR}/ser.confd ser
+ exeinto /usr/sbin
+ newexe scripts/harv_ser.sh harv_ser.sh
+ newexe scripts/sc serctl
+ newexe scripts/ser_mysql.sh ser_mysql.sh
+
+ #
+ # non-root
+ #
+ enewgroup ser
+ enewuser ser -1 -1 /dev/null ser
+
+ chown -R root:ser ${D}/etc/ser
+ chmod 750 ${D}/etc/ser
+ chmod 640 ${D}/etc/ser/*
+
+ # fix manpages
+ sed -i -e "s:^.B /ser-${PV}AUTHORS:.B /usr/share/doc/${PF}/AUTHORS:" \
+ -e "s:^.B /ser:.B /usr/sbin/ser:" \
+ ${D}/usr/share/man/*/*
+}
+
+pkg_postinst() {
+ if has_version ${CATEGORY}/${PN}; then
+ einfo "Changing permissions on ${ROOT}etc/ser"
+
+ chown -R root:ser ${ROOT}/etc/ser
+ chmod 750 ${ROOT}/etc/ser
+ chmod 640 ${ROOT}/etc/ser/*
+ fi
+}