summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-03-10 17:19:34 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-03-10 17:19:34 +0000
commitdefdc335939e3e10d200fc0b7c3337af18d79fad (patch)
treed25aa0ce0d437a87080ad6efbd5c88649047857e /net-misc
parentnets-libs/libpri: fixing SRC_URI (diff)
downloadvoip-defdc335939e3e10d200fc0b7c3337af18d79fad.tar.gz
voip-defdc335939e3e10d200fc0b7c3337af18d79fad.tar.bz2
voip-defdc335939e3e10d200fc0b7c3337af18d79fad.zip
net-misc/asterisk-cvs: removing : host dead, live ebuild is 4 years old
svn path=/trunk/; revision=802
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk-cvs/ChangeLog246
-rw-r--r--net-misc/asterisk-cvs/Manifest2
-rw-r--r--net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild288
3 files changed, 0 insertions, 536 deletions
diff --git a/net-misc/asterisk-cvs/ChangeLog b/net-misc/asterisk-cvs/ChangeLog
deleted file mode 100644
index 3d00335..0000000
--- a/net-misc/asterisk-cvs/ChangeLog
+++ /dev/null
@@ -1,246 +0,0 @@
-2005-10-29 21:37 stkn
-
- * [r2] trunk/dev-libs, trunk/dev-libs/pwlib,
- trunk/dev-libs/pwlib/Manifest, trunk/dev-libs/pwlib/files,
- trunk/dev-libs/pwlib/files/digest-pwlib-1.8.4,
- trunk/dev-libs/pwlib/files/digest-pwlib-1.8.7,
- trunk/dev-libs/pwlib/files/digest-pwlib-1.9.1,
- trunk/dev-libs/pwlib/files/pwlib-1.6.3-dyn-esd.patch,
- trunk/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff,
- trunk/dev-libs/pwlib/pwlib-1.8.4.ebuild,
- trunk/dev-libs/pwlib/pwlib-1.8.7.ebuild,
- trunk/dev-libs/pwlib/pwlib-1.9.1.ebuild, trunk/dev-python,
- trunk/dev-python/pyst, trunk/dev-python/pyst/Manifest,
- trunk/dev-python/pyst/files,
- trunk/dev-python/pyst/files/digest-pyst-0.0.4_rc12,
- trunk/dev-python/pyst/pyst-0.0.4_rc12.ebuild, trunk/media-libs,
- trunk/media-libs/libsupertone,
- trunk/media-libs/libsupertone/Manifest,
- trunk/media-libs/libsupertone/files,
- trunk/media-libs/libsupertone/files/digest-libsupertone-0.0.2,
- trunk/media-libs/libsupertone/libsupertone-0.0.2.ebuild,
- trunk/media-libs/spandsp, trunk/media-libs/spandsp/Manifest,
- trunk/media-libs/spandsp/files,
- trunk/media-libs/spandsp/files/digest-spandsp-0.0.2_pre20,
- trunk/media-libs/spandsp/files/spandsp-0.0.2_pre20-nommx.diff,
- trunk/media-libs/spandsp/spandsp-0.0.2_pre20.ebuild,
- trunk/media-sound, trunk/media-sound/mpg123,
- trunk/media-sound/mpg123/Manifest,
- trunk/media-sound/mpg123/files,
- trunk/media-sound/mpg123/files/digest-mpg123-0.59r,
- trunk/media-sound/mpg123/files/mpg123-0.59r-patches-1.0.tar.bz2,
- trunk/media-sound/mpg123/mpg123-0.59r.ebuild, trunk/net-im,
- trunk/net-im/gnomemeeting, trunk/net-im/gnomemeeting/Manifest,
- trunk/net-im/gnomemeeting/files,
- trunk/net-im/gnomemeeting/files/digest-gnomemeeting-1.2.2,
- trunk/net-im/gnomemeeting/files/gnomemeeting-1.2.1-configure.patch,
- trunk/net-im/gnomemeeting/files/gnomemeeting-1.2.2-dbus.diff,
- trunk/net-im/gnomemeeting/gnomemeeting-1.2.2.ebuild,
- trunk/net-im/ohphone, trunk/net-im/ohphone/Manifest,
- trunk/net-im/ohphone/files,
- trunk/net-im/ohphone/files/digest-ohphone-1.14.4,
- trunk/net-im/ohphone/files/ohphone-1.14.4-pwlibsdl.diff,
- trunk/net-im/ohphone/ohphone-1.14.4.ebuild, trunk/net-libs,
- trunk/net-libs/libmfcr2, trunk/net-libs/libmfcr2/Manifest,
- trunk/net-libs/libmfcr2/files,
- trunk/net-libs/libmfcr2/files/digest-libmfcr2-0.0.3,
- trunk/net-libs/libmfcr2/files/libmfcr2-0.0.3-gentoo.diff,
- trunk/net-libs/libmfcr2/libmfcr2-0.0.3.ebuild,
- trunk/net-libs/libpri, trunk/net-libs/libpri/ChangeLog,
- trunk/net-libs/libpri/Manifest, trunk/net-libs/libpri/files,
- trunk/net-libs/libpri/files/digest-libpri-1.2.0_beta1,
- trunk/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff,
- trunk/net-libs/libpri/libpri-1.2.0_beta1.ebuild,
- trunk/net-libs/libpri/metadata.xml, trunk/net-libs/libunicall,
- trunk/net-libs/libunicall/Manifest,
- trunk/net-libs/libunicall/files,
- trunk/net-libs/libunicall/files/digest-libunicall-0.0.3,
- trunk/net-libs/libunicall/libunicall-0.0.3.ebuild,
- trunk/net-libs/opal, trunk/net-libs/opal/Manifest,
- trunk/net-libs/opal/files,
- trunk/net-libs/opal/files/digest-opal-2.1.1,
- trunk/net-libs/opal/files/opal-2.1.1-notrace.diff,
- trunk/net-libs/opal/opal-2.1.1.ebuild, trunk/net-libs/openh323,
- trunk/net-libs/openh323/Manifest, trunk/net-libs/openh323/files,
- trunk/net-libs/openh323/files/digest-openh323-1.15.3,
- trunk/net-libs/openh323/files/digest-openh323-1.15.6,
- trunk/net-libs/openh323/files/digest-openh323-1.17.2,
- trunk/net-libs/openh323/files/openh323-1.15.2-notrace.diff,
- trunk/net-libs/openh323/openh323-1.15.3.ebuild,
- trunk/net-libs/openh323/openh323-1.15.6.ebuild,
- trunk/net-libs/openh323/openh323-1.17.2.ebuild,
- trunk/net-libs/osptoolkit, trunk/net-libs/osptoolkit/Manifest,
- trunk/net-libs/osptoolkit/files,
- trunk/net-libs/osptoolkit/files/digest-osptoolkit-3.3.1,
- trunk/net-libs/osptoolkit/osptoolkit-3.3.1.ebuild,
- trunk/net-misc, trunk/net-misc/asterisk,
- trunk/net-misc/asterisk-addons,
- trunk/net-misc/asterisk-addons/Manifest,
- trunk/net-misc/asterisk-addons/asterisk-addons-1.2.0_beta1.ebuild,
- trunk/net-misc/asterisk-addons/files,
- trunk/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-base.diff,
-
- trunk/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff,
-
- trunk/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff,
-
- trunk/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0_beta1,
-
- trunk/net-misc/asterisk-addons/files/sqlite-3.2.1-data-corruption.patch,
- trunk/net-misc/asterisk-app_backticks,
- trunk/net-misc/asterisk-app_backticks/Manifest,
- trunk/net-misc/asterisk-app_backticks/asterisk-app_backticks-20050917.ebuild,
- trunk/net-misc/asterisk-app_backticks/files,
- trunk/net-misc/asterisk-app_backticks/files/app_backticks-20050917-astcfg.diff,
-
- trunk/net-misc/asterisk-app_backticks/files/digest-asterisk-app_backticks-20050917,
- trunk/net-misc/asterisk-app_cepstral,
- trunk/net-misc/asterisk-app_cepstral/Manifest,
- trunk/net-misc/asterisk-app_cepstral/asterisk-app_cepstral-20050917.ebuild,
- trunk/net-misc/asterisk-app_cepstral/files,
- trunk/net-misc/asterisk-app_cepstral/files/app_cepstral-20050917-astcfg.diff,
-
- trunk/net-misc/asterisk-app_cepstral/files/digest-asterisk-app_cepstral-20050917,
- trunk/net-misc/asterisk-app_changrab,
- trunk/net-misc/asterisk-app_changrab/Manifest,
- trunk/net-misc/asterisk-app_changrab/asterisk-app_changrab-20050917.ebuild,
- trunk/net-misc/asterisk-app_changrab/files,
- trunk/net-misc/asterisk-app_changrab/files/app_changrab-20050917-astcfg.diff,
-
- trunk/net-misc/asterisk-app_changrab/files/digest-asterisk-app_changrab-20050917,
- trunk/net-misc/asterisk-app_intercept,
- trunk/net-misc/asterisk-app_intercept/Manifest,
- trunk/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild,
-
- trunk/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050917.ebuild,
- trunk/net-misc/asterisk-app_intercept/files,
- trunk/net-misc/asterisk-app_intercept/files/app_intercept-20050623-astcfg.diff,
-
- trunk/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050828,
-
- trunk/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050917,
- trunk/net-misc/asterisk-app_rtxfax,
- trunk/net-misc/asterisk-app_rtxfax/Manifest,
- trunk/net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre20.ebuild,
- trunk/net-misc/asterisk-app_rtxfax/files,
- trunk/net-misc/asterisk-app_rtxfax/files/app_rtxfax-0.0.2_pre20-gentoo.diff,
-
- trunk/net-misc/asterisk-app_rtxfax/files/digest-asterisk-app_rtxfax-0.0.2_pre20,
- trunk/net-misc/asterisk-app_valetparking,
- trunk/net-misc/asterisk-app_valetparking/Manifest,
- trunk/net-misc/asterisk-app_valetparking/asterisk-app_valetparking-20050917.ebuild,
- trunk/net-misc/asterisk-app_valetparking/files,
- trunk/net-misc/asterisk-app_valetparking/files/app_valetparking-20050917-astcfg.diff,
-
- trunk/net-misc/asterisk-app_valetparking/files/digest-asterisk-app_valetparking-20050917,
- trunk/net-misc/asterisk-chan_sccp,
- trunk/net-misc/asterisk-chan_sccp/ChangeLog,
- trunk/net-misc/asterisk-chan_sccp/Manifest,
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild,
-
- trunk/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051022.ebuild,
- trunk/net-misc/asterisk-chan_sccp/files,
- trunk/net-misc/asterisk-chan_sccp/files/chan_sccp-20050725-gentoo.diff,
-
- trunk/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050807,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050826,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050906,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050913,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050922,
-
- trunk/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20051022,
- trunk/net-misc/asterisk-chan_sccp/metadata.xml,
- trunk/net-misc/asterisk-chan_ss7,
- trunk/net-misc/asterisk-chan_ss7/Manifest,
- trunk/net-misc/asterisk-chan_ss7/asterisk-chan_ss7-0.1.ebuild,
- trunk/net-misc/asterisk-chan_ss7/files,
- trunk/net-misc/asterisk-chan_ss7/files/chan_ss7-0.1-gentoo.diff,
- trunk/net-misc/asterisk-chan_ss7/files/digest-asterisk-chan_ss7-0.1,
- trunk/net-misc/asterisk-chan_ss7/files/ss7.conf.sample,
- trunk/net-misc/asterisk-chan_unicall,
- trunk/net-misc/asterisk-chan_unicall/Manifest,
- trunk/net-misc/asterisk-chan_unicall/asterisk-chan_unicall-0.0.3_pre5.ebuild,
- trunk/net-misc/asterisk-chan_unicall/files,
- trunk/net-misc/asterisk-chan_unicall/files/digest-asterisk-chan_unicall-0.0.3_pre5,
-
- trunk/net-misc/asterisk-chan_unicall/files/unicall-0.0.3_pre5-gentoo.diff,
- trunk/net-misc/asterisk-chan_visdn,
- trunk/net-misc/asterisk-chan_visdn/Manifest,
- trunk/net-misc/asterisk-chan_visdn/asterisk-chan_visdn-0.14.0.ebuild,
- trunk/net-misc/asterisk-chan_visdn/files,
- trunk/net-misc/asterisk-chan_visdn/files/digest-asterisk-chan_visdn-0.14.0,
-
- trunk/net-misc/asterisk-chan_visdn/files/visdn-0.14.0-configure.diff,
- ., Manifest, asterisk-cvs-9999.ebuild, files,
- files/digest-asterisk-cvs-9999,
- trunk/net-misc/asterisk-format_base64,
- trunk/net-misc/asterisk-format_base64/Manifest,
- trunk/net-misc/asterisk-format_base64/asterisk-format_base64-20050917.ebuild,
- trunk/net-misc/asterisk-format_base64/files,
- trunk/net-misc/asterisk-format_base64/files/digest-asterisk-format_base64-20050917,
-
- trunk/net-misc/asterisk-format_base64/files/format_base64-20050917-astcfg.diff,
- trunk/net-misc/asterisk/ChangeLog,
- trunk/net-misc/asterisk/Manifest,
- trunk/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild,
- trunk/net-misc/asterisk/files,
- trunk/net-misc/asterisk/files/1.0.0,
- trunk/net-misc/asterisk/files/1.0.0/asterisk-1.0.5-uclibc-dns.diff,
- trunk/net-misc/asterisk/files/1.0.0/asterisk.confd,
- trunk/net-misc/asterisk/files/1.0.0/asterisk.rc6,
- trunk/net-misc/asterisk/files/1.2.0,
- trunk/net-misc/asterisk/files/1.2.0/asterisk.confd,
- trunk/net-misc/asterisk/files/1.2.0/asterisk.rc6,
- trunk/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1,
- trunk/net-misc/asterisk/metadata.xml, trunk/net-misc/linphone,
- trunk/net-misc/linphone/Manifest, trunk/net-misc/linphone/files,
- trunk/net-misc/linphone/files/digest-linphone-1.1.0,
- trunk/net-misc/linphone/files/linphone-1.0.1-ipv6-include.diff,
- trunk/net-misc/linphone/linphone-1.1.0.ebuild,
- trunk/net-misc/wanpipe, trunk/net-misc/wanpipe/Manifest,
- trunk/net-misc/wanpipe/files,
- trunk/net-misc/wanpipe/files/digest-wanpipe-2.3.2_p4,
- trunk/net-misc/wanpipe/files/wanpipe-2.3.2_p4-gcc34.diff,
- trunk/net-misc/wanpipe/files/wanpipe.confd,
- trunk/net-misc/wanpipe/wanpipe-2.3.2_p4.ebuild,
- trunk/net-misc/yate, trunk/net-misc/yate/Manifest,
- trunk/net-misc/yate/files,
- trunk/net-misc/yate/files/digest-yate-0.9.0_pre1,
- trunk/net-misc/yate/files/digest-yate-0.9.0_pre2,
- trunk/net-misc/yate/files/yate-0.9.0-gtk2.diff,
- trunk/net-misc/yate/files/yate.confd,
- trunk/net-misc/yate/files/yate.rc6,
- trunk/net-misc/yate/yate-0.9.0_pre1.ebuild,
- trunk/net-misc/yate/yate-0.9.0_pre2.ebuild,
- trunk/net-misc/zaptel, trunk/net-misc/zaptel/ChangeLog,
- trunk/net-misc/zaptel/Manifest, trunk/net-misc/zaptel/files,
- trunk/net-misc/zaptel/files/digest-zaptel-1.2.0_beta1,
- trunk/net-misc/zaptel/files/zaptel-1.0.4-experimental-devfs26.diff,
- trunk/net-misc/zaptel/files/zaptel-1.0.4-gcc34.patch,
- trunk/net-misc/zaptel/files/zaptel-1.2.0_beta1-gentoo.diff,
- trunk/net-misc/zaptel/files/zaptel.confd,
- trunk/net-misc/zaptel/files/zaptel.devfsd,
- trunk/net-misc/zaptel/files/zaptel.rc6,
- trunk/net-misc/zaptel/files/zaptel.udevd,
- trunk/net-misc/zaptel/metadata.xml,
- trunk/net-misc/zaptel/zaptel-1.2.0_beta1.ebuild:
- Initial import of private gentoo-voip repos
-
diff --git a/net-misc/asterisk-cvs/Manifest b/net-misc/asterisk-cvs/Manifest
deleted file mode 100644
index 5f1ce04..0000000
--- a/net-misc/asterisk-cvs/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-EBUILD asterisk-cvs-9999.ebuild 7778 RMD160 9b31b94fd1b15bfc905673bb81d522f70e790ed5 SHA1 f50a856f8c3628ac876c22321bba6683b1968d34 SHA256 1429bb01a5c9a796d2225dbcb42eacc6985881ffb0d1d49afc645116a6a3e782
-MISC ChangeLog 12653 RMD160 eb74c4daa95534973ce573665e252df8e0a49dd3 SHA1 3c4782f8a9903f4e9e820e8e1c96f4f1fc6e066b SHA256 ea034e14d79534797a1f41c24f2cfb7f65d9e5cc9b7829425a49381cb7c5210e
diff --git a/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild b/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild
deleted file mode 100644
index deaf895..0000000
--- a/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild
+++ /dev/null
@@ -1,288 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-ECVS_SERVER="cvs.digium.com:/usr/cvsroot"
-ECVS_MODULE="asterisk"
-ECVS_AUTH="pserver"
-ECVS_USER="anoncvs"
-ECVS_PASS="anoncvs"
-
-inherit eutils cvs
-
-IUSE="alsa doc gtk mmx mysql pri zaptel debug postgres odbc \
- hardened speex h323 sqlite nosamples osp lowmem curl instsrc"
-
-#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 and instsrc
-# - add some more use flags...
-# recent additions: osp, lowmem, curl
-# - cleanup
-# PWLIBDIR, OPENH323DIR still needed for asterisk's make all call?
-# remove BLA+=foo.so bar.so change in patches
-# - remove "rm -f .version" from base Makefile (for instsrc)
-# - set OPTIONS and OPTIMIZE with sed? (avoids code duplication)
-#
-
-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}/${PN/-cvs/}
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-
-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}
- dev-util/cvs
- sys-devel/flex
- sys-devel/bison
- doc? ( app-doc/doxygen )"
-
-pkg_setup() {
- #
- # Regular checks
- #
- einfo "Running some pre-flight checks..."
-}
-
-src_unpack() {
- cvs_src_unpack
- cd ${S}
-
- if ! use debug; then
- einfo "Disabling debugging"
- sed -i -e "s:^\(DEBUG=\):#\1:" \
- Makefile
- fi
-
- sed -i -e "/^.*-march=\$(PROC).*/d" \
- -e "/^.*-mcpu=\$(PROC).*/d" \
- -e "s:^\(OPTIMIZE+=\).*:\1 ${CFLAGS}:" \
- -e "s:\(ASTVARRUNDIR=\$(INSTALL_PREFIX)/var/run\).*:\1/asterisk:" \
- Makefile
-}
-
-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 \
- 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
-
- if use instsrc; then
- local myopts
-
- # cleanup, set some vars and copy ${S} to /usr/src
- einfo "Installing ${PN} sources into /usr/src..."
-
- # save .version
- mv -f .version ${T}
-
- # cleanup
- make clean
- make -C channels/h323 clean
-
- # restore .version
- mv -f ${T}/.version .
-
- use lowmem && myopts="-DLOW_MEMORY"
-
- # set variables
- sed -i -e "s:^OPTIMIZE[ \t]*+=.*:OPTIMIZE:=${CFLAGS}:" \
- -e "s:^\(OPTIONS[ \t]*=.*\):\1 ${myopts}:" \
- Makefile
-
- # copy
- dodir /usr/src
- cp -pPR ${S} ${D}/usr/src
- fi
-}
-
-pkg_preinst() {
- enewgroup asterisk
- enewuser asterisk -1 -1 /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"
-}