diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-11-14 13:06:33 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-11-14 13:06:33 +0000 |
commit | c11ec555542b99e3da71b31bc576345999dd5f3e (patch) | |
tree | 52b63551c50a12982a48630b9f789f382a93853f /net-misc | |
parent | Remove sfs. Was masked for removal. (diff) | |
download | historical-c11ec555542b99e3da71b31bc576345999dd5f3e.tar.gz historical-c11ec555542b99e3da71b31bc576345999dd5f3e.tar.bz2 historical-c11ec555542b99e3da71b31bc576345999dd5f3e.zip |
Drop 2 years masked version. Since newer versions are around.
Package-Manager: portage-2.2_rc49/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/zaptel/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/zaptel/Manifest | 5 | ||||
-rw-r--r-- | net-misc/zaptel/zaptel-1.2.18-r1.ebuild | 446 |
3 files changed, 6 insertions, 451 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog index d0f9388843b9..0b6b8b43dc57 100644 --- a/net-misc/zaptel/ChangeLog +++ b/net-misc/zaptel/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/zaptel # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.120 2009/11/11 07:50:18 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.121 2009/11/14 13:06:33 scarabeus Exp $ + + 14 Nov 2009; Tomáš Chvátal <scarabeus@gentoo.org> + -zaptel-1.2.18-r1.ebuild: + Drop 2 years masked version. Since newer versions are around. 11 Nov 2009; Robin H. Johnson <robbat2@gentoo.org> zaptel-1.2.18.ebuild, zaptel-1.2.18-r1.ebuild, zaptel-1.2.24.ebuild, zaptel-1.2.26-r1.ebuild, diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest index d3bc949ed025..20dcf2be0d0d 100644 --- a/net-misc/zaptel/Manifest +++ b/net-misc/zaptel/Manifest @@ -14,18 +14,15 @@ AUX zaptel.rc6 972 RMD160 898806437812819568f6801faf682302e20bbdde SHA1 d427875a AUX zaptel.udevd 363 RMD160 79e8c3815e0f8dbd75b21b6b99fc85cf27de7fc9 SHA1 473c41c281adf11cf2da563b4819cdecc750985d SHA256 1a50fb553fd44ee7fcc64a5a855bae09afbdbcd302c6fcd8731bb4976637fc3c 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 -DIST oslec-0.1-zaptel-1.2.18.diff.gz 2956 RMD160 a4b325c3c989e96459c8b8947139a64c6b909a51 SHA1 249aaebb8e21b3dc5c9304c38bbea8ced81561d8 SHA256 38d840cbe6bf2b846d75de5f977c4c0f8d413173d59180e9d39b96205a10e4d3 -DIST oslec-0.1.tar.gz 1287860 RMD160 f9689f05563b34f4fb44a518d449498d9edb8301 SHA1 bd778f2630974240fc295ad6eee21f8df67db7f7 SHA256 7a8ee97c8f79544b5b30fe509a502966f748c152ee26520f8279cb2d75ec7c38 DIST zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 RMD160 34834559a99e3a52ade9ff7e9804742e9bc5260f SHA1 4e890b2ae27f3c46061e6a1f6ccd7b205470f3e2 SHA256 83d3705a55fbf265b97e37bbc45facd4f040331f6c9c1b6b98c94957e92eba11 DIST zaphfc_0.3.0-PRE-1y-l_florz-12.1.diff.gz 10277 RMD160 20507dfa5fa9f882ebcd26b0634c07f34c4f0874 SHA1 3cbf5e061b7efe0103b2b80a4b42183a0da7bed8 SHA256 e564ae8c5da0c27899dff3d9c32c4579cc86f9eaf848f972dbb361050c8c86f4 DIST zaptel-1.2.18.tar.gz 3076214 RMD160 e051b06311681c281a70c4826705b2ab315377c1 SHA1 9ec57df2548b77d4e591aa9253393153455177db SHA256 c1bfd262dcb428456cf590c6740f146d409faceeba9969585d8bec4ceb376b4d DIST zaptel-1.2.24.tar.gz 3698419 RMD160 dae9da002162ad74d3324f0b0bad409af2585666 SHA1 4a45654ce392a8ba5a5d73a0a01ba8febfcc5c4b SHA256 2c00825461ac3605311f3be646fec0c95715954bbf71aca4eda105fea7895da0 DIST zaptel-1.2.26.tar.gz 3731266 RMD160 47f584ea4d738b1bc12dc32a6694cd435004c4b5 SHA1 180d2697c773105b2adfe632254116e687447151 SHA256 73481e63596b45587f07aacca6906d298ab36e4b162f1af1af87fb99dcd5dda8 DIST zaptel-1.2.27.tar.gz 3732992 RMD160 f41ab128a8ecce86a07efc1a697ae7cf1836137e SHA1 02d394a19a998dece198c108ea1b9830b7de0653 SHA256 7bf31ab4b3c4c9e833c9709ceb1d6e82c17fdbc5cbc9933b65ceb7ade4b79f8f -EBUILD zaptel-1.2.18-r1.ebuild 11214 RMD160 4bcc53b6d490df9e70606e594d9c569ffc647c10 SHA1 c1d28f5b42fcc884c9b3cadc75bd9032ab42ae4e SHA256 39a06e445c7d1f890bcd985a55efbb2bb127549a6ac0b94ef286922ca25c8ee9 EBUILD zaptel-1.2.18.ebuild 9400 RMD160 570568e5934c852c017150d654aac9f14c8f2be4 SHA1 695f5902d69a3993ced84c2dc6166a891713befe SHA256 806b697b0549f82874597dca9073e7c3aebceae47abab2b9c95e881cfe070cb2 EBUILD zaptel-1.2.24.ebuild 8949 RMD160 7ab5ad32b2fd04c4e0d66d18ceff65625881af5e SHA1 700dd41e5f772ee3ebc5f8a131c1deb192bab7da SHA256 04eb153cdea2596607885bb08084b2250223878205fdb17cf8fcb72504216e8d EBUILD zaptel-1.2.26-r1.ebuild 9045 RMD160 af4fe13da135071ce445710b29ac7d79a043c956 SHA1 f97a15e94f6cb83110bce009f65d2f491f971174 SHA256 13a77cee7a4a8d4b0ccb5fa93b92f46e51b51ef88d5db67a5fb0da6fa3983b56 EBUILD zaptel-1.2.27-r1.ebuild 9287 RMD160 5a51569a55b7d62ea6c915231e8b01a8a6bc944c SHA1 9430adc5318321e76e4a0ed3c882a156d9e44942 SHA256 149440263c6a00976f3e0b0c57d97d08d3b86fb8f35c5c3d6ced17c985ce99fb -MISC ChangeLog 23580 RMD160 b0248aa8102c527cfb7d359200a4d092a5358568 SHA1 cbfd7a0c4e4f6c4f372c4d95e3f581041fdc3f00 SHA256 8ed94e616d771be4a7c9d714ab3f65edca26d092377fb81cd0908e317ef42107 +MISC ChangeLog 23730 RMD160 d7be3b312ad35215cea49584400b8850768ec402 SHA1 53235a070380a2304b9b7cde8377409a25433c98 SHA256 a4316e6cfe640937c92c8b452d081a1a116b50d961c46668f116a982bf0d215a MISC metadata.xml 1480 RMD160 27bd3bee78996d32f3d2f58f48219cd48dbc038b SHA1 d4e6c0d8f8de3cdfc606830cbad9b477e489420a SHA256 90da234d53bce387b5b12b022bdd55edf0e8a2ccb20518c2df46e9cb06e167e6 diff --git a/net-misc/zaptel/zaptel-1.2.18-r1.ebuild b/net-misc/zaptel/zaptel-1.2.18-r1.ebuild deleted file mode 100644 index 5275969d1132..000000000000 --- a/net-misc/zaptel/zaptel-1.2.18-r1.ebuild +++ /dev/null @@ -1,446 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.2.18-r1.ebuild,v 1.5 2009/11/11 07:50:18 robbat2 Exp $ - -inherit toolchain-funcs eutils linux-mod - -BRI_VERSION="0.3.0-PRE-1y-h" -FLORZ_VERSION="0.3.0-PRE-1y-h_florz-12" - -OSLEC_VERSION="0.1" -OSLEC_PATCH="oslec-${OSLEC_VERSION}-${P}" - -IUSE="astribank bri ecmark ecmark2 ecmark3 ecaggressive eckb1 ecmg2 ecsteve ecsteve2 ecoslec florz -mmx rtc watchdog zapras zapnet" - -MY_P="${P/_/-}" - -DESCRIPTION="Drivers for Digium and ZapataTelephony cards" -HOMEPAGE="http://www.asterisk.org" -SRC_URI="http://ftp.digium.com/pub/zaptel/releases/${MY_P}.tar.gz - bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) - florz? ( http://www.netdomination.org/pub/asterisk/zaphfc_${FLORZ_VERSION}.diff.gz ) - ecoslec? ( http://www.rowetel.com/ucasterisk/downloads/oslec-${OSLEC_VERSION}.tar.gz - mirror://gentoo/${OSLEC_PATCH}.diff.gz )" - -S="${WORKDIR}/${MY_P}" - -S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" -S_OSLEC="${WORKDIR}/oslec-${OSLEC_VERSION}/kernel" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" - -RDEPEND="=virtual/libusb-0* - >=dev-libs/newt-0.50.0 - astribank? ( dev-lang/perl ) - ecoslec? ( dev-util/dialog )" - -DEPEND="${RDEPEND} virtual/linux-sources" - -# list of echo canceller use flags, -# first active in this list is selected (=order does matter) -ZAP_EC_FLAGS="ecmark ecmark2 ecmark3 ecsteve ecsteve2 eckb1 ecmg2 ecoslec" - -### Begin: Helper functions - -select_echo_cancel() { - local myEC="" - - for x in ${ZAP_EC_FLAGS}; do - if use $x; then - myEC=$(echo "$x" | sed -e "s:^ec::" | tr '[:lower:]' '[:upper:]') - break; - fi - done - - echo ${myEC} -} - -zconfig_disable() { - if grep -q "${1}" "${S}/zconfig.h"; then - # match a little more than ${1} so we can use zconfig_disable - # to disable all echo cancellers in zconfig.h w/o calling it several times - sed -i -e "s:^[ \t]*#define[ \t]\+\(${1}[a-zA-Z0-9_-]*\).*:#undef \1:" \ - "${S}/zconfig.h" - fi - - return $? -} - -zconfig_enable() { - if grep -q "${1}" "${S}/zconfig.h"; then - sed -i -e "s:^/\*[ \t]*#define[ \t]\+\(${1}\).*:#define \1:" \ - -e "s:^[ \t]*#undef[ \t]\+\(${1}\).*:#define \1:" \ - "${S}/zconfig.h" - fi - - return $? -} - -### End: Helper functions - -pkg_setup() { - local result=0 numec=0 - - linux-mod_pkg_setup - - einfo "Running pre-flight checks..." - - # basic zaptel checks - if kernel_is 2 4 ; then - if ! linux_chkconfig_present CRC32; then - echo - eerror "Your kernel lacks CRC32 support!" - eerror "Enable CONFIG_CRC32!" - result=$((result+1)) - fi - else - if ! linux_chkconfig_present CRC_CCITT; then - echo - eerror "Your kernel lacks CRC_CCIT support!" - eerror "Enable CONFIG_CRC_CCIT!" - result=$((result+1)) - fi - if ! linux_chkconfig_present FW_LOADER; then - echo - eerror "Your kernel lacks FW_LOADER support!" - eerror "Enable CONFIG_FW_LOADER!" - result=$((result+1)) - fi - fi - - # check if multiple echo cancellers have been selected - for x in ${ZAP_EC_FLAGS}; do - use $x && numec=$((numec+1)) - done - if [[ $numec -gt 1 ]]; then - # multiple flags are active, only the first in the ZAP_EC_FLAGS list - # will be used, make sure the user knows about this - echo - ewarn "Multiple echo canceller flags are active but only one will be used!" - ewarn "Selected: $(select_echo_cancel)" - fi - - # we need at least HDLC generic support - if use zapnet && ! linux_chkconfig_present HDLC; then - echo - eerror "zapnet: Your kernel lacks HDLC support!" - eerror "zapnet: Enable CONFIG_HDLC* to use zaptel network support!" - result=$((result+1)) - fi - - # zapras needs PPP support - if use zapras && ! linux_chkconfig_present PPP; then - echo - eerror "zapras: Your kernel lacks PPP support!" - eerror "zapras: Enable CONFIG_PPP* to use zaptel ras support!" - result=$((result+1)) - fi - - # rtc needs linux-2.6 and CONFIG_RTC - if use rtc; then - if ! kernel_is 2 6; then - echo - eerror "rtc: >=Linux-2.6.0 is needed for rtc support!" - result=$((result+1)) - fi - - if ! linux_chkconfig_present RTC; then - eerror "rtc: Your kernel lacks RealTime-Clock support!" - result=$((result+1)) - fi - fi - - if [[ $result -gt 0 ]]; then - echo - ewarn "One or more of the neccessary precondition(s) is/are not met!" - ewarn "Look at the messages above, resolve the problem (or disable the use-flag) and try again" - echo - - if [[ $result -lt 3 ]]; then - eerror "[$result Error(s)] Zaptel is not happy :(" - else - eerror "[$result Error(s)] You're making zaptel cry :'(" - fi - die "[$result] Precondition(s) not met" - fi - - echo - einfo "Zaptel is happy and continues... :)" -} - -src_unpack() { - unpack ${A} - - cd "${S}" - epatch "${FILESDIR}/${P}-2.6.22.diff" - epatch "${FILESDIR}/${P}-gentoo.diff" - epatch "${FILESDIR}/zaptel-1.2.9.1-ar.patch" - - # try to apply bristuff patch - if use bri; then - # fix for userpriv - chmod -R a=rwX "${S_BRI}" - - einfo "Patching zaptel w/ BRI stuff (${BRI_VERSION})" - epatch "${S_BRI}"/patches/zaptel.patch - - cd "${S_BRI}" - - if use florz; then - einfo "Using florz patches (${FLORZ_VERSION}) for zaphfc" - - # remove as soon as there's a new florz patch available - sed -i -e "s:zaptel-1\.2\.5:zaptel-1.2.6:g" \ - "${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff" - - epatch "${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff" - fi - - # patch includes - sed -i -e "s:^#include.*zaptel\.h.*:#include <zaptel.h>:" \ - qozap/qozap.c \ - zaphfc/zaphfc.c \ - cwain/cwain.c - - # patch makefiles - sed -i -e "s:^ZAP[\t ]*=.*:ZAP=-I${S}:" \ - -e "s:^MODCONF=.*:MODCONF=/etc/modules.d/zaptel:" \ - -e "s:linux-2.6:linux:g" \ - qozap/Makefile \ - zaphfc/Makefile \ - cwain/Makefile - - sed -i -e "s:^\(CFLAGS+=-I. \).*:\1 \$(ZAP):" \ - zaphfc/Makefile - - cd "${S}" - fi - - # oslec echo canceller - if use ecoslec; then - # - # meh... bristuff and oslec patch are touching the same place, - # apply bristuff first then fixup the oslec patch - # ugly, but saves us from creating yet another set of patches - # - if use bri; then - sed -i \ - -e "s:^-\(#define ECHO_CAN_KB1\).*:-/* \1 */:" \ - -e "s:^.*\(#define ECHO_CAN_MG2\).*: \1:" \ - "${WORKDIR}/${OSLEC_PATCH}.diff" || die "Failed to fix oslec patch for bri" - fi - - EPATCH_SINGLE_MSG="Applying ${OSLEC_PATCH} zaptel patch" \ - epatch "${WORKDIR}/${OSLEC_PATCH}.diff" - - if use mmx; then - einfo "Enabling oslec mmx support" - - sed -i -e "/^CFLAGS/s/\(.*\)/\1 -DUSE_MMX/" \ - -e "s/\(EXTRA_CFLAGS='\)/\1-DUSE_MMX /" \ - "${S_OSLEC}/Makefile" || die "Failed to enable mmx for oslec" - fi - fi - -### Configuration changes - local myEC - - # prepare zconfig.h - myEC=$(select_echo_cancel) - if [[ -n "${myEC}" ]]; then - einfo "Selected echo canceller: ${myEC}" - # disable default first, set new selected ec afterwards - zconfig_disable ECHO_CAN - zconfig_enable ECHO_CAN_${myEC} - fi - - # enable rtc support on 2.6 - if use rtc && linux_chkconfig_present RTC && kernel_is 2 6; then - einfo "Enabling ztdummy RTC support" - zconfig_enable USE_RTC - fi - - # enable agressive echo surpression - use ecaggressive && \ - zconfig_enable AGGRESSIVE_SUPPRESSOR - - # ppp ras support - use zapras && \ - zconfig_enable CONFIG_ZAPATA_PPP - - # frame relay, syncppp... - use zapnet && \ - zconfig_enable CONFIG_ZAPATA_NET - - # zaptel watchdog - use watchdog && \ - zconfig_enable CONFIG_ZAPTEL_WATCHDOG - - # mmx support - use mmx && \ - zconfig_enable CONFIG_ZAPTEL_MMX -} - -src_compile() { - # build - make KVERS="${KV_FULL}" \ - KSRC="${KV_DIR}" ARCH="$(tc-arch-kernel)" || die - - if use astribank; then - cd "${S}"/xpp/utils - make || die "make xpp utils failed" - fi - - if use bri; then - cd "${S_BRI}" - for x in cwain qozap zaphfc; do - einfo "Building ${x}..." - make KVERS="${KV_FULL}" \ - KSRC=/usr/src/linux \ - ARCH="$(tc-arch-kernel)" \ - -C "${x}" || die "make ${x} failed" - done - fi - - if use ecoslec; then - cd "${S_OSLEC}" - make KVERS="${KV_FULL}" \ - KDIR=/usr/src/linux \ - ARCH="$(tc-arch-kernel)" || die "emake oslec failed" - fi -} - -src_install() { - # Create firmware directory - mkdir -p "${D}/lib/firmware/" - - kernel_is 2 4 && cp /etc/modules.conf "${D}/etc" - make INSTALL_PREFIX="${D}" ARCH="$(tc-arch-kernel)" \ - KVERS="${KV_FULL}" KSRC=/usr/src/linux install || die - - dodoc ChangeLog README README.udev README.Linux26 README.fxsusb zaptel.init - dodoc zaptel.conf.sample zaptel.sysconfig README.fxotune - - # additional tools - dobin ztmonitor ztspeed zttest fxotune - - # install all header files, several packages need the complete set - # (e.g. sangoma wanpipe) - insinto /usr/include/zaptel - doins *.h - - if use bri; then - einfo "Installing bri" - cd "${S_BRI}" - - insinto "/lib/modules/${KV_FULL}/misc" - doins "qozap/qozap.${KV_OBJ}" - doins "zaphfc/zaphfc.${KV_OBJ}" - doins "cwain/cwain.${KV_OBJ}" - - # install example configs for octoBRI and quadBRI - insinto /etc - doins qozap/zaptel.conf.octoBRI - newins qozap/zaptel.conf zaptel.conf.quadBRI - newins zaphfc/zaptel.conf zaptel.conf.zaphfc - - insinto /etc/asterisk - doins qozap/zapata.conf.octoBRI - newins qozap/zapata.conf zapata.conf.quadBRI - newins zaphfc/zapata.conf zapata.conf.zaphfc - - docinto bristuff - dodoc CHANGES INSTALL - - docinto bristuff/qozap - dodoc qozap/LICENSE qozap/TODO qozap/*.conf* - - docinto bristuff/zaphfc - dodoc zaphfc/LICENSE zaphfc/*.conf - - docinto bristuff/cwain - dodoc cwain/TODO cwain/LICENSE - - cd "${S}" - fi - - if use ecoslec; then - cd "${S_OSLEC}" - insinto "/lib/modules/${KV_FULL}/misc" - doins "oslec.${KV_OBJ}" - - newsbin oslec-ctrl-panel.sh oslec-ctrl-panel - - docinto oslec - dodoc ../{README.txt,COPYING} - - cd "${S}" - fi - - # install init script - newinitd "${FILESDIR}/zaptel.rc6" zaptel - newconfd "${FILESDIR}/zaptel.confd" zaptel - - # install devfsd rule file - insinto /etc/devfs.d - newins "${FILESDIR}/zaptel.devfsd" zaptel - - # install udev rule file - insinto /etc/udev/rules.d - newins "${FILESDIR}/zaptel.udevd" 10-zaptel.rules - - # fix permissions if there's no udev / devfs around - if [[ -d "${D}/dev/zap" ]]; then - chown -R root:dialout "${D}/dev/zap" - chmod -R u=rwX,g=rwX,o= "${D}/dev/zap" - fi - - if use astribank; then - cd "${S}"/xpp/utils - eval `perl '-V:installarchlib'` - make DESTDIR="${D}" PERLLIBDIR="${installarchlib}" install \ - || die "failed xpp utils install" - dosbin zt_registration xpp_sync lszaptel - fi -} - -pkg_postinst() { - linux-mod_pkg_postinst - - echo - einfo "Use the /etc/init.d/zaptel script to load zaptel.conf settings on startup!" - echo - - if use bri; then - einfo "Bristuff configs have been merged as:" - einfo "" - einfo "${ROOT}etc/" - einfo " zaptel.conf.zaphfc" - einfo " zaptel.conf.quadBRI" - einfo " zaptel.conf.octoBRI" - einfo "" - einfo "${ROOT}etc/asterisk/" - einfo " zapata.conf.zaphfc" - einfo " zapata.conf.quadBRI" - einfo " zapata.conf.octoBRI" - echo - fi - - if use ecoslec; then - einfo "The OSLEC control panel has been installed as:" - einfo " \"/usr/sbin/oslec-ctrl-panel\"" - echo - einfo "More information about the OSLEC echo canceller:" - einfo " \"http://www.rowetel.com/ucasterisk/oslec.html\"" - echo - fi - - # fix permissions if there's no udev / devfs around - if [[ -d "${ROOT}dev/zap" ]]; then - chown -R root:dialout "${ROOT}dev/zap" - chmod -R u=rwX,g=rwX,o= "${ROOT}dev/zap" - fi -} |