diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-11-20 21:29:56 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-11-20 21:29:56 +0000 |
commit | 4019cbecde53dc8bc635602acd617966116667da (patch) | |
tree | 3f54d7cd549a552d49b64986b7dc5e21b171f790 /net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.ebuild | |
parent | Respect user CFLAGS & use proper CC, closes bug #113047. This one is for you,... (diff) | |
download | gentoo-2-4019cbecde53dc8bc635602acd617966116667da.tar.gz gentoo-2-4019cbecde53dc8bc635602acd617966116667da.tar.bz2 gentoo-2-4019cbecde53dc8bc635602acd617966116667da.zip |
Version bump.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.ebuild')
-rw-r--r-- | net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.ebuild new file mode 100644 index 000000000000..0d03c4962f7e --- /dev/null +++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051118.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.20051118.ebuild,v 1.1 2005/11/20 21:29: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-20051118-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" +} |