diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-08 00:46:15 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-08 00:46:15 +0000 |
commit | f5ebeacaf6e72a2fb83459de116e72cd16bf73e6 (patch) | |
tree | e8a49ba26c49c86c79b885a56e965c008451d473 /net-dialup/misdn | |
parent | sh love (diff) | |
download | historical-f5ebeacaf6e72a2fb83459de116e72cd16bf73e6.tar.gz historical-f5ebeacaf6e72a2fb83459de116e72cd16bf73e6.tar.bz2 historical-f5ebeacaf6e72a2fb83459de116e72cd16bf73e6.zip |
version bump, adding echo canceler USE-flags.
Package-Manager: portage-2.1.2_pre2-r5
Diffstat (limited to 'net-dialup/misdn')
-rw-r--r-- | net-dialup/misdn/ChangeLog | 8 | ||||
-rw-r--r-- | net-dialup/misdn/Manifest | 16 | ||||
-rw-r--r-- | net-dialup/misdn/files/digest-misdn-20061003 | 3 | ||||
-rw-r--r-- | net-dialup/misdn/misdn-20061003.ebuild | 178 |
4 files changed, 200 insertions, 5 deletions
diff --git a/net-dialup/misdn/ChangeLog b/net-dialup/misdn/ChangeLog index 8237dce6b8f5..77194e8523b7 100644 --- a/net-dialup/misdn/ChangeLog +++ b/net-dialup/misdn/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dialup/misdn # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.12 2006/09/14 22:48:27 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.13 2006/10/08 00:46:15 sbriesen Exp $ + +*misdn-20061003 (08 Oct 2006) + + 08 Oct 2006; Stefan Briesenick <sbriesen@gentoo.org> + +misdn-20061003.ebuild: + version bump, adding echo canceler USE-flags. 14 Sep 2006; Stefan Schweizer <genstef@gentoo.org> misdn-20060811.ebuild: MODE="0660" is needed for udev, thanks sbriesen diff --git a/net-dialup/misdn/Manifest b/net-dialup/misdn/Manifest index e347e174f15c..991dde0b0c68 100644 --- a/net-dialup/misdn/Manifest +++ b/net-dialup/misdn/Manifest @@ -3,14 +3,19 @@ MD5 4be2313e0dafa1a491fc57e2bf3edca8 files/README.hfcmulti 2488 RMD160 6c4e62fdfd6ce872b0ec270271ce97954c6374f4 files/README.hfcmulti 2488 SHA256 29793879cd9a752fb1f71e9f9aebc8988024b5ec8cdb53d0d551fc75ade0377f files/README.hfcmulti 2488 DIST mISDN-CVS-2006-08-11.tar.bz2 363953 RMD160 66cf74c79e3e85c1170d6e4f47cebb8307ae1f92 SHA1 47d2e2d417e84f552afb9d1643cbaa26160b46f1 SHA256 14837a9cbf212a3503c0e6997e22a033c84cfa38b960016fdcf5b9aa3873551b +DIST mISDN-CVS-2006-10-03.tar.bz2 367873 RMD160 d90df08eec78baa1619ee03b8e527c206ecb436b SHA1 3e7c925e1cb55bc1bd904595970adce105002acb SHA256 b192fabacef6167b4e2f4bdfc433febd1ec3d9d2a384e0b9c1909bf37195e0e1 EBUILD misdn-20060811.ebuild 3892 RMD160 b617130df2ce6b9c97d04c46155810d5f6dcb917 SHA1 bf1ce1f16c4dcf6a90f9dde32752863f3ef5d75c SHA256 744846ba6371f47034157ff9021a2ffe779d9d9aff6505102e90fa88a9fb451c MD5 c0d2aefdce0af0b740dfc7c7f71fe1f0 misdn-20060811.ebuild 3892 RMD160 b617130df2ce6b9c97d04c46155810d5f6dcb917 misdn-20060811.ebuild 3892 SHA256 744846ba6371f47034157ff9021a2ffe779d9d9aff6505102e90fa88a9fb451c misdn-20060811.ebuild 3892 -MISC ChangeLog 2709 RMD160 07c1f07fc67256531249f156040b98db5166860c SHA1 95af13608f505458f1aeb63f3efe7577d1f7281a SHA256 433758789dcdeffe00cd9b95023e7c74a01b93d2b196e1218acbf80a6e8f0fa7 -MD5 8cb19ded44e243b620fe832d625357b4 ChangeLog 2709 -RMD160 07c1f07fc67256531249f156040b98db5166860c ChangeLog 2709 -SHA256 433758789dcdeffe00cd9b95023e7c74a01b93d2b196e1218acbf80a6e8f0fa7 ChangeLog 2709 +EBUILD misdn-20061003.ebuild 5335 RMD160 a6846acd9ea28a328a6afc2d2d56357f65a33c18 SHA1 93960912bf6bf52042856be79b18047e1a7ea466 SHA256 440a7107ba44c906bc2e2e07c9ee6df95d1073645bee4eac7de34f41ff590b25 +MD5 2546e6d813868b9608e74b14e936fc5c misdn-20061003.ebuild 5335 +RMD160 a6846acd9ea28a328a6afc2d2d56357f65a33c18 misdn-20061003.ebuild 5335 +SHA256 440a7107ba44c906bc2e2e07c9ee6df95d1073645bee4eac7de34f41ff590b25 misdn-20061003.ebuild 5335 +MISC ChangeLog 2871 RMD160 0fbfe904fe4995f5dc47e919168a5022c2f187e4 SHA1 cfa3bacd13b577f364ba6bbf7e9ff5b0a3bae5e2 SHA256 5dcc350ab8ce6968176fddc207b6b50dd3d1583d99fb879ca971fb39370e59b4 +MD5 377dd2085434e6a337534d7eb6e347a4 ChangeLog 2871 +RMD160 0fbfe904fe4995f5dc47e919168a5022c2f187e4 ChangeLog 2871 +SHA256 5dcc350ab8ce6968176fddc207b6b50dd3d1583d99fb879ca971fb39370e59b4 ChangeLog 2871 MISC metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e SHA1 d8332605fd22c32f15438bbdf24aa622c3d2738a SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e metadata.xml 163 @@ -18,3 +23,6 @@ SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 metadata MD5 962be9aa3d1d2bc8e05113261be1b12b files/digest-misdn-20060811 265 RMD160 3a2cc397a2c3fbbf6fd21b8d7e227460d0d41e17 files/digest-misdn-20060811 265 SHA256 18137326a4ad047248ddc540e60b146a2479a3e466d50136917c00ecdb0fea55 files/digest-misdn-20060811 265 +MD5 333d234c159b97a5b3db27dd75a4846a files/digest-misdn-20061003 265 +RMD160 7c5d2f9ff50fef3479ecfc78e9a1132c4eb1b9d6 files/digest-misdn-20061003 265 +SHA256 f3b545f66918110af2874d08000aac3525e19790fd4ded6ff07ee50eaef70af5 files/digest-misdn-20061003 265 diff --git a/net-dialup/misdn/files/digest-misdn-20061003 b/net-dialup/misdn/files/digest-misdn-20061003 new file mode 100644 index 000000000000..d34cf8f471a4 --- /dev/null +++ b/net-dialup/misdn/files/digest-misdn-20061003 @@ -0,0 +1,3 @@ +MD5 b52fe6dbe35a9761e608294fae3125fb mISDN-CVS-2006-10-03.tar.bz2 367873 +RMD160 d90df08eec78baa1619ee03b8e527c206ecb436b mISDN-CVS-2006-10-03.tar.bz2 367873 +SHA256 b192fabacef6167b4e2f4bdfc433febd1ec3d9d2a384e0b9c1909bf37195e0e1 mISDN-CVS-2006-10-03.tar.bz2 367873 diff --git a/net-dialup/misdn/misdn-20061003.ebuild b/net-dialup/misdn/misdn-20061003.ebuild new file mode 100644 index 000000000000..e06ed5beff06 --- /dev/null +++ b/net-dialup/misdn/misdn-20061003.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/misdn-20061003.ebuild,v 1.1 2006/10/08 00:46:15 sbriesen Exp $ + +inherit eutils linux-mod + +MY_P="mISDN-CVS-${PV:0:4}-${PV:4:2}-${PV:6:2}" +DESCRIPTION="mISDN is the new ISDN stack of the linux kernel 2.6." +HOMEPAGE="http://www.isdn4linux.de/mISDN" +SRC_URI="ftp://ftp.isdn4linux.de/pub/isdn4linux/CVS-Snapshots/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +RDEPEND=">=net-dialup/capi4k-utils-20050718" +S="${WORKDIR}/${MY_P}/drivers/isdn/hardware/mISDN" + +# list of echo canceller use flags, +# first active in this list is selected (=order does matter) +MISDN_EC_FLAGS="ecmg2 eckb1 ecmark2" + +# list of card modules +MISDN_MODULES=("avmfritz" "hfcpci" "hfcmulti" "hfcsusb" "hfcsmini" "xhfc" "sedlfax" "w6692pci" "netjetpci") +MISDN_KCONFIG=("AVM_FRITZ" "HFCPCI" "HFCMULTI" "HFCUSB" "HFCMINI" "XHFC" "SPEEDFAX" "W6692" "NETJET") + +IUSE="ecaggressive ${MISDN_EC_FLAGS}" +for i in ${MISDN_MODULES[@]}; do IUSE="${IUSE} misdn_cards_${i}"; done + +### Begin: Helper functions + +select_echo_cancel() { + local myEC="" + for x in ${MISDN_EC_FLAGS}; do + if use ${x}; then + myEC=$(echo "${x}" | sed -e "s:^ec\(.*\):\U\1\E:") + break; + fi + done + echo ${myEC} +} + +dsp_enable() { + local i + for i in "${@}"; do + sed -i -e "s:.*\(#include.*dsp_${i}\):\1:m" dsp.h + done +} + +dsp_disable() { + local i + for i in "${@}"; do + sed -i -e "s:.*\(#include.*dsp_${i}\)://\1:m" dsp.h + done +} + +### End: Helper functions + +pkg_setup() { + local numec=0 + + CONFIG_CHECK="ISDN_CAPI ISDN_CAPI_CAPI20 ISDN_CAPI_CAPIFS_BOOL" + linux-mod_pkg_setup + MODULE_NAMES="mISDN_capi(net:) mISDN_dtmf(net:) mISDN_l1(net:) + mISDN_x25dte(net:) l3udss1(net:) mISDN_core(net:) mISDN_isac(net:) + mISDN_l2(net:) mISDN_dsp(net:)" + BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} MINCLUDES=${WORKDIR}/${MY_P}/include CONFIG_MISDN_DRV=m CONFIG_MISDN_DSP=y" + BUILD_TARGETS="modules" + #I4LmISDN(net:) does not compile :( CONFIG_I4L_CAPI_LAYER=m + # the i4l->capi simulation seems to be only for kernel 2.4 + + # check if multiple echo cancellers have been selected + for x in ${MISDN_EC_FLAGS}; do + use ${x} && : $((numec++)) + 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 + ewarn + ewarn "Multiple echo canceller flags are active but only one will be used!" + ewarn "Selected: $(select_echo_cancel)" + fi + + # Check existence of user selected cards + if [ -n "${MISDN_CARDS}" ]; then + for USERCARD in ${MISDN_CARDS} ; do + for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do + if [ "${USERCARD}" = "${MISDN_MODULES[CARD]}" ]; then + MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" + #[ "sedlfax" = "${MISDN_MODULES[CARD]}" ] && MODULE_NAMES="${MODULE_NAMES} faxl3(net:)" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=y" + continue 2 + fi + done + die "Module ${USERCARD} not present in ${P}" + done + else + einfo + einfo "You can control the modules which are built with the variable" + einfo "MISDN_CARDS which should contain a blank separated list" + einfo "of a selection from the following cards:" + einfo " ${MISDN_MODULES[*]}" + einfo + ewarn "I give you the chance of hitting Ctrl-C and make the necessary" + ewarn "adjustments in /etc/make.conf." + + # enable everything + for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do + MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" + #[ "sedlfax" = "${MISDN_MODULES[CARD]}" ] && MODULE_NAMES="${MODULE_NAMES} faxl3(net:)" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=y" + done + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + if use ecaggressive; then + sed -i -e "s:.*#define \(AGGRESSIVE_SUPPRESSOR\):#define \1:m" dsp.h + fi + + case "$(select_echo_cancel)" in + MG2) + dsp_enable mg2ec + dsp_disable kb1ec mec2 + ;; + KB1) + dsp_enable kb1ec + dsp_disable mg2ec mec2 + ;; + MARK2) + dsp_enable mec2 + dsp_disable mg2ec kb1ec + ;; + esac +} + +src_install() { + linux-mod_src_install + + insinto /usr/include/linux + doins "${WORKDIR}/${MY_P}/include/linux/"*.h + + dodir /etc/udev/rules.d + echo 'KERNEL=="obj-*", NAME="mISDN", GROUP="dialout", MODE="0660"' \ + > "${D}/etc/udev/rules.d/53-${PN}.rules" + + insinto /etc/modules.d + newins "${WORKDIR}/${MY_P}/"mISDN.modprobe.d ${PN} + + sed -i -e "s:USER=.*:USER=root:" \ + -e "s:GROUP=.*:GROUP=dialout:" "${WORKDIR}/${MY_P}/"misdn-init + dosbin "${WORKDIR}/${MY_P}/"misdn-init + + dodoc Kconfig.v2.6 + dodoc "${FILESDIR}/README.hfcmulti" "${WORKDIR}/${MY_P}/"README.misdn-init +} + +pkg_preinst() { + if [ -e ${ROOT}/etc/misdn-init.conf ]; then + cp ${ROOT}/etc/misdn-init.conf ${IMAGE}/etc + else + sed -i -e "s:/etc/misdn-init.conf:${IMAGE}\0:" ${IMAGE}/usr/sbin/misdn-init + ${IMAGE}/usr/sbin/misdn-init config + sed -i -e "s:${IMAGE}/etc/misdn-init.conf:/etc/misdn-init.conf:" ${IMAGE}/usr/sbin/misdn-init + fi +} + +pkg_postinst() { + linux-mod_pkg_postinst + + ewarn + ewarn "This driver is still under heavy development" + ewarn "Please report ebuild related bugs / wishes to http://bugs.gentoo.org" + ewarn "Please report driver bugs to the mISDN mailing-list:" + ewarn " https://www.isdn4linux.de/mailman/listinfo/isdn4linux" +} |