summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-11-23 10:17:34 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-11-23 10:17:34 +0000
commitf1a2a03a910c9704aeee9134d7c70448746d5fad (patch)
tree2c8ab62efd53eb71b10dc3f81c9ee32afe8d8011 /net-dialup
parentreplaced vbox with vbox3 (diff)
downloadgentoo-2-f1a2a03a910c9704aeee9134d7c70448746d5fad.tar.gz
gentoo-2-f1a2a03a910c9704aeee9134d7c70448746d5fad.tar.bz2
gentoo-2-f1a2a03a910c9704aeee9134d7c70448746d5fad.zip
replaced vbox with vbox3
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/isdn4k-utils/ChangeLog5
-rw-r--r--net-dialup/isdn4k-utils/Manifest4
-rw-r--r--net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.2_p1-r32
-rw-r--r--net-dialup/isdn4k-utils/isdn4k-utils-3.2_p1-r3.ebuild119
4 files changed, 127 insertions, 3 deletions
diff --git a/net-dialup/isdn4k-utils/ChangeLog b/net-dialup/isdn4k-utils/ChangeLog
index 37cda5b36382..7892ca89c0be 100644
--- a/net-dialup/isdn4k-utils/ChangeLog
+++ b/net-dialup/isdn4k-utils/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-dialup/isdn4k-utils
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/ChangeLog,v 1.10 2003/11/19 14:36:57 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/ChangeLog,v 1.11 2003/11/23 10:17:28 lanius Exp $
+
+ 23 Nov 2003; Heinrich Wendel <lanius@gentoo.org> isdn4k-utils-3.2_p1-r3.ebuild:
+ replaced vbox with vbox3
19 Nov 2003; Heinrich Wendel <lanius@gentoo.org> metadata.xml:
metadata.xml
diff --git a/net-dialup/isdn4k-utils/Manifest b/net-dialup/isdn4k-utils/Manifest
index ce674cdf7b4e..89d7b78f4c1a 100644
--- a/net-dialup/isdn4k-utils/Manifest
+++ b/net-dialup/isdn4k-utils/Manifest
@@ -1,6 +1,6 @@
-MD5 3d378056642d90617a633ace661bcebc isdn4k-utils-3.2_p1-r3.ebuild 3027
+MD5 d03c6941a23adf2732c85bfb57f9f3fa isdn4k-utils-3.2_p1-r3.ebuild 3020
MD5 4f86ecdf73d515a626f47320977898e8 isdn4k-utils-3.2_p1-r2.ebuild 2785
-MD5 674367968568514bcd924da18cab7b51 ChangeLog 1769
+MD5 ad0d05868d5467b291e5b3fc3fa2151d ChangeLog 1879
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
MD5 2dbc97316fbe5d721b9701347464e22c files/gcc33-multiline.patch 1977
MD5 e2cc85397eb8ff285f383213ab00cdad files/digest-isdn4k-utils-3.2_p1-r2 73
diff --git a/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.2_p1-r3 b/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.2_p1-r3
new file mode 100644
index 000000000000..fa921629c0cd
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.2_p1-r3
@@ -0,0 +1,2 @@
+MD5 d347afa462e46eccfd1284aebae227b6 isdn4k-utils.v3.2p1.tar.bz2 5238737
+MD5 dec7c96a6b3e8aa524bf0bcbae1f8af7 vbox3_0.1.9.tar.gz 105619
diff --git a/net-dialup/isdn4k-utils/isdn4k-utils-3.2_p1-r3.ebuild b/net-dialup/isdn4k-utils/isdn4k-utils-3.2_p1-r3.ebuild
new file mode 100644
index 000000000000..61687dd787f9
--- /dev/null
+++ b/net-dialup/isdn4k-utils/isdn4k-utils-3.2_p1-r3.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/isdn4k-utils-3.2_p1-r3.ebuild,v 1.1 2003/11/23 10:17:28 lanius Exp $
+
+IUSE="X"
+VBOX_V=0.1.9
+MY_PVR=${PV}-r2
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="ISDN-4-Linux Utils"
+SRC_URI="ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/${PN}.v3.2p1.tar.bz2
+ http://smarden.org/pape/vbox3/vbox3_${VBOX_V}.tar.gz"
+HOMEPAGE="http://www.isdn4linux.de/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~alpha"
+LICENSE="GPL-2"
+
+RDEPEND=">=sys-apps/portage-2.0.47-r10
+ virtual/glibc
+ sys-libs/ncurses
+ sys-libs/gdbm
+ X? ( virtual/x11 )"
+
+DEPEND="${RDEPEND} virtual/linux-sources"
+
+src_unpack() {
+ unpack ${A}
+ # Get country code from I4L_CC variable
+ # default country: DE (Germany)
+ export I4L_CC=`echo -n "${I4L_CC}" | tr "[:lower:]" "[:upper:]"`
+ [ "X${I4L_CC}" == "X" ] && export I4L_CC=DE
+ export I4L_CC_LOW=`echo -n "${I4L_CC}" | tr "[:upper:]" "[:lower:]"`
+ cd ${S}
+
+ # Patch .config file to suit our needs
+ cat ${FILESDIR}/${MY_PVR}/config | { \
+ if use X >/dev/null; then
+ cat
+ else
+ sed -e s/CONFIG_BUILDX11=y/#/ -e s/CONFIG_XISDNLOAD=y/#/ -e s/CONFIG_XMONISDN=y/#/;
+ fi; } | { \
+ case "${I4L_CC}" in
+ DE|AT|CH|NL)
+ # These countries are specially supported in the isdnlog source.
+ sed -e s/CONFIG_ISDN_LOG_XX=y/CONFIG_ISDN_LOG_${I4L_CC}=y/ -e s/CONFIG_ISDN_LOG_CC=\'\'/#/
+ ;;
+ *)
+ # Others get a generic isdnlog.
+ sed s/CONFIG_ISDN_LOG_CC=\'\'/CONFIG_ISDN_LOG_CC=\'${I4L_CC_LOW}\'/
+ ;;
+ esac } \
+ > .config || die
+
+ # Patch in order to make generic config for countries which are not known to isdnlog source
+ epatch ${FILESDIR}/${MY_PVR}/gentoo.patch
+
+ #disabling device creation the easy way:
+ echo "#!/bin/bash" > scripts/makedev.sh
+ echo "true" >> scripts/makedev.sh
+
+ epatch ${FILESDIR}/gcc33-multiline.patch
+
+ #disable vbox
+ sed -i -e "s:CONFIG_VBOX=y::" .config
+}
+
+src_compile() {
+ make subconfig || die
+ make || die
+
+ cd ${S}/../vbox3-${VBOX_V}
+ econf
+ emake || die
+}
+
+src_install() {
+ dodir /dev /sbin /usr/bin
+ make DESTDIR=${D} install || die
+ rm -rf ${D}/usr/doc ${D}/dev
+ dodoc COPYING NEWS README Mini-FAQ/isdn-faq.txt
+
+ cd ${FILESDIR}/${MY_PVR}
+ dodir /etc/init.d /etc/conf.d /etc/ppp /var/lib/isdn4linux
+
+ exeinto /etc/init.d
+ doexe net.ippp0
+ newexe isdn4linux.init isdn4linux
+
+ insinto /etc/conf.d
+ newins isdn4linux.conf isdn4linux
+
+ exeinto /etc/ppp
+ insinto /etc/ppp
+ doexe ip-up
+ dosym ip-up /etc/ppp/ip-down
+ doins ip-down.ippp0
+ doins ioptions
+ doins options.ippp0
+
+ cd ${S}/../vbox3-${VBOX_V}
+ einstall || die
+}
+
+pkg_postinst() {
+
+ einfo
+ einfo "Please edit:"
+ einfo
+ einfo "- /etc/modules.autoload to contain your ISDN kernel modules"
+ einfo "- /etc/isdn/* (critical)"
+ einfo "- /etc/ppp/* (critical)"
+ einfo
+ einfo "/etc/init.d/isdn4linux will save and restore your isdnctrl config."
+ einfo "/etc/init.d/net.ippp0 will start synchronous PPP connections which"
+ einfo "you need to set up using isdnctrl first!"
+ einfo
+
+}