Prechádzať zdrojové kódy

pkg: move gentoo ebuild to ser directory, remove obselete 0.8.X ebuild

Henning Westerholt 14 rokov pred
rodič
commit
e9771b7dd1

+ 0 - 0
pkg/sip-router/gentoo/ChangeLog → pkg/ser/gentoo/ChangeLog


+ 0 - 0
pkg/sip-router/gentoo/Manifest → pkg/ser/gentoo/Manifest


+ 0 - 0
pkg/sip-router/gentoo/files/Makefile.defs.diff → pkg/ser/gentoo/files/Makefile.defs.diff


+ 0 - 0
pkg/sip-router/gentoo/files/siprouter.confd → pkg/ser/gentoo/files/siprouter.confd


+ 0 - 0
pkg/sip-router/gentoo/files/siprouter.init → pkg/ser/gentoo/files/siprouter.init


+ 0 - 0
pkg/sip-router/gentoo/metadata.xml → pkg/ser/gentoo/metadata.xml


+ 0 - 68
pkg/ser/gentoo/ser-0.8.10.ebuild

@@ -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
-}

+ 0 - 106
pkg/ser/gentoo/ser-0.8.11.ebuild

@@ -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
-}

+ 0 - 106
pkg/ser/gentoo/ser-0.8.12.ebuild

@@ -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
-}

+ 0 - 106
pkg/ser/gentoo/ser-0.8.14.ebuild

@@ -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
-}

+ 0 - 59
pkg/ser/gentoo/ser-0.8.9.ebuild

@@ -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
-}

+ 0 - 33
pkg/ser/gentoo/ser.init

@@ -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 $?
-}
-

+ 0 - 0
pkg/sip-router/gentoo/sip-router-3.1.2.ebuild → pkg/ser/gentoo/sip-router-3.1.2.ebuild


+ 0 - 0
pkg/sip-router/gentoo/sip-router-3.1.3.ebuild → pkg/ser/gentoo/sip-router-3.1.3.ebuild


+ 0 - 0
pkg/sip-router/gentoo/sip-router-3.1.4-r1.ebuild → pkg/ser/gentoo/sip-router-3.1.4-r1.ebuild


+ 0 - 0
pkg/sip-router/gentoo/sip-router-3.1.4.ebuild → pkg/ser/gentoo/sip-router-3.1.4.ebuild