diff options
author | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2009-02-25 23:17:19 +0000 |
---|---|---|
committer | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2009-02-25 23:17:19 +0000 |
commit | 713f078d0abd89379c99d6e72da8f52e7fb0e34c (patch) | |
tree | a03109cacb231cdc972a7acd505ea7ebc99736ef | |
parent | Bump to 0.3.2. Closes #258276. (diff) | |
download | historical-713f078d0abd89379c99d6e72da8f52e7fb0e34c.tar.gz historical-713f078d0abd89379c99d6e72da8f52e7fb0e34c.tar.bz2 historical-713f078d0abd89379c99d6e72da8f52e7fb0e34c.zip |
remove old asterisk ebuilds.
Package-Manager: portage-2.1.6.7/cvs/Linux i686
17 files changed, 19 insertions, 4604 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index ba4298bf5a1d..f92b558b5021 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for net-misc/asterisk -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.181 2008/08/16 15:58:45 tove Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.182 2009/02/25 23:17:19 rajiv Exp $ + + 25 Feb 2009; Rajiv Aaron Manglani <rajiv@gentoo.org> + -files/1.2.0/asterisk-1.2.0_beta-ukcid.patch, + -files/1.2.0/asterisk-1.2.13-memleaks.diff, + -files/1.2.0/asterisk-1.2.14-chan_sip.patch, + -files/1.2.0/asterisk-1.2.14-chan_sip2.patch, + -files/1.2.0/asterisk-1.2.17-h323-dumb-makefile.diff, + -asterisk-1.2.13.ebuild, -asterisk-1.2.13-r1.ebuild, + -asterisk-1.2.14.ebuild, -asterisk-1.2.14-r1.ebuild, + -asterisk-1.2.14-r2.ebuild, -asterisk-1.2.17.ebuild, + -asterisk-1.2.17-r1.ebuild, -asterisk-1.2.21.1.ebuild, + -asterisk-1.2.21.1-r1.ebuild: + remove old asterisk ebuilds. 16 Aug 2008; Torsten Veller <tove@gentoo.org> metadata.xml: Remove stkn from metadata.xml (#27693) diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index 5f0afcac180a..b3aa091232ae 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -1,45 +1,13 @@ AUX 1.0.0/asterisk-1.0.5-uclibc-dns.diff 304 RMD160 6d58a0fdad04f5105c1b8f8bb3e2058b4f97f12f SHA1 5f7819a1e5f5b8f035146d5506bab83f4ecb6ae0 SHA256 e4de36e528b7d1a7941689d530d93f1ffd41a2f863a856e612e3637f78ea4890 -AUX 1.2.0/asterisk-1.2.0_beta-ukcid.patch 5787 RMD160 f42b214375f0e10cfacb6b54699b9b27d6c129cb SHA1 82575b19fc6fab63ee03342fe0aa12bee8bf57f2 SHA256 dbd919646fd851b07da9d3d4f6a0412d654318ec0dd39523362aa45516b51e1b AUX 1.2.0/asterisk-1.2.1-uclibc-getloadavg.diff 317 RMD160 f598d94a52cec83fefdafdce0694049c657e09e0 SHA1 fc0f4d990e386d39d43bac073f353421063186c9 SHA256 61daa70727418dbaf232fc5d1eaddd20a8505b943b8fb724a1b63170edfe88cc -AUX 1.2.0/asterisk-1.2.13-memleaks.diff 374 RMD160 7bf17c2b3123f75e1c1aa5ca78f7e4631071c9ff SHA1 5a2257e4225e6c9915590a29b52fe87acb45cda2 SHA256 234cd56492927c60ec29f0c0cf52e49b8ba35ed4a423df4250b68c269e72632c -AUX 1.2.0/asterisk-1.2.14-chan_sip.patch 468 RMD160 610a4e64e6c8207cf3f05d7c558a6d5d75b889ad SHA1 f563f2afab58f46e6383be4336284b7b75021937 SHA256 6251e649052bff2dd1aee186e9edecff3fcf88265975cb5a4a26c079929f6164 -AUX 1.2.0/asterisk-1.2.14-chan_sip2.patch 1405 RMD160 39c94dbf22e4cad57ed6e8df42fd1f87a5f9943e SHA1 02dea93a60668b7dbade5a5b5c93cd1477f9a050 SHA256 a23edceff270a7e68730da9f5f3564c41db335e673dd5415a490e421ccf09c5a -AUX 1.2.0/asterisk-1.2.17-h323-dumb-makefile.diff 1084 RMD160 10fefffa08c8d03c50c556e4abe6054285d96121 SHA1 7fd4f329010c6f2103d5524d87a7e75826a5fda4 SHA256 a250d1b1536fb832476f8fd83c4adf085e5b9e7d4b6d7e4f00a798c462742fed AUX 1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff 1098 RMD160 c39cee5a6f420e6e63e30ac5e83aa9b78c1b12c8 SHA1 93087ecdcde11bd983d25acaac3723450abbc111 SHA256 86d0c8cd754754916c45d77d9c745d1688b3b7b54181ecb1d42a1934bdea7deb AUX 1.2.0/asterisk-updater 3127 RMD160 41ea584081c3e565205e59771e24a8715d7e2042 SHA1 1c11d9ce286972b6f98c15a16cbb7f1c943414eb SHA256 93e6862361a320c7f7f30525b4209366190dd2bc21eedbd3654ffb4b991af5fd AUX 1.2.0/asterisk.confd 2200 RMD160 f26ac9b18e8c1db86c54839d9b4a816cfe45c61f SHA1 2baee139893fd9c413d140db843831da1917f05f SHA256 b94a59f36a46362622acd2ccc811e1e9dd0abf928104285c7098d7c17a324379 AUX 1.2.0/asterisk.rc6 5891 RMD160 d14da5d703cdd9bedf9986e0e49a93d8031876ee SHA1 3e28003ecd2d0659266644bffe463fd25efddbcc SHA256 d2bbd0e335f7f2f399780778501df3fd2026ba27dfe48db3ab282430fb215531 -DIST asterisk-1.2.11-jb.patch.bz2 15598 RMD160 cbf4a95e25bf03a41ebef2a726419299494bb298 SHA1 2302b0ff346f0efad8f1b7104be583edeb44ee5a SHA256 e85e438cb88993a188d063582f38eff0efc1b727e47d9f71809ee81d19992946 -DIST asterisk-1.2.11-patches-1.0.tar.bz2 7432 RMD160 b840a16b6ae9ffb1e76da4a7a8129916e1710204 SHA1 9c80d334097a4493e10a89b5b9e7958696019590 SHA256 46d198be655b35383725dde72ed82ecc7767b8009356f88d27c763323d1cdaa8 -DIST asterisk-1.2.13-bristuff-0.3.0-PRE-1s.diff.bz2 90716 RMD160 8a9a66f9397fa2b6892967ae98c9990ef400d829 SHA1 3e1a2435d21f51b7eefac810e78cc7def5b06a38 SHA256 e6fff5febd78944399148c373cdcf4e112e8dfc82e36fa87cea79e882e780354 -DIST asterisk-1.2.13.tar.gz 10584113 RMD160 7cf9e00a0697b16891b463345c64a615c30015a3 SHA1 d2ec77e08f512a3fa11fd8639a7fe629a46ed242 SHA256 8d197b118d9ee25bc8793b37d1daa6b54fd6074e6738f462368361e5698d98f8 -DIST asterisk-1.2.14-bristuff-0.3.0-PRE-1x.diff.bz2 95462 RMD160 4b592148b692d010dfd64df4a969838d15525489 SHA1 657772d3fce53570bf877c8b084f59f73e3af8b8 SHA256 30203a73f6f409bc96f0896d26d1cba47857e040003f6e066227519bb2ef91ef -DIST asterisk-1.2.14.tar.gz 10595184 RMD160 c07410e57086ebc34c78fd6794fa5395c3f5a174 SHA1 1e88a30bcd3d78c1cdee44b80e0162516102ea86 SHA256 115248cb7b1fc35dc2be24218f91a87272cf5c0d8c2050a36da2314fadc05cf4 -DIST asterisk-1.2.17-bristuff-0.3.0-PRE-1y-d-2.diff.bz2 97765 RMD160 77261589822482fefac9ea42ff24dd8d5f858243 SHA1 ba9355549a8fff5cbc889d4b73c70306e96885fd SHA256 f7afdd84b634c29f6988b39afb4dd52c0c55b2e3b3772551f8d7b2d63817b5d0 -DIST asterisk-1.2.17-patches-1.0.tar.bz2 11420 RMD160 2750b7392f75166c7e53fc3204c47e82138a2b45 SHA1 ce333058cecd752b86bca1c8a09f8f1af34a9a21 SHA256 731eabe9244d271a5d186c6aad64c2472c236bb99ee5850a3dec17e9275e699c -DIST asterisk-1.2.17-patches-1.1.tar.bz2 12659 RMD160 e2867d87941aef70e88b54e1f7d9cbc6f193c5bb SHA1 5ac71903ec77bfdfcd1545d78dc74b5426fa60c4 SHA256 d393dbdafb600453fe4bd4cffa88ff34b49dac0f8d1f31f2384cc17dc405b548 -DIST asterisk-1.2.17.tar.gz 10615354 RMD160 f03fe30312c7e693c4804c40941db942ab092976 SHA1 dc9a6c6923dec93e57744579c50a1abd208f7ae2 SHA256 ab20ada37e0f2874a0c59ac7d5395c5980419da6344cbb78b60874e9b8631cf1 -DIST asterisk-1.2.21.1-bristuff-0.3.0-PRE-1y-h.diff.bz2 97848 RMD160 2eac6de64317c7b3deac7d787e4c08e15f48043a SHA1 32ced83e79fb08ef3ee5fae1a08d1d712f801eef SHA256 6e386e16ec632bff57f709c55dcbf0808916f751f0d631dbfd561f536ea90049 -DIST asterisk-1.2.21.1-patches-1.0.tar.bz2 7520 RMD160 5c493ae53ee88268d195ba729dda34619474d5ef SHA1 065b4b8f84024795bf22f2be5b504ec0a7a651e5 SHA256 31ff351a224950de552062392deb187620cae6203ee953c46e3c0bf77131a5dd -DIST asterisk-1.2.21.1-patches-1.1.tar.bz2 9906 RMD160 e331f7b24ed4b0317d0e829bc6ff6ffb5ac16452 SHA1 d2cdbd53c9f2d11d7f3bce9e26706adf79ec5bd0 SHA256 2a05d798e8793f8454f86098a61edef0d4e75920050de9be6caa54dd77ec3700 -DIST asterisk-1.2.21.1.tar.gz 10638140 RMD160 adb839d290a7a89189ad342f5406c5f05634de58 SHA1 63eb9cbd35a6f500bee894472c3ee758e63fecd4 SHA256 125cf947b30c4a271e4524c05ac4532c2b3c50ac95c788b5c1709059573b0b0f DIST asterisk-1.2.27-bristuff-0.3.0-PRE-1y-l.diff.bz2 97805 RMD160 825b89d1735e1901236d2a3abe621805050a9980 SHA1 2a9ba3ef98f403e25703110ac320c93d95fa9f00 SHA256 24967634e4a72c58ff6098f1b710e95f452cd16834f99be8bfcab220bb510e91 DIST asterisk-1.2.27-patches-1.0.tar.bz2 6653 RMD160 18f1d7fc4497466050ed4f517ff5732eb448ff2e SHA1 2aecd3e91cde38dbb0fd591e8a49db221f44b94e SHA256 a4da0570fca2df3c508f072be62722879956fe8c454027fbb8dafb7a6095384c DIST asterisk-1.2.27.tar.gz 10645295 RMD160 5a6fedd420ee36c8f7d174352c3f09db9bc34a42 SHA1 e20659e4d637d740fd45e18d363189ffff431bf4 SHA256 2407996df3487060b9db1a4ca73f405b633a802ba9c1454f7f3ccaaa856971e6 -DIST bristuff-0.3.0-PRE-1s.tar.gz 265953 RMD160 8d3abdbbae4c376d52225395c72f4538e1f84a94 SHA1 1d942df9e4fd963755080e011caba88a33601c1b SHA256 30adea4f070ed44d1952163e850c177f976857b96965e18844ccd492ccef968d -DIST bristuff-0.3.0-PRE-1x.tar.gz 279200 RMD160 bc84aa50370627cfead9e0646cf87c16ddff7b00 SHA1 e02a82cebaefa0d666ad56532369310aae818d91 SHA256 13d98160d4a10b46b77c822577e6c64ad7dadbc2df1b4cd0a1007ae3bbbd4aa8 -DIST bristuff-0.3.0-PRE-1y-d.tar.gz 286165 RMD160 7424e3f6876ff1e9415c11d3c8ed70014c5a0f4f SHA1 cb984daf1616c847d02d4824e36e13d55a142ade SHA256 99688819bce753910b154ad0866d77f861e25842a1e810d0baf80a0a02cfef25 -DIST bristuff-0.3.0-PRE-1y-h.tar.gz 286224 RMD160 bf0b9fce76c68565837b56676262fdd055240653 SHA1 cefd78476b6e394672de27849ca4a02b81a7ef1d SHA256 5657e2a50cfe35a64d9aa8caea4c3306539ed81a4ac955a9792a5d58c471a03f DIST bristuff-0.3.0-PRE-1y-l.tar.gz 300381 RMD160 808862df63edf85997753e1e857cc907c54f2b60 SHA1 cc5c050e68bfa48df5a86299819deefecfeaf67e SHA256 d083b6529e34c3192e91f34b68c542106ebaa5e3046d816061709297061d3576 -EBUILD asterisk-1.2.13-r1.ebuild 12309 RMD160 fb42e5d8f9eb68d65b0d9c305f9330dea705e2b9 SHA1 9b1cab2e7f742d77d4a3c1f6858cd801c1953000 SHA256 167bcf11c405740df7c1a3d5ddb9e9921050034793a8b3dc06fabb5bdbaaa385 -EBUILD asterisk-1.2.13.ebuild 12164 RMD160 63a8f8a18da9cc621ad594e6ac0cb24da2e053a0 SHA1 7f1df8abc4489df89cac3c6a8da70ab3d46ff90c SHA256 7207fdb12b69adebc6f311e8044581baa90faae4638dc328f829b0962791d537 -EBUILD asterisk-1.2.14-r1.ebuild 11882 RMD160 54e4ee5cfb85a8be0d76a9d45fc68e5d15f98624 SHA1 d7778cdf6ae4f28cec402ffa7428e07efdae7359 SHA256 ad129f2182894837adeffa701f6464ed041a47b6f0a1f30ae3c5018c9e8b27d4 -EBUILD asterisk-1.2.14-r2.ebuild 11898 RMD160 aefa3374cf721f032ebb8dc89bdee8afa01d868f SHA1 b987b503db6e069d0cb8d966ea4823b0746e6554 SHA256 de14801004091107cc741438804d5c889dc654bdd20ef8ffa87a4d81c3d806be -EBUILD asterisk-1.2.14.ebuild 11787 RMD160 92e75479d539c7ca79ce63fa72cadc8c76016ec4 SHA1 2b0a358cccd082c3060aced99d88928d2814c775 SHA256 2d92dbdca66e0d911150654b8dd4d9bb7271ad3553f9468de71d5c9149f19910 -EBUILD asterisk-1.2.17-r1.ebuild 12186 RMD160 99fa8da1a56265d19fecd0ab2b9f53f7a73fa2d6 SHA1 c5fdf7f837f75d93a573da9bd81b0ab42bd69865 SHA256 86b2ac8b51896ef168456939429e99e0ced8963363f669660f68f8882c363141 -EBUILD asterisk-1.2.17.ebuild 12185 RMD160 6a23ab5bfedf659a7db7d5cc5fa49ca7a52a3d2b SHA1 845b77a74ebbc2f8ba0f4ba28bc43533587f791c SHA256 1bc39d34e01eaae7a6038ba942e3cadfd691da1ebc2b090e39a43c04ebe8bee8 -EBUILD asterisk-1.2.21.1-r1.ebuild 11639 RMD160 a4ba6b9acd2b27ce9c8295adc5ac458421bb3812 SHA1 e1a4ee7fb965afb3fc35820481bcc432a12c13c4 SHA256 1254cc4527b14c1c71c3d7246c713b07dac1561002813e03c5b6629477d8adea -EBUILD asterisk-1.2.21.1.ebuild 11570 RMD160 23db85612e64b20b85b2a10360ff8f52437facdc SHA1 99dc3a52222c6accf1c9c5b4b082608fff211fbb SHA256 d5d2e3a473f1b2c85b07c8b74357f594adfa403b027eb1edafa76f237d23c0c1 EBUILD asterisk-1.2.27.ebuild 11498 RMD160 845ecc7fe8c35fe302247e74deea9d970ffcd232 SHA1 eed1e2234857bbae63dbd4039a303409512cf73c SHA256 ebb5f6ca7993d9a67191587b5bfa4103075cd6bd2afcf0adb258d7ff6709034a -MISC ChangeLog 35917 RMD160 d3eb018223197a0fdb9574011cf3ce6403643273 SHA1 e5d0a71ab758e496cd34a1b3a1fcfcd7dd7a8eea SHA256 b5cddd7ffbd5c692d858f6cc2b7dd6a022f3064e0042c98c65ad95a491a3e713 -MISC metadata.xml 961 RMD160 10a3e8485185fcddd550eac880d8e816c0c85537 SHA1 2a07b882cd73ebd38615c2b6d0e0129d5bffc20f SHA256 bc70144278b6971ca007b2c2a5d73e204050fcd8ff45135a56aa6c71fcbe4a87 +MISC ChangeLog 36504 RMD160 35bd5ab8422a6e0d98825db482a1913b336a843e SHA1 0b164f3d1c4a4ba53675c93aeb620fff0b1c63ba SHA256 2718271813324d97b103c4dd68308d11025eeca4627ecdaf243b6b294c2c658e +MISC metadata.xml 792 RMD160 6a33ef53cce508d3ce4eca32d656b4a5f10211af SHA1 a35c85007f58b691b27422bc036051370bf1ef01 SHA256 a6e8a8c4d44cf59ce5551a0fb83989916fe871c596aad2b143588de0045a3c35 diff --git a/net-misc/asterisk/asterisk-1.2.13-r1.ebuild b/net-misc/asterisk/asterisk-1.2.13-r1.ebuild deleted file mode 100644 index 0f278acc0de7..000000000000 --- a/net-misc/asterisk/asterisk-1.2.13-r1.ebuild +++ /dev/null @@ -1,487 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.13-r1.ebuild,v 1.9 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl ukcid zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1s" -AST_PATCHES="1.2.11-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( http://gentooexperimental.org/~genstef/dist/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.3 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.8 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.3-r1 - >=net-misc/zaptel-1.2.8 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - - # check if zaptel has been compiled with ukcid too - if use ukcid; then - if has_version net-misc/zaptel && ! built_with_use net-misc/zaptel ukcid; then - eerror "- ukcid: Re-emerge zaptel with \"ukcid\" useflag enabled!" - checkfailed=1 - 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 - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.13-memleaks.diff - - if use mmx; then - if ! use hardened; then - einfo "Enabling mmx optimization" - sed -i -e "s:^#\(K6OPT[\t ]\+= -DK6OPT\):\1:" \ - Makefile - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - 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 - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # ukcid patch from http://www.lusyn.com/asterisk/ - # - if use ukcid; then - einfo "Patching asterisk for UK Callerid..." - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.0_beta-ukcid.patch - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - 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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -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 "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.13.ebuild b/net-misc/asterisk/asterisk-1.2.13.ebuild deleted file mode 100644 index e3eb074afae2..000000000000 --- a/net-misc/asterisk/asterisk-1.2.13.ebuild +++ /dev/null @@ -1,487 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.13.ebuild,v 1.10 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx mysql \ - nosamples odbc osp postgres pri speex sqlite ssl ukcid zaptel" - -BRI_VERSION="0.3.0-PRE-1s" -AST_PATCHES="1.2.11-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( http://gentooexperimental.org/~genstef/dist/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.3 ) - 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? ( virtual/mysql ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.8 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.3-r1 - >=net-misc/zaptel-1.2.8 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 ${ROOT}usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - - # check if zaptel has been compiled with ukcid too - if use ukcid; then - if ! built_with_use net-misc/zaptel ukcid; then - eerror "- ukcid: Re-emerge zaptel with \"ukcid\" useflag enabled!" - checkfailed=1 - 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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e "s:^#\(NOCRYPTO=yes\):\1:" \ - Makefile - 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 - epatch ${FILESDIR}/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # ukcid patch from http://www.lusyn.com/asterisk/ - # - if use ukcid; then - einfo "Patching asterisk for UK Callerid..." - epatch ${FILESDIR}/1.2.0/${PN}-1.2.0_beta-ukcid.patch - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - - epatch ${WORKDIR}/${MY_P}-bristuff-${BRI_VERSION}.diff -# epatch ${S_BRI}/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch ${WORKDIR}/ast_jb-${JB_PATCHES}.patch - epatch ${WORKDIR}/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - 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 - - # build bristuff's ISDNguard - use bri && \ - make -C ${S_BRI}/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR=${D} ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR=${D} ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f ${D}usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins ${D}etc/asterisk/*.conf* - rm -f ${D}etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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.2.0/asterisk.rc6 asterisk - newconfd ${FILESDIR}/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd ${S_BRI}/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd ${S} - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin ${FILESDIR}/1.2.0/asterisk-updater - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f ${D}/etc/asterisk/misdn.conf ${D}/usr/lib/asterisk/modules/chan_misdn.so \ - ${D}/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f ${D}/usr/include/asterisk/chan_capi{,_app}.h \ - ${D}/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -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 "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.14-r1.ebuild b/net-misc/asterisk/asterisk-1.2.14-r1.ebuild deleted file mode 100644 index 4dc22e804047..000000000000 --- a/net-misc/asterisk/asterisk-1.2.14-r1.ebuild +++ /dev/null @@ -1,478 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.14-r1.ebuild,v 1.6 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1x" -AST_PATCHES="1.2.11-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.3 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.8 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.3-r1 - >=net-misc/zaptel-1.2.8 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - 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 - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - fi - - # - # Security patch bug #169616 - # - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.14-chan_sip.patch - -} - -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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -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 "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.14-r2.ebuild b/net-misc/asterisk/asterisk-1.2.14-r2.ebuild deleted file mode 100644 index 8693f1b8d619..000000000000 --- a/net-misc/asterisk/asterisk-1.2.14-r2.ebuild +++ /dev/null @@ -1,478 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.14-r2.ebuild,v 1.7 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1x" -AST_PATCHES="1.2.11-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.3 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.8 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.3-r1 - >=net-misc/zaptel-1.2.8 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - 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 - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - fi - - # - # Security patch bug #169616 and bug #171467 - # - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.14-chan_sip2.patch - -} - -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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -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 "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.14.ebuild b/net-misc/asterisk/asterisk-1.2.14.ebuild deleted file mode 100644 index 9bd96056d50d..000000000000 --- a/net-misc/asterisk/asterisk-1.2.14.ebuild +++ /dev/null @@ -1,472 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.14.ebuild,v 1.6 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1x" -AST_PATCHES="1.2.11-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.3 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.8 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.3-r1 - >=net-misc/zaptel-1.2.8 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - 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 - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - 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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -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 "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.17-r1.ebuild b/net-misc/asterisk/asterisk-1.2.17-r1.ebuild deleted file mode 100644 index 38d07ef3d81a..000000000000 --- a/net-misc/asterisk/asterisk-1.2.17-r1.ebuild +++ /dev/null @@ -1,482 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.17-r1.ebuild,v 1.6 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1y-d" -AST_PATCHES="1.2.17-patches-1.1" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}-2.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.4 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.16 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.4-r2 - >=net-misc/zaptel-1.2.16 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - fi - - epatch "${FILESDIR}"/1.2.0/${P}-h323-dumb-makefile.diff - - # - # uclibc patch - # - if use elibc_uclibc; then - einfo "Patching asterisk for uclibc..." - epatch "${FILESDIR}"/1.0.0/${PN}-1.0.5-uclibc-dns.diff - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}-2.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - 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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -pkg_preinst() { - enewgroup asterisk - enewuser asterisk -1 -1 /var/lib/asterisk asterisk -} - -pkg_postinst() { - einfo "Fixing permissions" - chown -R asterisk:asterisk "${ROOT}"var/log/asterisk - chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk - - for x in lib run spool; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown asterisk:asterisk "${ROOT}"etc/asterisk/ - chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi - chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael - echo - - # - # Announcements, warnings, reminders... - # - einfo "Asterisk has been installed" - einfo "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.17.ebuild b/net-misc/asterisk/asterisk-1.2.17.ebuild deleted file mode 100644 index af0a5914e4fb..000000000000 --- a/net-misc/asterisk/asterisk-1.2.17.ebuild +++ /dev/null @@ -1,482 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.17.ebuild,v 1.10 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk genericjb h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1y-d" -AST_PATCHES="1.2.17-patches-1.0" -JB_PATCHES="1.2.11-jb" - -## NOTE: -# -# - t.38 dropped -# - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}-2.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - genericjb? ( http://www.netdomination.org/pub/asterisk/${PN}-${JB_PATCHES}.patch.bz2 )" -# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.4 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.16 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.4-r2 - >=net-misc/zaptel-1.2.16 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - countdown - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - fi - - epatch "${FILESDIR}"/1.2.0/${P}-h323-dumb-makefile.diff - - # - # uclibc patch - # - if use elibc_uclibc; then - einfo "Patching asterisk for uclibc..." - epatch "${FILESDIR}"/1.0.0/${PN}-1.0.5-uclibc-dns.diff - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}-2.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Generic jitterbuffer (asterisk bug #3854) - # - if use genericjb; then - einfo "Generic jitterbuffer (ast #3854, full patch available on http://www.asterisk-backports.org/)" -# epatch "${WORKDIR}"/ast_jb-${JB_PATCHES}.patch - epatch "${WORKDIR}"/${PN}-${JB_PATCHES}.patch - - #sed -i -e "s:^\(GENERIC_JB = \)#-DAST_JB:\1 -DAST_JB:" \ - # Makefile - 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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -pkg_preinst() { - enewgroup asterisk - enewuser asterisk -1 -1 /var/lib/asterisk asterisk -} - -pkg_postinst() { - einfo "Fixing permissions" - chown -R asterisk:asterisk "${ROOT}"var/log/asterisk - chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk - - for x in lib run spool; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown asterisk:asterisk "${ROOT}"etc/asterisk/ - chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi - chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael - echo - - # - # Announcements, warnings, reminders... - # - einfo "Asterisk has been installed" - einfo "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - if use genericjb; then - ewarn "********************** Experimental Feature **************************" - ewarn "Please note that generic jitterbuffer support is experimental and may not" - ewarn "be included in newer versions!" - echo - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.21.1-r1.ebuild b/net-misc/asterisk/asterisk-1.2.21.1-r1.ebuild deleted file mode 100644 index 3e25b8a018c1..000000000000 --- a/net-misc/asterisk/asterisk-1.2.21.1-r1.ebuild +++ /dev/null @@ -1,462 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.21.1-r1.ebuild,v 1.6 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1y-h" -AST_PATCHES="1.2.21.1-patches-1.1" -JB_PATCHES="1.2.11-jb" - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2 - mirror://gentoo/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )" - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.5 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.16 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.5 - >=net-misc/zaptel-1.2.18 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use bri; then - if ! built_with_use net-libs/libpri bri; then - die "net-libs/libpri must be rebuilt ith USE=bri." - fi - elif use pri; then - if built_with_use net-libs/libpri bri; then - die "net-libs/libpri must be rebuilt without USE=bri." - fi - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - fi - - epatch "${FILESDIR}"/1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff - - # - # uclibc patch - # - if use elibc_uclibc; then - einfo "Patching asterisk for uclibc..." - epatch "${FILESDIR}"/1.0.0/${PN}-1.0.5-uclibc-dns.diff - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Disable AEL, security bug #171884 - # Re-enable at your own risk (no USE since it can be critical) - # - sed -i -e 's/pbx_ael.so//' pbx/Makefile || die - -} - -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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -pkg_preinst() { - enewgroup asterisk - enewuser asterisk -1 -1 /var/lib/asterisk asterisk -} - -pkg_postinst() { - einfo "Fixing permissions" - chown -R asterisk:asterisk "${ROOT}"var/log/asterisk - chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk - - for x in lib run spool; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown asterisk:asterisk "${ROOT}"etc/asterisk/ - chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi - chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael - echo - - # - # Announcements, warnings, reminders... - # - einfo "Asterisk has been installed" - einfo "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - elog - elog "Please note that AEL is no longer built because of security bugs" - elog "See http://bugs.gentoo.org/show_bug.cgi?id=171884" - elog - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/asterisk-1.2.21.1.ebuild b/net-misc/asterisk/asterisk-1.2.21.1.ebuild deleted file mode 100644 index 0916db63e37b..000000000000 --- a/net-misc/asterisk/asterisk-1.2.21.1.ebuild +++ /dev/null @@ -1,462 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.21.1.ebuild,v 1.6 2008/05/21 19:00:02 dev-zero Exp $ - -inherit eutils multilib toolchain-funcs - -IUSE="alsa bri curl debug doc gtk h323 hardened lowmem mmx \ - nosamples odbc osp postgres pri speex sqlite ssl zaptel \ - elibc_uclibc" - -BRI_VERSION="0.3.0-PRE-1y-h" -AST_PATCHES="1.2.21.1-patches-1.0" -JB_PATCHES="1.2.11-jb" - -MY_P="${P/_p/.}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/releases/${MY_P}.tar.gz - mirror://gentoo/${PN}-${AST_PATCHES}.tar.bz2 - bri? ( mirror://gentoo/${MY_P}-bristuff-${BRI_VERSION}.diff.bz2 - http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )" - -S="${WORKDIR}/${MY_P}" -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc x86" - -RDEPEND="dev-libs/newt - media-sound/sox - ssl? ( dev-libs/openssl ) - gtk? ( =x11-libs/gtk+-1.2* ) - pri? ( >=net-libs/libpri-1.2.5 ) - 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 ) - speex? ( media-libs/speex ) - sqlite? ( <dev-db/sqlite-3.0.0 ) - zaptel? ( >=net-misc/zaptel-1.2.16 ) - postgres? ( virtual/postgresql-server ) - osp? ( >=net-libs/osptoolkit-3.3.4 ) - bri? ( >=net-libs/libpri-1.2.5 - >=net-misc/zaptel-1.2.18 )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison - doc? ( app-doc/doxygen ) - virtual/logger" - -#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 -PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" - -QA_TEXTRELS_x86="usr/lib/asterisk/modules/codec_gsm.so" -QA_EXECSTACK_x86="usr/lib/asterisk/modules/codec_gsm.so" - -# -# List of modules to ignore during scan (because they have been removed in 1.2.x) -# -SCAN_IGNORE_MODS=" - app_qcall - chan_modem - chan_modem_i4l - chan_modem_bestdata - chan_modme_aopen" - -# -# shortcuts -# -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -is_astupdate() { - if ! is_ast10update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -# -# Display a nice countdown... -# -countdown() { - local n - - ebeep - - n=${1:-10} - while [[ $n -gt 0 ]]; do - echo -en " Waiting $n second(s)...\r" - sleep 1 - (( n-- )) - done -} - -# -# Scan for asterisk-1.0.x modules that will have to be updated -# -scan_modules() { - local modules_list="" - local n - - for x in $(ls -1 "${ROOT}"usr/$(get_libdir)/asterisk/modules/*.so); do - echo -en "Scanning.... $(basename ${x}) \r" - - # skip blacklisted modules - hasq $(basename ${x//.so}) ${SCAN_IGNORE_MODS} && continue - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_destroy\)$"); then - modules_list="${modules_list} $(basename ${x//.so})" - fi - done - - if [[ -n "${modules_list}" ]]; then - echo " ========================================================" - ewarn "Please update or unmerge the following modules:" - echo - - n=0 - for x in ${modules_list}; do - ewarn " - ${x}" - (( n++ )) - done - - echo - ewarn "Warning: $n outdated module(s) found!" - ewarn "Warning: asterisk may not work if you don't update them!" - echo " ========================================================" - echo - einfo "You can use the \"asterisk-updater\" script to update the modules" - echo - countdown - echo - return 1 - else - einfo "No asterisk-1.0.x modules found!" - return 0 - fi -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if use bri; then - if ! built_with_use net-libs/libpri bri; then - die "net-libs/libpri must be rebuilt ith USE=bri." - fi - elif use pri; then - if built_with_use net-libs/libpri bri; then - die "net-libs/libpri must be rebuilt without USE=bri." - fi - fi - - # - # Regular checks - # - einfo "Running some pre-flight checks..." - echo - -} - -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 - else - ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!" - fi - fi - - if ! use debug; then - einfo "Disabling debug support" - sed -i -e "s:^\(DEBUG=\):#\1:" \ - Makefile - fi - - if ! use ssl; then - einfo "Disabling crypto support" - sed -i -e 's:^#\(NOCRYPTO=yes\):\1:' \ - -e '/^LIBS+=-lssl/d' Makefile || die - fi - - epatch "${FILESDIR}"/1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff - - # - # uclibc patch - # - if use elibc_uclibc; then - einfo "Patching asterisk for uclibc..." - epatch "${FILESDIR}"/1.0.0/${PN}-1.0.5-uclibc-dns.diff - epatch "${FILESDIR}"/1.2.0/${PN}-1.2.1-uclibc-getloadavg.diff - fi - - # - # BRI patches - # - if use bri; then - einfo "Patching asterisk w/ BRI stuff" - pwd - - epatch "${WORKDIR}"/${MY_P}-bristuff-${BRI_VERSION}.diff - #epatch "${S_BRI}"/patches/asterisk.patch - fi - - # - # Disable AEL, security bug #171884 - # Re-enable at your own risk (no USE since it can be critical) - # - sed -i -e 's/pbx_ael.so//' pbx/Makefile || die - -} - -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 \ - CC=$(tc-getCC) \ - NOTRACE=1 \ - OPTIMIZE="${CFLAGS}" \ - PWLIBDIR=/usr/share/pwlib \ - OPENH323DIR=/usr/share/openh323 \ - OPTIONS="${myopts}" || die "Make failed" - - # create api docs - use doc && \ - make progdocs - - # build bristuff's ISDNguard - use bri && \ - make -C "${S_BRI}"/ISDNguard -} - -src_install() { - - # install asterisk - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" install || die "Make install failed" - make DESTDIR="${D}" ASTLIBDIR="\$(INSTALL_PREFIX)/usr/$(get_libdir)/asterisk" samples || die "Failed to create sample files" - - # remove bristuff capi - use bri && \ - rm -f "${D}"usr/$(get_libdir)/asterisk/modules/{app,chan}_capi*.so 2>/dev/null - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - 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 - - # move sample configuration files to doc directory - if is_ast10update; then - elog "Updating from old (pre-1.2) asterisk version, new configuration files have been installed" - elog "into ${ROOT}etc/asterisk, use etc-update or dispatch-conf to update them" - elif has_version "net-misc/asterisk"; then - elog "Configuration samples have been moved to: $ROOT/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - rm -f "${D}"etc/asterisk/*.conf* 2>/dev/null - fi - - # don't delete these directories, even if they are empty - for x in voicemail meetme system dictate monitor 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 astxs - dobin contrib/scripts/astxs - - newinitd "${FILESDIR}"/1.2.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.2.0/asterisk.confd asterisk - - # install standard docs... - dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm - dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README UPGRADE.txt - 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 - - # install ISDNguard - if use bri; then - cd "${S_BRI}"/ISDNguard - dosbin ISDNguard - - docinto ISDNguard - dodoc INSTALL.ISDNguard - - cd "${S}" - fi - - insinto /usr/share/doc/${PF}/cgi - doins contrib/scripts/vmail.cgi - doins images/*.gif - - # install asterisk-updater - dosbin "${FILESDIR}"/1.2.0/asterisk-updater - - # install asterisk.h, a lot of external modules need this - insinto /usr/include/asterisk - doins include/asterisk.h - - # make sure misdn/capi stuff is not installed, provided by asterisk-chan_.. - rm -f "${D}"/etc/asterisk/misdn.conf "${D}"/usr/lib/asterisk/modules/chan_misdn.so \ - "${D}"/usr/share/doc/${PF}/{conf/misdn.conf,configs/misdn.conf.sample.gz,README.misdn.gz} - rm -f "${D}"/usr/include/asterisk/chan_capi{,_app}.h \ - "${D}"/usr/share/doc/${PF}/{conf/capi.conf,configs/capi.conf.sample.gz} -} - -pkg_preinst() { - enewgroup asterisk - enewuser asterisk -1 -1 /var/lib/asterisk asterisk -} - -pkg_postinst() { - einfo "Fixing permissions" - chown -R asterisk:asterisk "${ROOT}"var/log/asterisk - chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk - - for x in lib run spool; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown asterisk:asterisk "${ROOT}"etc/asterisk/ - chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi - chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael - echo - - # - # Announcements, warnings, reminders... - # - einfo "Asterisk has been installed" - einfo "" - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - elog - elog "http://www.automated.it/guidetoasterisk.htm" - elog - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - elog - elog "Please note that AEL is no longer built because of security bugs" - elog "See http://bugs.gentoo.org/show_bug.cgi?id=171884" - elog - echo - echo - - # - # Warning about 1.0 -> 1.2 changes... - # - if is_ast10update; then - ewarn "" - ewarn "- Please read ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.gz before continuing" - ewarn "" - fi - - if is_astupdate; then - ewarn "" - ewarn " - The initgroups patch has been dropped, please update your" - ewarn " \"conf.d/asterisk\" and \"init.d/asterisk\" file!" - ewarn "" - fi - - # scan for old modules - if is_ast10update; then - einfo "Asterisk has been updated from pre-1.2.x, scanning for old modules" - scan_modules - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr [:upper:] [:lower:])" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - 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 - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.0_beta-ukcid.patch b/net-misc/asterisk/files/1.2.0/asterisk-1.2.0_beta-ukcid.patch deleted file mode 100644 index f456c3a831e8..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.0_beta-ukcid.patch +++ /dev/null @@ -1,168 +0,0 @@ -? asterisk_ukcid.diff -Index: channels/chan_zap.c -=================================================================== -RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v -retrieving revision 1.344.2.7 -diff -u -r1.344.2.7 chan_zap.c ---- channels/chan_zap.c 27 Oct 2004 14:41:55 -0000 1.344.2.7 -+++ channels/chan_zap.c 4 Nov 2004 21:05:03 -0000 -@@ -790,6 +790,14 @@ - return 0; - } - -+static int zt_get_history(int fd, void *buf, int buf_size) -+{ -+ struct zt_history hist; -+ hist.buf=buf; -+ hist.len=buf_size; -+ return ioctl(fd, ZT_GET_HISTORY, &hist); -+} -+ - static int alloc_sub(struct zt_pvt *p, int x) - { - ZT_BUFFERINFO bi; -@@ -5114,6 +5122,120 @@ - } - } - #endif -+ /* If we're using an X100P in the UK, caller ID needs to be extracted from -+ * the history buffer */ -+ if (p->use_callerid && p->cid_start == CID_START_USEHIST) { -+ ast_log(LOG_DEBUG,"Using history buffer to extract UK caller ID\n"); -+ cs = callerid_new(cid_signalling); -+ if (cs) { -+ unsigned char cidbuf[16384]; -+ res=0; -+ -+ res = zt_get_history(p->subs[index].zfd,cidbuf,sizeof(cidbuf)); -+ if(res<0) { -+ ast_log(LOG_ERROR,"zt_get_history failed: %s\n", strerror(errno)); -+ } else { -+ res=callerid_feed(cs,cidbuf,sizeof(cidbuf),AST_LAW(p)); -+ if (res < 0) { -+ ast_log(LOG_WARNING, "CallerID feed failed: %s\n", strerror(errno)); -+ } -+ } -+ -+ if(res==1) { -+ callerid_get(cs, &name, &number, &flags); -+ if (option_debug) -+ ast_log(LOG_DEBUG, "CallerID number: %s, name: %s, flags=%d\n", number, name, flags); -+ } -+ } -+ if (p->usedistinctiveringdetection == 1) { -+#if 1 -+ bump_gains(p); -+#endif -+ len = 0; -+ distMatches = 0; -+ /* Clear the current ring data array so we dont have old data in it. */ -+ for (receivedRingT=0; receivedRingT < 3; receivedRingT++) { -+ curRingData[receivedRingT] = 0; -+ } -+ receivedRingT = 0; -+ counter = 0; -+ counter1 = 0; -+ /* Check to see if context is what it should be, if not set to be. */ -+ if (strcmp(p->context,p->defcontext) != 0) { -+ strncpy(p->context, p->defcontext, sizeof(p->context)-1); -+ strncpy(chan->context,p->defcontext,sizeof(chan->context)-1); -+ } -+ -+ for(;;) { -+ i = ZT_IOMUX_READ | ZT_IOMUX_SIGEVENT; -+ if ((res = ioctl(p->subs[index].zfd, ZT_IOMUX, &i))) { -+ ast_log(LOG_WARNING, "I/O MUX failed: %s\n", strerror(errno)); -+ callerid_free(cs); -+ ast_hangup(chan); -+ return NULL; -+ } -+ if (i & ZT_IOMUX_SIGEVENT) { -+ res = zt_get_event(p->subs[index].zfd); -+ ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); -+ res = 0; -+ /* Let us detect distinctive ring */ -+ -+ curRingData[receivedRingT] = p->ringt; -+ -+ if (p->ringt < ringt_base/2) -+ break; -+ ++receivedRingT; /* Increment the ringT counter so we can match it against -+ values in zapata.conf for distinctive ring */ -+ } else if (i & ZT_IOMUX_READ) { -+ res = read(p->subs[index].zfd, buf, sizeof(buf)); -+ if (res < 0) { -+ if (errno != ELAST) { -+ ast_log(LOG_WARNING, "read returned error: %s\n", strerror(errno)); -+ callerid_free(cs); -+ ast_hangup(chan); -+ return NULL; -+ } -+ break; -+ } -+ if (p->ringt) -+ p->ringt--; -+ if (p->ringt == 1) { -+ res = -1; -+ break; -+ } -+ } -+ } -+ if(option_verbose > 2) -+ /* this only shows up if you have n of the dring patterns filled in */ -+ ast_verbose( VERBOSE_PREFIX_3 "Detected ring pattern: %d,%d,%d\n",curRingData[0],curRingData[1],curRingData[2]); -+ -+ for (counter=0; counter < 3; counter++) { -+ /* Check to see if the rings we received match any of the ones in zapata.conf for this -+ channel */ -+ distMatches = 0; -+ for (counter1=0; counter1 < 3; counter1++) { -+ if (curRingData[counter1] <= (p->drings.ringnum[counter].ring[counter1]+10) && curRingData[counter1] >= -+ (p->drings.ringnum[counter].ring[counter1]-10)) { -+ distMatches++; -+ } -+ } -+ if (distMatches == 3) { -+ /* The ring matches, set the context to whatever is for distinctive ring.. */ -+ strncpy(p->context, p->drings.ringContext[counter].contextData, sizeof(p->context)-1); -+ strncpy(chan->context, p->drings.ringContext[counter].contextData, sizeof(chan->context)-1); -+ if(option_verbose > 2) -+ ast_verbose( VERBOSE_PREFIX_3 "Distinctive Ring matched context %s\n",p->context); -+ break; -+ } -+ } -+ } -+ /* Restore linear mode (if appropriate) for Caller*ID processing */ -+ zt_setlinear(p->subs[index].zfd, p->subs[index].linear); -+#if 1 -+ restore_gains(p); -+#endif -+ } -+ - /* If we want caller id, we're in a prering state due to a polarity reversal - * and we're set to use a polarity reversal to trigger the start of caller id, - * grab the caller id and wait for ringing to start... */ -@@ -9178,6 +9300,8 @@ - cid_start = CID_START_RING; - else if (!strcasecmp(v->value, "polarity")) - cid_start = CID_START_POLARITY; -+ else if (!strcasecmp(v->value, "usehist")) -+ cid_start = CID_START_USEHIST; - else if (ast_true(v->value)) - cid_start = CID_START_RING; - } else if (!strcasecmp(v->name, "threewaycalling")) { -Index: include/asterisk/callerid.h -=================================================================== -RCS file: /usr/cvsroot/asterisk/include/asterisk/callerid.h,v -retrieving revision 1.7 -diff -u -r1.7 callerid.h ---- include/asterisk/callerid.h 19 Sep 2004 16:17:18 -0000 1.7 -+++ include/asterisk/callerid.h 4 Nov 2004 21:05:04 -0000 -@@ -30,6 +30,7 @@ - - #define CID_START_RING 1 - #define CID_START_POLARITY 2 -+#define CID_START_USEHIST 3 - - - #define AST_LIN2X(a) ((codec == AST_FORMAT_ALAW) ? (AST_LIN2A(a)) : (AST_LIN2MU(a))) diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.13-memleaks.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.13-memleaks.diff deleted file mode 100644 index cf3a8cdae8ee..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.13-memleaks.diff +++ /dev/null @@ -1,11 +0,0 @@ -diff -Nru asterisk-1.2.13.orig/callerid.c asterisk-1.2.13/callerid.c ---- asterisk-1.2.13.orig/callerid.c 2006-06-06 19:02:43.000000000 +0300 -+++ asterisk-1.2.13/callerid.c 2006-11-02 15:05:50.000000000 +0200 -@@ -280,6 +280,7 @@ - buf += (olen - mylen); - if (res < 0) { - ast_log(LOG_NOTICE, "fsk_serie failed\n"); -+ free(obuf); - return -1; - } - if (res == 1) { diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip.patch b/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip.patch deleted file mode 100644 index 95847272940f..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- branches/1.2/channels/chan_sip.c 2007/03/02 16:59:22 57474 -+++ branches/1.2/channels/chan_sip.c 2007/03/02 17:02:46 57475 -@@ -11340,6 +11340,12 @@ - } - } - -+ if (!e && (p->method == SIP_INVITE || p->method == SIP_SUBSCRIBE || p->method == SIP_REGISTER)) { -+ transmit_response(p, "503 Server error", req); -+ ast_set_flag(p, SIP_NEEDDESTROY); -+ return -1; -+ } -+ - /* Handle various incoming SIP methods in requests */ - switch (p->method) { - case SIP_OPTIONS: diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip2.patch b/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip2.patch deleted file mode 100644 index 9df194e9bd13..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.14-chan_sip2.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -Nura asterisk-1.2.14/channels/chan_sip.c asterisk-1.2.14-r2/channels/chan_sip.c ---- asterisk-1.2.14/channels/chan_sip.c 2006-12-06 12:42:41.000000000 -0300 -+++ asterisk-1.2.14-r2/channels/chan_sip.c 2007-03-20 12:20:33.596548316 -0300 -@@ -3652,6 +3652,7 @@ - hp = ast_gethostbyname(host, &ahp); - if (!hp) { - ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c); -+ return -1; - } - } - } -@@ -3678,6 +3679,7 @@ - hp = ast_gethostbyname(host, &ahp); - if (!hp) { - ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c); -+ return -1; - } - } - } -@@ -11251,6 +11253,10 @@ - if (sscanf(e, "%d %n", &respid, &len) != 1) { - ast_log(LOG_WARNING, "Invalid response: '%s'\n", e); - } else { -+ if (respid <= 0) { -+ ast_log(LOG_WARNING, "Invalid SIP response code: '%d'\n", respid); -+ return 0; -+ } - /* More SIP ridiculousness, we have to ignore bogus contacts in 100 etc responses */ - if ((respid == 200) || ((respid >= 300) && (respid <= 399))) - extract_uri(p, req); -@@ -11312,6 +11318,12 @@ - } - } - -+ if (!e && (p->method == SIP_INVITE || p->method == SIP_SUBSCRIBE || p->method == SIP_REGISTER)) { -+ transmit_response(p, "400 Bad request", req); -+ ast_set_flag(p, SIP_NEEDDESTROY); -+ return -1; -+ } -+ - /* Handle various incoming SIP methods in requests */ - switch (p->method) { - case SIP_OPTIONS: diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.17-h323-dumb-makefile.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.17-h323-dumb-makefile.diff deleted file mode 100644 index 51fec7433aa3..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.17-h323-dumb-makefile.diff +++ /dev/null @@ -1,36 +0,0 @@ -diff -Nura asterisk-1.2.17/channels/h323/Makefile asterisk-1.2.17.h323/channels/h323/Makefile ---- asterisk-1.2.17/channels/h323/Makefile 2007-03-06 12:17:16.000000000 -0300 -+++ asterisk-1.2.17.h323/channels/h323/Makefile 2007-04-27 16:08:27.481923054 -0300 -@@ -12,15 +12,13 @@ - STDCCFLAGS += -fPIC - #OPTCCFLAGS += - CFLAGS += -pipe -+CXXFLAGS += -I/usr/include/openh323 - TARGET += libchanh323.a - TARGET += Makefile.ast - SOURCES = ast_h323.cxx -+OBJS = ast_h323.o - OBJDIR = . - --ifndef OPENH323DIR --OPENH323DIR=$(HOME)/openh323 --endif -- - clean: - rm -f *.so *.o .depend - -@@ -31,13 +29,12 @@ - touch $(SOURCES) - - libchanh323.a: $(OBJS) -- include $(OPENH323DIR)/openh323u.mak - ar crv $@ $(OBJS) - - Makefile.ast: FORCE - @echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp - @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp -- @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp -+ @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) -lopenh323 -lpt >>$@.tmp - @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi - - FORCE: diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml index be30e423bef6..7ba0d74d8d96 100644 --- a/net-misc/asterisk/metadata.xml +++ b/net-misc/asterisk/metadata.xml @@ -7,15 +7,12 @@ <name>Rajiv Aaron Manglani</name> </maintainer> <use> - <flag name="pri">Enables pri support (>=asterisk-1.0.1)</flag> - <flag name="ukcid">Enable UK callerid support</flag> - <flag name="zaptel">Enables zaptel support (>=asterisk-1.0.1)</flag> + <flag name="pri">Enables pri support</flag> + <flag name="zaptel">Enables zaptel support</flag> <flag name="bri">Enable ISDN BRI support (bristuff)</flag> - <flag name="genericjb">Enable experimental generic jitter buffer</flag> <flag name="h323">Build the H.323 channel driver bundled with Asterisk</flag> <flag name="lowmem">Build Asterisk for environments with low amounts of memory (embedded devices)</flag> <flag name="nosamples">Don't install sample sound and configuration files</flag> <flag name="osp">Enable support for the Open Settlement Protocol</flag> - </use> </pkgmetadata> |