pkg: move gentoo ebuild to ser directory, remove obselete 0.8.X ebuild
authorHenning Westerholt <henning.westerholt@1und1.de>
Mon, 5 Sep 2011 19:33:21 +0000 (21:33 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Mon, 5 Sep 2011 19:33:21 +0000 (21:33 +0200)
16 files changed:
pkg/ser/gentoo/ChangeLog [moved from pkg/sip-router/gentoo/ChangeLog with 100% similarity]
pkg/ser/gentoo/Manifest [moved from pkg/sip-router/gentoo/Manifest with 100% similarity]
pkg/ser/gentoo/files/Makefile.defs.diff [moved from pkg/sip-router/gentoo/files/Makefile.defs.diff with 100% similarity]
pkg/ser/gentoo/files/siprouter.confd [moved from pkg/sip-router/gentoo/files/siprouter.confd with 100% similarity]
pkg/ser/gentoo/files/siprouter.init [moved from pkg/sip-router/gentoo/files/siprouter.init with 100% similarity]
pkg/ser/gentoo/metadata.xml [moved from pkg/sip-router/gentoo/metadata.xml with 100% similarity]
pkg/ser/gentoo/ser-0.8.10.ebuild [deleted file]
pkg/ser/gentoo/ser-0.8.11.ebuild [deleted file]
pkg/ser/gentoo/ser-0.8.12.ebuild [deleted file]
pkg/ser/gentoo/ser-0.8.14.ebuild [deleted file]
pkg/ser/gentoo/ser-0.8.9.ebuild [deleted file]
pkg/ser/gentoo/ser.init [deleted file]
pkg/ser/gentoo/sip-router-3.1.2.ebuild [moved from pkg/sip-router/gentoo/sip-router-3.1.2.ebuild with 100% similarity]
pkg/ser/gentoo/sip-router-3.1.3.ebuild [moved from pkg/sip-router/gentoo/sip-router-3.1.3.ebuild with 100% similarity]
pkg/ser/gentoo/sip-router-3.1.4-r1.ebuild [moved from pkg/sip-router/gentoo/sip-router-3.1.4-r1.ebuild with 100% similarity]
pkg/ser/gentoo/sip-router-3.1.4.ebuild [moved from pkg/sip-router/gentoo/sip-router-3.1.4.ebuild with 100% similarity]

diff --git a/pkg/ser/gentoo/ser-0.8.10.ebuild b/pkg/ser/gentoo/ser-0.8.10.ebuild
deleted file mode 100644 (file)
index dc497cd..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-DESCRIPTION="SIP Express Router"
-
-HOMEPAGE="http://www.iptel.org/ser"
-SRC_URI="ftp://ftp.berlios.de/pub/ser/0.8.10/src/${P}_src.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86"
-
-DEPEND=">=sys-devel/gcc-2.95.3
-               >=sys-devel/bison-1.35
-               >=sys-devel/flex-2.5.4a
-               mysql? ( >=dev-db/mysql-3.23.52 )
-               dev-libs/expat"
-
-S="${WORKDIR}/${P}"
-
-src_compile() {
-       if [ ! "`use ipv6`" ]; then
-               cp Makefile.defs Makefile.defs.orig 
-               sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
-       fi
-       local exclude="CVS radius_acc radius_auth snmp"
-       use mysql || exclude="${exclude} mysql"
-       make all CFLAGS="${CFLAGS}" \
-               prefix=${D}/ \
-               exclude_modules="${exclude}" \
-               cfg-prefix=/ \
-               cfg-target=/etc/ser/ || die
-}
-
-src_install () {
-       local exclude="CVS radius_acc radius_auth snmp"
-       use mysql || exclude="${exclude} mysql"
-       make install \
-               prefix=${D}/ \
-               exclude_modules="${exclude}" \
-               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
-       exeinto /etc/init.d
-       newexe gentoo/ser.init ser
-       # fix what the Makefile don't do
-       exeinto /usr/sbin
-       newexe scripts/harv_ser.sh harv_ser.sh
-       if [ "`use mysql`" ]; then
-               exeinto /usr/bin
-       else
-               rm ${D}/usr/sbin/ser_mysql.sh
-       fi
-}
-
-pkg_prerm () {
-       /etc/init.d/ser stop >/dev/null
-}
diff --git a/pkg/ser/gentoo/ser-0.8.11.ebuild b/pkg/ser/gentoo/ser-0.8.11.ebuild
deleted file mode 100644 (file)
index ff0fd2e..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2003 Fraunhofer Fokus
-# Distributed under the terms of the GNU General Public License v2
-# $Header$
-
-DESCRIPTION="SIP Express Router"
-
-HOMEPAGE="http://www.iptel.org/ser"
-SRC_URI="ftp://ftp.berlios.de/pub/ser/0.8.11/src/${P}_src.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc"
-IUSE="debug ipv6 mysql postgres"
-
-DEPEND=">=sys-devel/gcc-2.95.3
-               >=sys-devel/bison-1.35
-               >=sys-devel/flex-2.5.4a
-               mysql? ( >=dev-db/mysql-3.23.52 )
-               postgres? ( >=dev-db/postgresql-7.3.4 )"
-
-S="${WORKDIR}/${P}"
-
-inc_mod=""
-make_options=""
-
-check_mods() {
-       if [ "`use mysql`" ]; then
-               inc_mod="${inc_mod} mysql"
-       fi
-       if [ "`use postgres`" ]; then
-               inc_mod="${inc_mod} postgres"
-       fi
-       
-       # test some additional modules for which
-       # no USE variables exist
-       
-       # jabber module requires dev-libs/expat
-       if [ -f "/usr/include/expat.h" ]; then
-               inc_mod="${inc_mod} jabber"
-       fi
-       # Radius modules requires installed radiusclient
-       # which is not in portage yet
-       if [ -f "/usr/include/radiusclient.h" -o  -f "/usr/local/include/radisuclient.h" ]; then
-               inc_mod="${inc_mod} auth_radius group_radius uri_radius"
-       fi
-}
-
-src_compile() {
-       if [ ! "`use ipv6`" ]; then
-               cp Makefile.defs Makefile.defs.orig 
-               sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
-       fi
-       # optimization can result in strange debuging symbols so omit it in case
-       if [ "`use debug`" ]; then
-               make_options="${make_options} mode=debug"
-       else
-               make_options="${make_options} CFLAGS=${CFLAGS}"
-       fi
-
-       check_mods
-
-       make all "${make_options}" \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               cfg-prefix=/ \
-               cfg-target=/etc/ser/ || die
-}
-
-src_install () {
-       check_mods
-
-       make install \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               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
-       exeinto /etc/init.d
-       newexe gentoo/ser.init ser
-
-       # fix what the Makefile don't do
-       if [ ! "`use mysql`" ]; then
-               rm ${D}/usr/sbin/ser_mysql.sh
-       fi
-}
-
-pkg_postinst() {
-       einfo "WARNING: If you upgraded from a previous Ser version"
-       einfo "please read the README, NEWS and INSTALL files in the"
-       einfo "documentation directory because the database and the"
-       einfo "configuration file of old Ser versions are incompatible"
-       einfo "with the current version."
-}
-
-pkg_prerm () {
-       /etc/init.d/ser stop >/dev/null
-}
diff --git a/pkg/ser/gentoo/ser-0.8.12.ebuild b/pkg/ser/gentoo/ser-0.8.12.ebuild
deleted file mode 100644 (file)
index 5d08250..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2003 Fraunhofer Fokus
-# Distributed under the terms of the GNU General Public License v2
-# $Header$
-
-DESCRIPTION="SIP Express Router"
-
-HOMEPAGE="http://www.iptel.org/ser"
-SRC_URI="ftp://ftp.berlios.de/pub/ser/0.8.12/src/${P}_src.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc"
-IUSE="debug ipv6 mysql postgres"
-
-DEPEND=">=sys-devel/gcc-2.95.3
-               >=sys-devel/bison-1.35
-               >=sys-devel/flex-2.5.4a
-               mysql? ( >=dev-db/mysql-3.23.52 )
-               postgres? ( >=dev-db/postgresql-7.3.4 )"
-
-S="${WORKDIR}/${P}"
-
-inc_mod=""
-make_options=""
-
-check_mods() {
-       if [ "`use mysql`" ]; then
-               inc_mod="${inc_mod} mysql"
-       fi
-       if [ "`use postgres`" ]; then
-               inc_mod="${inc_mod} postgres"
-       fi
-       
-       # test some additional modules for which
-       # no USE variables exist
-       
-       # jabber module requires dev-libs/expat
-       if [ -f "/usr/include/expat.h" ]; then
-               inc_mod="${inc_mod} jabber"
-       fi
-       # Radius modules requires installed radiusclient
-       # which is not in portage yet
-       if [ -f "/usr/include/radiusclient.h" -o  -f "/usr/local/include/radisuclient.h" ]; then
-               inc_mod="${inc_mod} auth_radius group_radius uri_radius"
-       fi
-}
-
-src_compile() {
-       if [ ! "`use ipv6`" ]; then
-               cp Makefile.defs Makefile.defs.orig 
-               sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
-       fi
-       # optimization can result in strange debuging symbols so omit it in case
-       if [ "`use debug`" ]; then
-               make_options="${make_options} mode=debug"
-       else
-               make_options="${make_options} CFLAGS=${CFLAGS}"
-       fi
-
-       check_mods
-
-       make all "${make_options}" \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               cfg-prefix=/ \
-               cfg-target=/etc/ser/ || die
-}
-
-src_install () {
-       check_mods
-
-       make install \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               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
-       exeinto /etc/init.d
-       newexe gentoo/ser.init ser
-
-       # fix what the Makefile don't do
-       if [ ! "`use mysql`" ]; then
-               rm ${D}/usr/sbin/ser_mysql.sh
-       fi
-}
-
-pkg_postinst() {
-       einfo "WARNING: If you upgraded from a previous Ser version"
-       einfo "please read the README, NEWS and INSTALL files in the"
-       einfo "documentation directory because the database and the"
-       einfo "configuration file of old Ser versions are incompatible"
-       einfo "with the current version."
-}
-
-pkg_prerm () {
-       /etc/init.d/ser stop >/dev/null
-}
diff --git a/pkg/ser/gentoo/ser-0.8.14.ebuild b/pkg/ser/gentoo/ser-0.8.14.ebuild
deleted file mode 100644 (file)
index c154872..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2003 Fraunhofer Fokus
-# Distributed under the terms of the GNU General Public License v2
-# $Header$
-
-DESCRIPTION="SIP Express Router"
-
-HOMEPAGE="http://www.iptel.org/ser"
-SRC_URI="ftp://ftp.berlios.de/pub/ser/0.8.14/src/${P}_src.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc"
-IUSE="debug ipv6 mysql postgres"
-
-DEPEND=">=sys-devel/gcc-2.95.3
-               >=sys-devel/bison-1.35
-               >=sys-devel/flex-2.5.4a
-               mysql? ( >=dev-db/mysql-3.23.52 )
-               postgres? ( >=dev-db/postgresql-7.3.4 )"
-
-S="${WORKDIR}/${P}"
-
-inc_mod=""
-make_options=""
-
-check_mods() {
-       if [ "`use mysql`" ]; then
-               inc_mod="${inc_mod} mysql"
-       fi
-       if [ "`use postgres`" ]; then
-               inc_mod="${inc_mod} postgres"
-       fi
-       
-       # test some additional modules for which
-       # no USE variables exist
-       
-       # jabber module requires dev-libs/expat
-       if [ -f "/usr/include/expat.h" ]; then
-               inc_mod="${inc_mod} jabber"
-       fi
-       # Radius modules requires installed radiusclient
-       # which is not in portage yet
-       if [ -f "/usr/include/radiusclient.h" -o  -f "/usr/local/include/radisuclient.h" ]; then
-               inc_mod="${inc_mod} auth_radius group_radius uri_radius"
-       fi
-}
-
-src_compile() {
-       if [ ! "`use ipv6`" ]; then
-               cp Makefile.defs Makefile.defs.orig 
-               sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
-       fi
-       # optimization can result in strange debuging symbols so omit it in case
-       if [ "`use debug`" ]; then
-               make_options="${make_options} mode=debug"
-       else
-               make_options="${make_options} CFLAGS=${CFLAGS}"
-       fi
-
-       check_mods
-
-       make all "${make_options}" \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               cfg-prefix=/ \
-               cfg-target=/etc/ser/ || die
-}
-
-src_install () {
-       check_mods
-
-       make install \
-               prefix=${D}/ \
-               include_modules="${inc_mod}" \
-               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
-       exeinto /etc/init.d
-       newexe gentoo/ser.init ser
-
-       # fix what the Makefile don't do
-       if [ ! "`use mysql`" ]; then
-               rm ${D}/usr/sbin/ser_mysql.sh
-       fi
-}
-
-pkg_postinst() {
-       einfo "WARNING: If you upgraded from a previous Ser version"
-       einfo "please read the README, NEWS and INSTALL files in the"
-       einfo "documentation directory because the database and the"
-       einfo "configuration file of old Ser versions are incompatible"
-       einfo "with the current version."
-}
-
-pkg_prerm () {
-       /etc/init.d/ser stop >/dev/null
-}
diff --git a/pkg/ser/gentoo/ser-0.8.9.ebuild b/pkg/ser/gentoo/ser-0.8.9.ebuild
deleted file mode 100644 (file)
index cd133bb..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-DESCRIPTION="SIP Express Router"
-
-HOMEPAGE="http://www.iptel.org/ser"
-SRC_URI="ftp://ftp.berlios.de/pub/ser/0.8.9/src/${P}_src.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86"
-
-DEPEND=">=sys-devel/gcc-2.95.3
-               >=sys-devel/bison-1.35
-               >=sys-devel/flex-2.5.4a
-               mysql? ( >=dev-db/mysql-3.23.52 )"
-
-S="${WORKDIR}/${P}"
-
-src_compile() {
-       if [ ! "`use ipv6`" ]; then
-               cp Makefile.defs Makefile.defs.orig 
-               sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
-       fi
-       if [ "`use mysql`" ]; then
-               cp Makefile Makefile.orig
-               sed -e "s/ mysql //g" Makefile.orig > Makefile;
-       fi
-       echo ${D}
-       make all CFLAGS="${CFLAGS}" \
-               prefix=${D}/ \
-               cfg-prefix=/ \
-               cfg-target=/etc/ser/ || die
-}
-
-src_install () {
-       make install \
-               prefix=${D}/ \
-               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
-       exeinto /etc/init.d
-       newexe gentoo/ser.init ser
-       exeinto /usr/bin
-       exeinto /usr/sbin
-       newexe scripts/harv_ser.sh harv_ser.sh
-       newexe scripts/sc serctl
-       newexe scripts/ser_mysql.sh ser_mysql.sh
-}
diff --git a/pkg/ser/gentoo/ser.init b/pkg/ser/gentoo/ser.init
deleted file mode 100755 (executable)
index 0f1ad75..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/runscript
-# Copyright 2002 Frauenhofer Gesellschaft FOKUS, Germany.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header$
-
-depend() {
-       need net
-}
-
-check_config() {
-       out=`(/usr/sbin/ser -c > /dev/null || true) 2>&1`
-       echo "$out" | grep -q 'config file ok, exiting...'
-       if [ "$?" == 1 ]; then
-               echo -e "There are errors in the configuration. Please fix them first"
-               echo -e "\n$out\n"
-               return 1
-       fi
-}
-
-start() {
-       check_config || return 1
-       ebegin "Starting ser"
-       start-stop-daemon --start --quiet --pidfile /var/run/ser.pid \
-               --exec /usr/sbin/ser -- -P /var/run/ser.pid
-       eend $?
-}
-
-stop() {
-       ebegin "Stopping ser"
-       start-stop-daemon --stop --quiet --pidfile /var/run/ser.pid
-       eend $?
-}
-