diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-08-27 18:10:38 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-08-27 18:10:38 +0000 |
commit | 13d25d3a11f6e154d64dc899bb690af46ea42434 (patch) | |
tree | d33dfcc9ec047eec2e56b1e7599833b4541e24c2 /net-misc | |
parent | Stable on ppc64 (diff) | |
download | historical-13d25d3a11f6e154d64dc899bb690af46ea42434.tar.gz historical-13d25d3a11f6e154d64dc899bb690af46ea42434.tar.bz2 historical-13d25d3a11f6e154d64dc899bb690af46ea42434.zip |
Added new 1.2.0 ebuild
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/asterisk/Manifest | 46 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.2.0_beta1.ebuild | 295 | ||||
-rw-r--r-- | net-misc/asterisk/files/digest-asterisk-1.2.0_beta1 | 2 |
4 files changed, 322 insertions, 28 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index f01c44415c1b..990b74669924 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/asterisk # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.76 2005/08/24 21:13:56 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.77 2005/08/27 18:10:38 stkn Exp $ + +*asterisk-1.2.0_beta1 (27 Aug 2005) + + 27 Aug 2005; <stkn@gentoo.org> +asterisk-1.2.0_beta1.ebuild: + Added new 1.2.0 beta ebuild. 24 Aug 2005; Daniel Black <dragonheart@gentoo.org> files/1.0.0/asterisk.rc6.sec: diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index 8b368deb30ab..18eb60dd0416 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -1,42 +1,34 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 5cc744bdd69d40d8fb8f1fa069d50d09 asterisk-1.0.5-r2.ebuild 11967 -MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248 MD5 7e4ecfa9b84cafc2b2092bc94f966adf asterisk-1.0.6-r1.ebuild 13732 -MD5 0f7448a7a262be597b4e8679088e8555 asterisk-1.0.9.ebuild 13357 -MD5 06363aeae863cb8d04180052b545fe10 ChangeLog 14826 +MD5 5cc744bdd69d40d8fb8f1fa069d50d09 asterisk-1.0.5-r2.ebuild 11967 MD5 c97fbbd601c32b386729e30ba9b5447e asterisk-1.0.8.ebuild 13466 -MD5 1022b3d9c455f5c247ea695d93eaed39 asterisk-1.0.9-r1.ebuild 13360 +MD5 0f7448a7a262be597b4e8679088e8555 asterisk-1.0.9.ebuild 13357 +MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248 +MD5 70ba93eb6c905717048755096ecaaac9 ChangeLog 14951 MD5 37dab9566e364fcf836778be7a8a1bd1 asterisk-1.0.7-r1.ebuild 13346 +MD5 526cc8e4305d5baef5c728cf4e451896 asterisk-1.2.0_beta1.ebuild 8056 +MD5 1022b3d9c455f5c247ea695d93eaed39 asterisk-1.0.9-r1.ebuild 13360 +MD5 50093866a1d0a9e7c0d025397225b80f files/digest-asterisk-1.2.0_beta1 156 MD5 97ed00bdccf7c70d5fcbf37580da91c4 files/digest-asterisk-1.0.5-r2 139 MD5 b3bbedde09faea609a0357b21eafa596 files/digest-asterisk-1.0.8 210 -MD5 f399592939cd5b43b7851e20744a108e files/digest-asterisk-1.0.6-r1 210 -MD5 19916e691993701d9707674f9f046bd6 files/digest-asterisk-1.0.9 210 MD5 58b3329253168e6dfb4c8ecbb98aeecd files/digest-asterisk-1.0.9-r1 210 MD5 48a3518349e2abfe20fa918a9db5eea2 files/digest-asterisk-1.0.7-r1 210 -MD5 85e291d6eb70a24fdc82469ed53bfe54 files/1.0.0/asterisk.confd 283 -MD5 920f8ae54f895cfa46a8a037c865e59a files/1.0.0/asterisk.rc6 517 -MD5 f0fe0308b464c71f83cf2483388c8058 files/1.0.0/asterisk-1.0.1-linux26.diff 474 -MD5 6a50db2ee46d4139128d0c4225ac071f files/1.0.0/asterisk-uclibc-dns.diff 433 +MD5 f399592939cd5b43b7851e20744a108e files/digest-asterisk-1.0.6-r1 210 +MD5 19916e691993701d9707674f9f046bd6 files/digest-asterisk-1.0.9 210 MD5 f20e5b869d5e221194187dd7f504d38b files/1.0.0/asterisk-1.0.5-astcfg-0.0.2.diff 5829 +MD5 0c31aac944f4fdff2b26b446d0d0eef4 files/1.0.0/asterisk-1.0.7-initgroups.diff 1826 MD5 93d2e0533a32a38e21f99f278f635266 files/1.0.0/asterisk-1.0.5-speex.diff 1214 -MD5 08d718c04e911f465f867577d649d204 files/1.0.0/asterisk-1.0.5-uclibc-dns.diff 304 MD5 a839d8b6b55e3b6ad17b9a7f4be2e6ba files/1.0.0/asterisk-1.0.5-hppa.patch 909 -MD5 ab552fbbe803766b5291d61942dbcd9f files/1.0.0/res_perl-1.0.7-bristuff-0.2.0.diff 860 -MD5 1d5c7f8847a95005af3ffb0699bba20f files/1.0.0/asterisk.confd.sec 528 MD5 df56abd9d0dcf307c17c1e1d68b05dfd files/1.0.0/asterisk.rc6.sec 1232 MD5 b2446878d3b46ea595a7994ae8de0499 files/1.0.0/asterisk-1.0.7-scripts.diff 1629 -MD5 0c31aac944f4fdff2b26b446d0d0eef4 files/1.0.0/asterisk-1.0.7-initgroups.diff 1826 +MD5 920f8ae54f895cfa46a8a037c865e59a files/1.0.0/asterisk.rc6 517 MD5 d8501003cf3148ae662a03866e734481 files/1.0.0/asterisk-1.0.7-manager-cli-segv.patch 4008 -MD5 38064faca1838d7c57bb26293741f31b files/1.0.0/asterisk-1.0.8-hppa.patch 1274 +MD5 ab552fbbe803766b5291d61942dbcd9f files/1.0.0/res_perl-1.0.7-bristuff-0.2.0.diff 860 +MD5 85e291d6eb70a24fdc82469ed53bfe54 files/1.0.0/asterisk.confd 283 MD5 5e1e00b71a830e487787ce48be04ccdc files/1.0.0/asterisk-1.0.8-initgroups.diff 1558 -MD5 18fb1b2e1fbf2f19e8a9a600eab4c5c8 files/1.0.0/asterisk-1.0.8-callerid.patch 631 +MD5 1d5c7f8847a95005af3ffb0699bba20f files/1.0.0/asterisk.confd.sec 528 +MD5 f0fe0308b464c71f83cf2483388c8058 files/1.0.0/asterisk-1.0.1-linux26.diff 474 +MD5 08d718c04e911f465f867577d649d204 files/1.0.0/asterisk-1.0.5-uclibc-dns.diff 304 MD5 8929203070b56a9d9204423cc5b3349a files/1.0.0/asterisk-1.0.9-weak-references.diff 8406 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFDDOMhmdTrptrqvGERAkqOAJ4hamY4tzzuDr1ZDVwPWhlzhgksMwCeIrKp -xB/IbswQSicifHL+cNOVeE4= -=jtp2 ------END PGP SIGNATURE----- +MD5 18fb1b2e1fbf2f19e8a9a600eab4c5c8 files/1.0.0/asterisk-1.0.8-callerid.patch 631 +MD5 6a50db2ee46d4139128d0c4225ac071f files/1.0.0/asterisk-uclibc-dns.diff 433 +MD5 38064faca1838d7c57bb26293741f31b files/1.0.0/asterisk-1.0.8-hppa.patch 1274 diff --git a/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild b/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild new file mode 100644 index 000000000000..414fa5377cde --- /dev/null +++ b/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild @@ -0,0 +1,295 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild,v 1.1 2005/08/27 18:10:38 stkn Exp $ + +inherit eutils + +IUSE="alsa doc gtk mmx mysql pri zaptel debug postgres odbc \ + hardened speex h323 sqlite nosamples osp lowmem curl" + +#BRI_VERSION="0.2.0-RC8f-CVS" +AST_PATCHES="1.2.0_beta-patches-1.0" + +## TODO: +# +# - uclibc patch still needed? (still applies) +# - bristuff (waiting...) +# - test nosamples +# - add some more use flags... +# recent additions: osp, lowmem, curl +# - cleanup +# + +MY_P="${P/_/-}" + +DESCRIPTION="Asterisk: A Modular Open Source PBX System" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="http://ftp.digium.com/pub/asterisk/${MY_P}.tar.gz + http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2" +# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )" + +S=${WORKDIR}/${MY_P} + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~sparc ~hppa ~amd64 ~ppc" + +RDEPEND="dev-libs/newt + media-sound/sox + media-sound/mpg123 + gtk? ( =x11-libs/gtk+-1.2* ) + pri? ( >=net-libs/libpri-1.1.0 ) + osp? ( >=net-libs/osptoolkit-3.3.1 ) + h323? ( >=dev-libs/pwlib-1.8.3 + >=net-libs/openh323-1.15.0 ) + alsa? ( media-libs/alsa-lib ) + curl? ( net-misc/curl ) + odbc? ( dev-db/unixODBC ) + mysql? ( dev-db/mysql ) + speex? ( media-libs/speex ) + sqlite? ( <dev-db/sqlite-3.0.0 ) + zaptel? ( >=net-misc/zaptel-1.1.0 ) + postgres? ( dev-db/postgresql )" + +# bri? ( >=net-libs/libpri-1.1.0 +# >=net-misc/zaptel-1.1.0 ) + +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + doc? ( app-doc/doxygen )" + +pkg_setup() { + # + # Regular checks + # + einfo "Running some pre-flight checks..." + + # check if zaptel and libpri have been built with bri enabled +# if use bri; then +# if ! built_with_use zaptel bri; then +# eerror "Re-emerge zaptel with bri use-flag enabled!" +# die "Zaptel without bri support detected" +# fi +# +# if ! built_with_use libpri bri; then +# eerror "Re-emerge libpri with bri use-flag enabled!" +# die "Libpri without bri support detected" +# fi +# fi +} + +src_unpack() { + unpack ${A} + cd ${S} + + # + # gentoo patchset + # + for x in $(grep -v "^#\| \+" ${WORKDIR}/patches/patches.list); do + epatch ${WORKDIR}/patches/${x} + done + + if use mmx; then + if ! use hardened; then + einfo "Enabling mmx optimization" + sed -i -e "s:^#\(K6OPT[\t ]\+= -DK6OPT\):\1:" \ + Makefile || die "QA error: No substitution performed" + else + ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" + fi + fi + + if ! use debug; then + einfo "Disabling debugging" + sed -i -e "s:^\(DEBUG=\):#\1:" \ + Makefile || die "QA error: No substitution performed" + fi + + # + # uclibc patch + # + if use elibc_uclibc; then + einfo "Patching asterisk for uclibc..." + epatch ${FILESDIR}/1.0.0/${PN}-1.0.5-uclibc-dns.diff + fi + + # + # BRI patches + # +# if use bri; then +# cd ${S} +# einfo "Patching asterisk w/ BRI stuff" +# epatch ${WORKDIR}/bristuff-${BRI_VERSION}/patches/asterisk.patch +# fi +} + +src_compile() { + local myopts + + use lowmem && \ + myopts="-DLOW_MEMORY" + + if use h323; then + einfo "Building H.323 wrapper lib..." + make -C channels/h323 \ + NOTRACE=1 \ + PWLIBDIR=/usr/share/pwlib \ + OPENH323DIR=/usr/share/openh323 \ + libchanh323.a Makefile.ast || die "Make h323 failed" + fi + + einfo "Building Asterisk..." + make \ + NOTRACE=1 \ + OPTIMIZE="${CFLAGS}" \ + PWLIBDIR=/usr/share/pwlib \ + OPENH323DIR=/usr/share/openh323 \ + OPTIONS="${myopts}" || die "Make failed" + + # create api docs + use doc && \ + make progdocs +} + +src_install() { + + # install asterisk + make DESTDIR=${D} install || die "Make install failed" + make DESTDIR=${D} samples || die "Failed to create sample files" + + # remove installed sample files if nosamples flag is set + if use nosamples; then + einfo "Skipping installation of sample files..." + einfo "See ${ROOT}usr/share/doc/${PF}/configs for configuration files" + insinto /usr/share/doc/${PF}/configs + newins ${D}etc/asterisk/asterisk.conf asterisk.conf.sample + + # skip installation of sample configuration files + # if asterisk-1.1.0 or later is present + if has_version ">net-misc/asterisk-1.1.0" + then + rm -f ${D}etc/asterisk/* + else + einfo "No previous or old (<=1.0.x) installation of ${PN} found," + einfo "installing sample configuration files!" + fi + rm -rf ${D}var/spool/asterisk/voicemail/default + rm -f ${D}var/lib/asterisk/mohmp3/* + rm -f ${D}var/lib/asterisk/sounds/demo-* + rm -f ${D}var/lib/asterisk/agi-bin/* + else + einfo "Sample files have been installed" + keepdir /var/spool/asterisk/voicemail/default/1234/INBOX + fi + + # don't delete these directories, even if they are empty + for x in voicemail meetme system dictate tmp; do + keepdir /var/spool/asterisk/${x} + done + keepdir /var/lib/asterisk/sounds/priv-callerintros + keepdir /var/lib/asterisk/mohmp3 + keepdir /var/lib/asterisk/agi-bin + keepdir /var/log/asterisk/cdr-csv + keepdir /var/log/asterisk/cdr-custom + keepdir /var/run/asterisk + + # install asterisk.h, a lot of external modules need this + insinto /usr/include/asterisk + doins include/asterisk.h + + # install astgenkey, astxs, safe_asterisk and manpages + dobin contrib/scripts/astxs + dosbin contrib/scripts/astgenkey + dosbin contrib/scripts/safe_asterisk + doman contrib/scripts/safe_asterisk.8 + doman contrib/scripts/astgenkey.8 + + newinitd ${FILESDIR}/1.0.0/asterisk.rc6.sec asterisk + newconfd ${FILESDIR}/1.0.0/asterisk.confd.sec asterisk + + # install standard docs... + dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm + dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README + dodoc doc/README.* + dodoc doc/*.txt + + docinto scripts + dodoc contrib/scripts/* + + docinto utils + dodoc contrib/utils/* + + docinto configs + dodoc configs/* + + # install api docs + if use doc; then + insinto /usr/share/doc/${PF}/api/html + doins doc/api/html/* + fi + + insinto /usr/share/doc/${PF}/cgi + doins contrib/scripts/vmail.cgi + doins images/*.gif +} + +pkg_preinst() { + enewgroup asterisk + enewuser asterisk -1 /bin/false /var/lib/asterisk asterisk +} + +pkg_postinst() { + einfo "Fixing permissions" + for x in spool run lib log; do + chown -R asterisk:asterisk ${ROOT}var/${x}/asterisk + chmod -R u=rwX,g=rX,o= ${ROOT}var/${x}/asterisk + done + + chown -R root:asterisk ${ROOT}etc/asterisk + chmod -R u=rwX,g=rX,o= ${ROOT}etc/asterisk + echo + + # + # Announcements, warnings, reminders... + # + einfo "Asterisk has been installed" + einfo "" + einfo "If you want to know more about asterisk, visit these sites:" + einfo "http://www.asteriskdocs.org/" + einfo "http://www.voip-info.org/wiki-Asterisk" + echo + einfo "http://asterisk.xvoip.com/" + einfo "http://junghanns.net/asterisk/" + einfo "http://www.automated.it/guidetoasterisk.htm" + echo + einfo "Gentoo VoIP IRC Channel:" + einfo "#gentoo-voip @ irc.freenode.net" + + # + # Warning about security changes... + # + ewarn "*********************** Important changes **************************" + ewarn + ewarn "- Asterisk runs as user asterisk, group asterisk by default" + ewarn " Use usermod -G to make the asterisk user a member of additional" + ewarn " groups if necessary." + ewarn + ewarn "- Permissions of /etc/asterisk have been changed to root:asterisk" + ewarn " 750 (rwxr-x--- directories) / 640 (rw-r----- files)" + ewarn + ewarn "- Permissions of /var/{log,lib,run,spool}/asterisk have been changed" + ewarn " to asterisk:asterisk 750 / 640" + ewarn + ewarn "- Asterisk's unix socket and pidfile are now in /var/run/astrisk" + ewarn + ewarn "- Asterisk cannot set the IP ToS bits when run as user," + ewarn " use something like this to make iptables set them for you:" + ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28\"" + ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28\"" + ewarn " (taken from voip-info.org comments (see below), thanks andrewid)" + ewarn + ewarn "For more details:" + ewarn " http://bugs.gentoo.org/show_bug.cgi?id=88732" + ewarn " http://www.voip-info.org/wiki-Asterisk+non-root" +} diff --git a/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1 b/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1 new file mode 100644 index 000000000000..aeb2e406736f --- /dev/null +++ b/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1 @@ -0,0 +1,2 @@ +MD5 5667d2b8355b6410c703f7da06ec4535 asterisk-1.2.0-beta1.tar.gz 10278662 +MD5 2ab925ff8b092f3bff533972bdac8f42 asterisk-1.2.0_beta-patches-1.0.tar.bz2 9213 |