diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-02-20 21:16:08 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-02-20 21:16:08 +0000 |
commit | f7de8a1ee8cd01e6623357471de1b7b4c17206db (patch) | |
tree | 7c9475363715ed0057367668f5a37b5f0e776780 /net-misc | |
parent | New version (diff) | |
download | gentoo-2-f7de8a1ee8cd01e6623357471de1b7b4c17206db.tar.gz gentoo-2-f7de8a1ee8cd01e6623357471de1b7b4c17206db.tar.bz2 gentoo-2-f7de8a1ee8cd01e6623357471de1b7b4c17206db.zip |
Initial import
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-misc')
6 files changed, 105 insertions, 0 deletions
diff --git a/net-misc/asterisk-rate_engine/ChangeLog b/net-misc/asterisk-rate_engine/ChangeLog new file mode 100644 index 000000000000..20e9badf63c6 --- /dev/null +++ b/net-misc/asterisk-rate_engine/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/asterisk-rate_engine +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-rate_engine/ChangeLog,v 1.1 2005/02/20 21:16:08 stkn Exp $ + +*asterisk-rate_engine-0.5.4 (20 Feb 2005) + + 20 Feb 2005; Stefan Knoblich <stkn@gentoo.org> +metadata.xml, + +files/rate-engine-0.5.4-astcfg.diff, +asterisk-rate_engine-0.5.4.ebuild: + Initial import. + diff --git a/net-misc/asterisk-rate_engine/Manifest b/net-misc/asterisk-rate_engine/Manifest new file mode 100644 index 000000000000..bf1aea9fbd88 --- /dev/null +++ b/net-misc/asterisk-rate_engine/Manifest @@ -0,0 +1,2 @@ +MD5 d555e101d92937736b1acbe53d311cbd asterisk-rate_engine-0.5.4.ebuild 605 +MD5 0be620940cf5640a17daa830d0c9da2f files/digest-asterisk-rate_engine-0.5.4 68 diff --git a/net-misc/asterisk-rate_engine/asterisk-rate_engine-0.5.4.ebuild b/net-misc/asterisk-rate_engine/asterisk-rate_engine-0.5.4.ebuild new file mode 100644 index 000000000000..09278f6b7346 --- /dev/null +++ b/net-misc/asterisk-rate_engine/asterisk-rate_engine-0.5.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-rate_engine/asterisk-rate_engine-0.5.4.ebuild,v 1.1 2005/02/20 21:16:08 stkn Exp $ + +inherit eutils + +MY_PN="rate-engine" + +DESCRIPTION="Asterisk application for least-cost routing" +HOMEPAGE="http://www.trollphone.org/files/" +SRC_URI="http://www.trollphone.org/files/${MY_PN}-${PV}.tar.gz" + +IUSE="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="dev-libs/libpcre + dev-db/mysql + >=net-misc/asterisk-1.0.5-r1" + +S=${WORKDIR}/${MY_PN}-${PV} + +src_unpack() { + unpack ${A} + + cd ${S} + # cflag fixes, install fixes and changes for asterisk-config + epatch ${FILESDIR}/${MY_PN}-${PV}-astcfg.diff +} + +src_compile() { + emake -j1 || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install samples || die "make install failed" + + dodoc COPYING COPYRIGHT ChangeLog + dodoc DISCLAIMER NEWS README TODO + dodoc *.sql *.conf* +} diff --git a/net-misc/asterisk-rate_engine/files/digest-asterisk-rate_engine-0.5.4 b/net-misc/asterisk-rate_engine/files/digest-asterisk-rate_engine-0.5.4 new file mode 100644 index 000000000000..02bec07d6552 --- /dev/null +++ b/net-misc/asterisk-rate_engine/files/digest-asterisk-rate_engine-0.5.4 @@ -0,0 +1 @@ +MD5 5af498992de89d29683b847718a71c3d rate-engine-0.5.4.tar.gz 28883 diff --git a/net-misc/asterisk-rate_engine/files/rate-engine-0.5.4-astcfg.diff b/net-misc/asterisk-rate_engine/files/rate-engine-0.5.4-astcfg.diff new file mode 100644 index 000000000000..fe2772d660cc --- /dev/null +++ b/net-misc/asterisk-rate_engine/files/rate-engine-0.5.4-astcfg.diff @@ -0,0 +1,41 @@ +--- rate-engine-0.5.4/Makefile.orig 2005-02-21 04:42:24.046680160 +0100 ++++ rate-engine-0.5.4/Makefile 2005-02-21 04:47:38.049944408 +0100 +@@ -10,7 +10,7 @@ + + DEBUG+= -g -fno-inline-functions + +-CFLAGS+= -O3 -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow \ ++CFLAGS+= -fPIC -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow \ + $(DEBUG) -D_REENTRANT -I/usr/include/pcre + LDFLAGS+= $(DEBUG) + LDLIBS+= -lpthread +@@ -26,9 +26,9 @@ + OBJS:= $(SRCS:%.c=%.o) + MOD= rate_engine.so + +-ASTLIBDIR= /usr/lib/asterisk/modules +-ASTCONFDIR= /etc/asterisk +-BINDIR= /usr/bin ++ASTLIBDIR= $(shell /usr/bin/asterisk-config --modulesdir) ++ASTCONFDIR= $(shell /usr/bin/asterisk-config --sysconfdir) ++BINDIR= $(shell /usr/bin/asterisk-config --bindir) + + .PHONY: all + +@@ -50,12 +50,14 @@ + .PHONY: install + + install: all +- install -m 755 $(MOD) $(ASTLIBDIR) ++ if [ ! -d $(DESTDIR)$(ASTLIBDIR) ]; then mkdir -p $(DESTDIR)$(ASTLIBDIR); fi ++ install -m 755 $(MOD) $(DESTDIR)$(ASTLIBDIR) + + .PHONY: samples + + samples: +- install -m 644 rate_engine.conf.sample $(ASTCONFDIR)/rate_engine.conf ++ if [ ! -d $(DESTDIR)$(ASTCONFDIR) ]; then mkdir -p $(DESTDIR)$(ASTCONFDIR); fi ++ install -m 644 rate_engine.conf.sample $(DESTDIR)$(ASTCONFDIR)/rate_engine.conf + + ifneq ($(wildcard .depend),) + include .depend diff --git a/net-misc/asterisk-rate_engine/metadata.xml b/net-misc/asterisk-rate_engine/metadata.xml new file mode 100644 index 000000000000..a3cddc42f9cc --- /dev/null +++ b/net-misc/asterisk-rate_engine/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>voip</herd> +<maintainer> + <email>stkn@gentoo.org</email> +</maintainer> +</pkgmetadata> |