summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2007-05-16 17:11:50 +0000
committerStefan Schweizer <genstef@gentoo.org>2007-05-16 17:11:50 +0000
commitc4c53820aa85c5906fbfd467e3fdd2492b5fc1a2 (patch)
tree1c33cca93898b33fde29adfbb90e3758ef8d7858 /net-dialup
parentFixed issue *.so being installed into /opt/firebird/lib instead of /opt/fireb... (diff)
downloadhistorical-c4c53820aa85c5906fbfd467e3fdd2492b5fc1a2.tar.gz
historical-c4c53820aa85c5906fbfd467e3fdd2492b5fc1a2.tar.bz2
historical-c4c53820aa85c5906fbfd467e3fdd2492b5fc1a2.zip
Readd 1.1.2 for Jörg in bug 178765
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/misdn/ChangeLog5
-rw-r--r--net-dialup/misdn/Manifest16
-rw-r--r--net-dialup/misdn/files/digest-misdn-1.1.23
-rw-r--r--net-dialup/misdn/misdn-1.1.2.ebuild181
4 files changed, 200 insertions, 5 deletions
diff --git a/net-dialup/misdn/ChangeLog b/net-dialup/misdn/ChangeLog
index 18a67e410d53..52252a67a19a 100644
--- a/net-dialup/misdn/ChangeLog
+++ b/net-dialup/misdn/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-dialup/misdn
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.22 2007/05/09 20:43:22 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.23 2007/05/16 17:11:50 genstef Exp $
+
+ 16 May 2007; Stefan Schweizer <genstef@gentoo.org> +misdn-1.1.2.ebuild:
+ Readd 1.1.2 for Jörg in bug 178765
*misdn-1.1.3 (09 May 2007)
diff --git a/net-dialup/misdn/Manifest b/net-dialup/misdn/Manifest
index 0f05cfa2be4d..d4549d0b720d 100644
--- a/net-dialup/misdn/Manifest
+++ b/net-dialup/misdn/Manifest
@@ -2,19 +2,27 @@ AUX README.hfcmulti 2488 RMD160 6c4e62fdfd6ce872b0ec270271ce97954c6374f4 SHA1 94
MD5 4be2313e0dafa1a491fc57e2bf3edca8 files/README.hfcmulti 2488
RMD160 6c4e62fdfd6ce872b0ec270271ce97954c6374f4 files/README.hfcmulti 2488
SHA256 29793879cd9a752fb1f71e9f9aebc8988024b5ec8cdb53d0d551fc75ade0377f files/README.hfcmulti 2488
+DIST mISDN-1_1_2.tar.gz 502737 RMD160 5abcf20310bf12d2c79a4e2d3f04ae87658fab85 SHA1 a974879d6a82632d2688e841bbc25c9081a3931b SHA256 32052781349a420fa8b638e42beb2911dd5fa1bb6acb29b5a1b0bc6df6a9f29e
DIST mISDN-1_1_3.tar.gz 12414364 RMD160 2b0b1275ca44de4b103b645175d47ba518545a7e SHA1 5f5b7f31853d55167e839afd245f01d1fe8d01f2 SHA256 cf7c6bdb28709f4831080f52369f54dc9780844d0ff995f7eb60da201bc7cc3b
+EBUILD misdn-1.1.2.ebuild 5285 RMD160 903a56d1330f1d28d3ced61711a8b428e407d0d9 SHA1 7d82d3fb063187f1ef22eddc5828bfb3b81dbb7d SHA256 0f18bdfc231b9cca531656d9179defde0d8b14f995b5a543592c368ed766dce6
+MD5 a0ca9c7726f4ccf5d72fdcc6c7595772 misdn-1.1.2.ebuild 5285
+RMD160 903a56d1330f1d28d3ced61711a8b428e407d0d9 misdn-1.1.2.ebuild 5285
+SHA256 0f18bdfc231b9cca531656d9179defde0d8b14f995b5a543592c368ed766dce6 misdn-1.1.2.ebuild 5285
EBUILD misdn-1.1.3.ebuild 5279 RMD160 beac6eed8acadd8171d1450724186fdf2c737cd2 SHA1 d04d7adc42420b6ce4cc954383895a046d00e391 SHA256 5ea3a90f3243265a2ea42f641202c1e63db6f2d07f021f485c8d6d2dfcdaf550
MD5 00c10f56a9309db38b1500cd7f203197 misdn-1.1.3.ebuild 5279
RMD160 beac6eed8acadd8171d1450724186fdf2c737cd2 misdn-1.1.3.ebuild 5279
SHA256 5ea3a90f3243265a2ea42f641202c1e63db6f2d07f021f485c8d6d2dfcdaf550 misdn-1.1.3.ebuild 5279
-MISC ChangeLog 4161 RMD160 67e5e97be967121311ceafea8b3c275b0f351d50 SHA1 e48bfa1d0b871907a8d3821388f042085da4b84e SHA256 e4fe365b27f445ed971305954056e6cac2237b86976fd8a630caa7243a6edf51
-MD5 4a12964fa027f2bc61316ce6db802caa ChangeLog 4161
-RMD160 67e5e97be967121311ceafea8b3c275b0f351d50 ChangeLog 4161
-SHA256 e4fe365b27f445ed971305954056e6cac2237b86976fd8a630caa7243a6edf51 ChangeLog 4161
+MISC ChangeLog 4274 RMD160 67683c0cf6d240870f828d3e55e624fc9c48f521 SHA1 cbd78d21371845750c93b841c14c145f28bb2e26 SHA256 67c5fa376f070e197f861c537b205eb285b6920ff36a1bbbf66fabf0bfb31651
+MD5 9ab4140a5d1d3fd8a4de7a039e384b7d ChangeLog 4274
+RMD160 67683c0cf6d240870f828d3e55e624fc9c48f521 ChangeLog 4274
+SHA256 67c5fa376f070e197f861c537b205eb285b6920ff36a1bbbf66fabf0bfb31651 ChangeLog 4274
MISC metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e SHA1 d8332605fd22c32f15438bbdf24aa622c3d2738a SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e metadata.xml 163
SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 metadata.xml 163
+MD5 cd79dde68d5f7ead5ac26f67af55ab3d files/digest-misdn-1.1.2 235
+RMD160 130f1d9629d25a25dad6108425bef851d212274d files/digest-misdn-1.1.2 235
+SHA256 cce1752f2bdbd0b616330a4ef842acd9f84af13d263734b828c234f365a075ee files/digest-misdn-1.1.2 235
MD5 f27831d3fdca1c03f7088ab8dc2a3984 files/digest-misdn-1.1.3 241
RMD160 04af8a0614c06549ac966f33677522dc482677b4 files/digest-misdn-1.1.3 241
SHA256 0c623770a0f70a796064d45f65b17a0849999a571be61d116d2357004d4d09e7 files/digest-misdn-1.1.3 241
diff --git a/net-dialup/misdn/files/digest-misdn-1.1.2 b/net-dialup/misdn/files/digest-misdn-1.1.2
new file mode 100644
index 000000000000..1aca5964c8c1
--- /dev/null
+++ b/net-dialup/misdn/files/digest-misdn-1.1.2
@@ -0,0 +1,3 @@
+MD5 4681d9b27cf4aaca04ba71f8825af03a mISDN-1_1_2.tar.gz 502737
+RMD160 5abcf20310bf12d2c79a4e2d3f04ae87658fab85 mISDN-1_1_2.tar.gz 502737
+SHA256 32052781349a420fa8b638e42beb2911dd5fa1bb6acb29b5a1b0bc6df6a9f29e mISDN-1_1_2.tar.gz 502737
diff --git a/net-dialup/misdn/misdn-1.1.2.ebuild b/net-dialup/misdn/misdn-1.1.2.ebuild
new file mode 100644
index 000000000000..f5ec63d1823f
--- /dev/null
+++ b/net-dialup/misdn/misdn-1.1.2.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/misdn-1.1.2.ebuild,v 1.4 2007/05/16 17:11:50 genstef Exp $
+
+inherit eutils linux-mod
+
+MY_P=mISDN-${PV//./_}
+DESCRIPTION="mISDN is the new ISDN stack of the linux kernel 2.6."
+HOMEPAGE="http://www.misdn.org/"
+SRC_URI="http://www.misdn.org/downloads/releases/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+# 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
+
+RDEPEND=">=net-dialup/capi4k-utils-20050718
+ sys-devel/bc"
+
+S=${WORKDIR}/${MY_P}/drivers/isdn/hardware/mISDN
+
+### 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
+ elog
+ elog "You can control the modules which are built with the variable"
+ elog "MISDN_CARDS which should contain a blank separated list"
+ elog "of a selection from the following cards:"
+ elog " ${MISDN_MODULES[*]}"
+ elog
+ 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 "${D}"/etc
+ else
+ sed -i -e "s:/etc/misdn-init.conf:${D}\0:" "${D}"/usr/sbin/misdn-init
+ "${D}"/usr/sbin/misdn-init config
+ sed -i -e "s:${D}/etc/misdn-init.conf:/etc/misdn-init.conf:" "${D}"/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"
+}