# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header $ DESCRIPTION="Asterisk: A Modular Open Source PBX System" HOMEPAGE="http://www.asterisk.org" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="doc zaptel libpri" DEPEND="${RDEPEND} virtual/glibc libpri? ( net-misc/libpri-cvs ) zaptel? ( net-misc/zaptel-cvs ) doc? ( app-doc/doxygen )" inherit cvs ECVS_SERVER="cvs.digium.com:/usr/cvsroot" ECVS_USER="anoncvs" ECVS_PASS="anoncvs" ECVS_MODULE="asterisk" ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}" S=${WORKDIR}/${ECVS_MODULE} src_compile() { chmod a+x mkdep chmod a+x make_build_h chmod a+x editline/configure #does not like emake make || die } src_install() { make DESTDIR=${D} install || die #make INSTALL_PREFIX=${D} install || die use doc && make INSTALL_PREFIX=${D} progdocs } pkg_postinst() { einfo "Asterisk has been installed!" einfo "" einfo "If you want to know more about asterisk, visit these sites:" einfo "http://www.voip-info.org/wiki-Asterisk" einfo "http://www.automated.it/guidetoasterisk.htm" einfo "More links at the bottom of this page: http://asterisk.org/index.php?menu=support" for TICKER in 1 2 3 4 5; do # Double beep here. echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null echo -ne "\a" ; sleep 1 done sleep 5 }