version bump
authorStefan Schweizer <genstef@gentoo.org>
Sat, 18 Nov 2006 20:59:27 +0000 (20:59 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Sat, 18 Nov 2006 20:59:27 +0000 (20:59 +0000)
Package-Manager: portage-2.1.2_rc2

net-dialup/misdn/ChangeLog
net-dialup/misdn/files/digest-misdn-1.0.4 [new file with mode: 0644]
net-dialup/misdn/misdn-1.0.4.ebuild [new file with mode: 0644]
net-dialup/misdnuser/ChangeLog
net-dialup/misdnuser/files/digest-misdnuser-1.0.3 [new file with mode: 0644]
net-dialup/misdnuser/misdnuser-1.0.3.ebuild [new file with mode: 0644]

index 77194e8523b7e70dc698042c536dbd34e2e1d287..641f106885bb8ffbe9f93f3ee68b2d823208bcd0 100644 (file)
@@ -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.13 2006/10/08 00:46:15 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.14 2006/11/18 20:58:48 genstef Exp $
+
+*misdn-1.0.4 (18 Nov 2006)
+
+  18 Nov 2006; Stefan Schweizer <genstef@gentoo.org> +misdn-1.0.4.ebuild,
+  -misdn-20060811.ebuild, -misdn-20061003.ebuild:
+  version bump
 
 *misdn-20061003 (08 Oct 2006)
 
diff --git a/net-dialup/misdn/files/digest-misdn-1.0.4 b/net-dialup/misdn/files/digest-misdn-1.0.4
new file mode 100644 (file)
index 0000000..ed27469
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 0cb49bf91670b67a34802455cad2212d mISDN-1_0_4.tar.gz 762995
+RMD160 566e6a0ce15bed1d054239abbce07f38d31354eb mISDN-1_0_4.tar.gz 762995
+SHA256 0584c76ebac01b135afad3db464e443855746bf047276c7e88223834a7b4cec3 mISDN-1_0_4.tar.gz 762995
diff --git a/net-dialup/misdn/misdn-1.0.4.ebuild b/net-dialup/misdn/misdn-1.0.4.ebuild
new file mode 100644 (file)
index 0000000..d079438
--- /dev/null
@@ -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-1.0.4.ebuild,v 1.1 2006/11/18 20:58:48 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.isdn4linux.de/mISDN"
+SRC_URI="http://www.misdn.org/downloads/releases/${MY_P}.tar.gz"
+
+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"
+}
index 8bd0894e2201854a97ac3b86c6317beb34780e1c..8986734d97c5cd683ffd7f0b1fc8c15bbb521773 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-dialup/misdnuser
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdnuser/ChangeLog,v 1.6 2006/10/08 00:40:28 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdnuser/ChangeLog,v 1.7 2006/11/18 20:59:27 genstef Exp $
+
+*misdnuser-1.0.3 (18 Nov 2006)
+
+  18 Nov 2006; Stefan Schweizer <genstef@gentoo.org>
+  -misdnuser-0.1_pre20060810.ebuild, -misdnuser-0.1_pre20060817.ebuild,
+  +misdnuser-1.0.3.ebuild:
+  version bump
 
 *misdnuser-0.1_pre20060817 (08 Oct 2006)
 
diff --git a/net-dialup/misdnuser/files/digest-misdnuser-1.0.3 b/net-dialup/misdnuser/files/digest-misdnuser-1.0.3
new file mode 100644 (file)
index 0000000..4320e26
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 c1c36841386222c2a35c110c8e63f3bc mISDNuser-1_0_3.tar.gz 549899
+RMD160 0d7d11e8f5a9a9e167fa3bff896e033450c66fa8 mISDNuser-1_0_3.tar.gz 549899
+SHA256 688dde032d9604edd4f58dabfdf53704c0eb774c6957b07f2e1722ffc9c2ae9e mISDNuser-1_0_3.tar.gz 549899
diff --git a/net-dialup/misdnuser/misdnuser-1.0.3.ebuild b/net-dialup/misdnuser/misdnuser-1.0.3.ebuild
new file mode 100644 (file)
index 0000000..fe44307
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdnuser/misdnuser-1.0.3.ebuild,v 1.1 2006/11/18 20:59:27 genstef Exp $
+
+MY_P=mISDNuser-${PV//./_}
+DESCRIPTION="mISDN (modular ISDN) kernel link library and includes"
+HOMEPAGE="http://www.mISDN.org"
+SRC_URI="http://www.misdn.org/downloads/releases/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+S=${WORKDIR}/${MY_P}
+RDEPEND=">=net-dialup/misdn-1.0.4
+       sys-libs/ncurses"
+DEPEND="${RDEPEND}"
+MAKEOPTS="${MAKEPOPTS} -j1"
+
+src_install() {
+       emake INSTALL_PREFIX="${D}" install || die "emake install failed"
+}