summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-09-02 20:15:57 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-09-02 20:15:57 +0000
commit2f7ea1e4320b70d3066a02412b87434da69805e2 (patch)
tree670dc325f17cc243be18934d5df9bdf70d013eb6 /net-misc/asterisk-chan_sccp
parentmedia-plugins/gst-plugins-a52dec stable on ppc. (diff)
downloadhistorical-2f7ea1e4320b70d3066a02412b87434da69805e2.tar.gz
historical-2f7ea1e4320b70d3066a02412b87434da69805e2.tar.bz2
historical-2f7ea1e4320b70d3066a02412b87434da69805e2.zip
Version bump
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc/asterisk-chan_sccp')
-rw-r--r--net-misc/asterisk-chan_sccp/ChangeLog9
-rw-r--r--net-misc/asterisk-chan_sccp/Manifest5
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff60
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200509021
5 files changed, 127 insertions, 2 deletions
diff --git a/net-misc/asterisk-chan_sccp/ChangeLog b/net-misc/asterisk-chan_sccp/ChangeLog
index f4e3534dbf80..aed6c507acdb 100644
--- a/net-misc/asterisk-chan_sccp/ChangeLog
+++ b/net-misc/asterisk-chan_sccp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/asterisk-chan_sccp
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/ChangeLog,v 1.6 2005/08/27 21:14:30 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/ChangeLog,v 1.7 2005/09/02 20:15:56 stkn Exp $
+
+*asterisk-chan_sccp-0.0.20050902 (02 Sep 2005)
+
+ 02 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/chan_sccp-20050902-gentoo.diff,
+ +asterisk-chan_sccp-0.0.20050902.ebuild:
+ Version bump.
27 Aug 2005; <stkn@gentoo.org> -asterisk-chan_sccp-0.0.20050725.ebuild,
-asterisk-chan_sccp-0.0.20050730.ebuild:
diff --git a/net-misc/asterisk-chan_sccp/Manifest b/net-misc/asterisk-chan_sccp/Manifest
index 8c72ed52e1f0..f1ab41b498f2 100644
--- a/net-misc/asterisk-chan_sccp/Manifest
+++ b/net-misc/asterisk-chan_sccp/Manifest
@@ -1,7 +1,10 @@
MD5 b900714207a4cd02e51795c7f1dc8804 asterisk-chan_sccp-0.0.20050826.ebuild 1221
+MD5 a74c3fb974de450705cbbfa61ea59f0d asterisk-chan_sccp-0.0.20050902.ebuild 1221
MD5 314753b460a5bdf032b65d2ac5c109a3 asterisk-chan_sccp-0.0.20050807.ebuild 1221
MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
-MD5 10fd60e6d7b1a061dcae386bb2aa2933 ChangeLog 1170
+MD5 30e1910b2c1228e6181026c709d4495c ChangeLog 1368
+MD5 e7ee89da9be491c3bc8d35ec082fb77d files/chan_sccp-20050902-gentoo.diff 2219
MD5 04446492f50aeda790ef899c4f9c7968 files/digest-asterisk-chan_sccp-0.0.20050826 70
MD5 30eb666962717f702efb95d918c19b51 files/digest-asterisk-chan_sccp-0.0.20050807 70
+MD5 e6fb198665c63dffdae3e3c41a281f7a files/digest-asterisk-chan_sccp-0.0.20050902 70
MD5 16f7563f69269ec845f0278beee36014 files/chan_sccp-20050725-gentoo.diff 2677
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild
new file mode 100644
index 000000000000..a48216766c6e
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild,v 1.1 2005/09/02 20:15:56 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff
new file mode 100644
index 000000000000..9b9b26026714
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff
@@ -0,0 +1,60 @@
+--- chan_sccp-20050902/Makefile.orig 2005-09-02 22:16:58.000000000 +0000
++++ chan_sccp-20050902/Makefile 2005-09-02 22:17:33.000000000 +0000
+@@ -1,16 +1,14 @@
+ INSTALL_PREFIX=
+-ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
++ASTERISK_HEADER_DIR=/usr/include
++AST_CFG=/usr/bin/asterisk-config
+
+ # Location asterisk modules install to
+ AST_MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules/
+
+-PROC=$(shell uname -m)
+-
+ DEBUG=-ggdb
+
+-DEFINE=-Iinclude -D_REENTRANT -D_GNU_SOURCE -O -DCRYPTO -fPIC
++DEFINE=-Iinclude -D_REENTRANT -D_GNU_SOURCE -O -DCRYPTO -fPIC
+ CFLAG= -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+-CFLAG+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo " -march=$(PROC)"; fi)
+ CFLAG+=$(shell if uname -m | grep -q ppc; then echo " -fsigned-char"; fi)
+ #CFLAG+= -pedantic
+ #CFLAG+= -W
+@@ -40,14 +38,14 @@
+ FLS+=sccp_socket
+ FLS+=sccp_indicate
+
+-CFLAGS+=$(DEFINE) $(CFLAG) -I$(ASTERISK_HEADER_DIR)
++CFLAGS+=$(DEFINE) $(CFLAG)
+ HEADERS=$(shell for i in $(FLS) ; do echo $$i.h ; done)
+ OBJECTS=$(shell for i in $(FLS) ; do echo .tmp/$$i.o ; done)
+ SOURCES=$(shell for i in $(FLS) ; do echo $$i.c ; done)
+
+ chan_sccp.so: .config .tmp $(OBJECTS) $(HEADERS) $(SOURCES)
+ @echo "Linking chan_sccp.so"
+- @$(CC) -shared -Xlinker -x -o chan_sccp.so $(OBJECTS)
++ @$(CC) $(shell $(AST_CFG) --solink) -o chan_sccp.so $(OBJECTS)
+
+ .tmp/%.o: $(HEADERS)
+ @printf "Now compiling .... %-15s\t%s lines \n" $*.c "`wc -l <$*.c`"
+@@ -55,18 +53,14 @@
+
+ all: chan_sccp.so
+
+-install: chan_sccp.so
++install:
+ @echo "Now Installing chan_sccp.so"
+- @install -m 755 chan_sccp.so $(AST_MODULES_DIR);
++ @install -D -m 755 chan_sccp.so $(AST_MODULES_DIR)/chan_sccp.so;
+ @if ! [ -f $(INSTALL_PREFIX)/etc/asterisk/sccp.conf ]; then \
+ echo "Installing config file $(INSTALL_PREFIX)/etc/asterisk/sccp.conf"; \
+ mkdir -p $(INSTALL_PREFIX)/etc/asterisk; \
+ cp conf/sccp.conf $(INSTALL_PREFIX)/etc/asterisk/; \
+ fi
+- @echo "Chan_sccp is now installed"
+- @echo "Remember to disable chan_skinny by adding the following"
+- @echo "line to /etc/asterisk/modules.conf:"
+- @echo "noload => chan_skinny.so"
+
+ clean:
+ rm -rf .config.h chan_sccp.so .tmp
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902
new file mode 100644
index 000000000000..634d2011dc11
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902
@@ -0,0 +1 @@
+MD5 47ce5f2d2f3eef16e13348fc2c86165e chan_sccp-20050902.tar.bz2 57674