summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-07-24 08:00:09 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-07-24 08:00:09 +0000
commit08f0da3fd26f9080fc57dfb56a93edfdee8ea440 (patch)
tree5d24b23be43ce9d2a754aabf03d7e3b41e38a231 /net-dialup
parentAdd the new 0.2.1 release and remove the outdated 0.2 release. (diff)
downloadhistorical-08f0da3fd26f9080fc57dfb56a93edfdee8ea440.tar.gz
historical-08f0da3fd26f9080fc57dfb56a93edfdee8ea440.tar.bz2
historical-08f0da3fd26f9080fc57dfb56a93edfdee8ea440.zip
version bump, use misdn-init, kernel 2.6.18 support thanks to Martin von Gagern <Martin.vGagern@gmx.net> in bug 141020
Package-Manager: portage-2.1.1_pre3-r3
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/misdn/ChangeLog9
-rw-r--r--net-dialup/misdn/files/digest-misdn-200603211
-rw-r--r--net-dialup/misdn/files/digest-misdn-200607221
-rw-r--r--net-dialup/misdn/misdn-20060722.ebuild111
4 files changed, 121 insertions, 1 deletions
diff --git a/net-dialup/misdn/ChangeLog b/net-dialup/misdn/ChangeLog
index 00cdc758e7c3..be0ce3a40153 100644
--- a/net-dialup/misdn/ChangeLog
+++ b/net-dialup/misdn/ChangeLog
@@ -1,6 +1,13 @@
# 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.9 2006/03/21 20:47:39 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/misdn/ChangeLog,v 1.10 2006/07/24 08:00:09 genstef Exp $
+
+*misdn-20060722 (24 Jul 2006)
+
+ 24 Jul 2006; Stefan Schweizer <genstef@gentoo.org> -files/misdn.modulesd,
+ -misdn-20051017.ebuild, +misdn-20060722.ebuild:
+ version bump, use misdn-init, kernel 2.6.18 support thanks to Martin von
+ Gagern <Martin.vGagern@gmx.net> in bug 141020
*misdn-20060321 (21 Mar 2006)
diff --git a/net-dialup/misdn/files/digest-misdn-20060321 b/net-dialup/misdn/files/digest-misdn-20060321
index e69de29bb2d1..8b137891791f 100644
--- a/net-dialup/misdn/files/digest-misdn-20060321
+++ b/net-dialup/misdn/files/digest-misdn-20060321
@@ -0,0 +1 @@
+
diff --git a/net-dialup/misdn/files/digest-misdn-20060722 b/net-dialup/misdn/files/digest-misdn-20060722
new file mode 100644
index 000000000000..8b137891791f
--- /dev/null
+++ b/net-dialup/misdn/files/digest-misdn-20060722
@@ -0,0 +1 @@
+
diff --git a/net-dialup/misdn/misdn-20060722.ebuild b/net-dialup/misdn/misdn-20060722.ebuild
new file mode 100644
index 000000000000..83a824246c92
--- /dev/null
+++ b/net-dialup/misdn/misdn-20060722.ebuild
@@ -0,0 +1,111 @@
+# 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-20060722.ebuild,v 1.1 2006/07/24 08:00:09 genstef Exp $
+
+inherit eutils linux-mod cvs
+
+MY_P="mISDN"
+DESCRIPTION="mISDN is the new ISDN stack of the linux kernel 2.6."
+HOMEPAGE="http://www.isdn4linux.de/mISDN"
+SRC_URI=""
+ECVS_SERVER="cvs.isdn4linux.de:/i4ldev"
+ECVS_MODULE="${MY_P}"
+ECVS_PASS="readonly"
+ECVS_CO_OPTS="-D ${PV}"
+ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+RDEPEND=">=net-dialup/capi4k-utils-20050322-r1"
+S="${WORKDIR}/${MY_P}/drivers/isdn/hardware/mISDN"
+PATCHES="${FILESDIR}/nodevfs.patch"
+
+MISDN_MODULES=("avmfritz" "hfcpci" "hfcmulti" "hfcsusb" "hfcsmini" "xhfc" "sedlfax" "w6692pci" "netjetpci")
+MISDN_KCONFIG=("AVM_FRITZ" "HFCPCI" "HFCMULTI" "HFCUSB" "HFCMINI" "XHFC" "SPEEDFAX" "W6692" "NETJET")
+for i in ${MISDN_MODULES[@]}; do IUSE="${IUSE} misdn_cards_${i}"; done
+
+pkg_setup() {
+ 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
+
+ if [ -n "${MISDN_CARDS}" ]; then
+ #Check existence of user selected cards
+ 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_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"' \
+ > "${D}/etc/udev/rules.d/53-${PN}.rules"
+
+ sed -i -e "s:/etc/init.d:/usr/sbin:" "${WORKDIR}/${MY_P}/"{misdn-init,mISDN.modprobe.d}
+ 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"
+}