summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2004-11-22 20:05:39 +0000
committerAlin Năstac <mrness@gentoo.org>2004-11-22 20:05:39 +0000
commit479b4d9762dcd84f2d1391138546d62a134306ae (patch)
treea79356c5fca458f8b7e21a88f7e403ca6cf5672e /net-dialup/isdn4k-utils/files
parentFixed nagios.cmd permission problem (diff)
downloadhistorical-479b4d9762dcd84f2d1391138546d62a134306ae.tar.gz
historical-479b4d9762dcd84f2d1391138546d62a134306ae.tar.bz2
historical-479b4d9762dcd84f2d1391138546d62a134306ae.zip
improved ebuild with version bump; imported from #71845
Diffstat (limited to 'net-dialup/isdn4k-utils/files')
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/config132
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/config.old91
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/ioptions6
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-down37
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-up42
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.conf22
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.init68
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.conf10
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.init33
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.logrotated15
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/net.ippp0100
-rw-r--r--net-dialup/isdn4k-utils/files/3.5_pre20041110/options.ippp029
-rw-r--r--net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.5_pre200411101
13 files changed, 586 insertions, 0 deletions
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/config b/net-dialup/isdn4k-utils/files/3.5_pre20041110/config
new file mode 100644
index 000000000000..f22ecec7e525
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/config
@@ -0,0 +1,132 @@
+#
+# Automatically generated by make menuconfig: don't edit
+#
+
+#
+# Code maturity level options
+#
+CONFIG_EXPERIMENTAL=y
+
+#
+# General configuration
+#
+CONFIG_BUILDX11=y
+CONFIG_KERNELDIR='/usr/src/linux'
+CONFIG_BINDIR='/usr/bin'
+CONFIG_SBINDIR='/usr/sbin'
+CONFIG_MANDIR='/usr/share/man'
+CONFIG_RUNDIR='/var/run'
+CONFIG_LOCKDIR='/var/lock'
+CONFIG_LOCKFILE='LCK..'
+CONFIG_I4LCONFDIR='/etc/isdn'
+CONFIG_CONFFILE='isdn.conf'
+CONFIG_CALLERIDFILE='callerid.conf'
+CONFIG_USERCONFFILE='~/.isdn'
+CONFIG_COUNTRYCODE='49'
+CONFIG_AREACODE='89'
+CONFIG_COUNTRY_PREFIX='+'
+CONFIG_AREA_PREFIX='0'
+CONFIG_DATADIR='/usr/share/isdn'
+
+#
+# Runtime configuration tools
+#
+CONFIG_ISDNCTRL=y
+CONFIG_ISDNCTRL_CONF=y
+CONFIG_ISDNCTRL_TIMRU=y
+CONFIG_ISDNCTRL_DWABC_UDP_INFO=y
+CONFIG_IPROFD=y
+CONFIG_DIVERTCTRL=y
+
+#
+# Card configuration tools
+#
+CONFIG_HISAXCTRL=y
+CONFIG_ICNCTRL=y
+# CONFIG_ICNCTRL_DEBUG is not set
+CONFIG_PCBITCTL=y
+# CONFIG_AVMCAPICTRL is not set
+CONFIG_ACTCTRL=y
+CONFIG_EICONCTRL=y
+CONFIG_LOOPCTRL=y
+# CONFIG_LOOPCTRL_DEBUG is not set
+
+#
+# Tools for monitoring activity
+#
+CONFIG_IMON=y
+CONFIG_IMONTTY=y
+CONFIG_ISDNLOG=y
+
+#
+# Options for isdnlog package
+#
+CONFIG_ISDNLOG_SERV_PORT=20011
+CONFIG_ISDNLOG_USERFILE='isdnlog.users'
+CONFIG_ISDNLOG_CHARGEFILE='charge.dat'
+CONFIG_ISDNLOG_LOGFILE='/var/log/isdn.log'
+CONFIG_ISDNLOG_RELOADCMD='/etc/init.d/isdn restart'
+CONFIG_ISDNLOG_STOPCMD='/etc/init.d/isdn stop'
+CONFIG_ISDNLOG_REBOOTCMD='/sbin/reboot'
+CONFIG_ISDNLOG_DOCDIR=''
+CONFIG_ISDNLOG_OLDI4LCONFDIR='/etc/isdnlog'
+CONFIG_ISDNLOG_OLDI4LCONFFILE='isdnlog.conf'
+# CONFIG_ISDNLOG_POSTGRES is not set
+# CONFIG_ISDNLOG_MYSQLDB is not set
+# CONFIG_ISDNLOG_ORACLE is not set
+CONFIG_ISDN_LOG_XX=y
+CONFIG_ISDN_LOG_CC=''
+CONFIG_ISDN_LOG_CC_EN=y
+CONFIG_ISDN_LOG_DEST_DE=y
+CONFIG_ISDN_LOG_DEST_AT=y
+CONFIG_ISDN_LOG_DEST_NL=y
+CONFIG_ISDN_LOG_DEST_CH=y
+CONFIG_ISDN_LOG_DEST_BE=y
+CONFIG_ISDN_LOG_DEST_CN=y
+CONFIG_IPPPSTATS=y
+CONFIG_XISDNLOAD=y
+CONFIG_XMONISDN=y
+
+#
+# Options for xmonisdn
+#
+CONFIG_XMONISDN_UPCMD='/etc/isdn/netup'
+CONFIG_XMONISDN_DOWNCMD='/etc/isdn/netdown'
+
+#
+# Applications
+#
+# CONFIG_VBOX is not set
+CONFIG_IPPPD=y
+
+#
+# Options for ipppd
+#
+CONFIG_IPPPD_MSCHAP=y
+CONFIG_IPPP_FILTER=y
+# CONFIG_IPPPD_RADIUS is not set
+# CONFIG_RADIUS_WTMP_LOGGING is not set
+RADIUS_CLIENT_CONFIG_FILE=''
+# CONFIG_CAPIFAX is not set
+# CONFIG_RCAPID is not set
+# CONFIG_PPPDCAPIPLUGIN is not set
+CONFIG_EUROFILE=y
+
+#
+# Options for eurofile
+#
+CONFIG_EFTD=y
+CONFIG_EFTD_WUAUTH=y
+CONFIG_EFTD_SERVER_MSN=''
+# CONFIG_EFT_INSTALL_EFTD_SH is not set
+CONFIG_EFTP=y
+CONFIG_EFTP_READLINE=y
+# CONFIG_EFTP_SETUID is not set
+CONFIG_EFTP_CLIENT_MSN=''
+CONFIG_EFT_INSTALL_CONF=y
+
+#
+# Documentation
+#
+CONFIG_GENMAN=y
+# CONFIG_FAQ is not set
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/config.old b/net-dialup/isdn4k-utils/files/3.5_pre20041110/config.old
new file mode 100644
index 000000000000..d67d3163a1eb
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/config.old
@@ -0,0 +1,91 @@
+#
+# Automatically generated by make menuconfig: don't edit
+#
+
+#
+# Code maturity level options
+#
+CONFIG_EXPERIMENTAL=y
+
+#
+# General configuration
+#
+CONFIG_BUILDX11=y
+CONFIG_KERNELDIR='/usr/src/linux'
+CONFIG_BINDIR='/usr/bin'
+CONFIG_SBINDIR='/usr/sbin'
+CONFIG_MANDIR='/usr/share/man'
+CONFIG_RUNDIR='/var/run'
+CONFIG_LOCKDIR='/var/lock'
+CONFIG_LOCKFILE='LCK..'
+CONFIG_I4LCONFDIR='/etc/isdn'
+CONFIG_CONFFILE='isdn.conf'
+CONFIG_CALLERIDFILE='callerid.conf'
+CONFIG_USERCONFFILE='~/.isdn'
+CONFIG_COUNTRYCODE='49'
+CONFIG_AREACODE='89'
+CONFIG_COUNTRY_PREFIX='+'
+CONFIG_AREA_PREFIX='0'
+CONFIG_DATADIR='/usr/share/isdn'
+
+#
+# Runtime configuration tools
+#
+CONFIG_ISDNCTRL=y
+CONFIG_ISDNCTRL_CONF=y
+CONFIG_ISDNCTRL_TIMRU=y
+CONFIG_ISDNCTRL_DWABC_UDP_INFO=y
+CONFIG_IPROFD=y
+CONFIG_DIVERTCTRL=y
+
+#
+# Card configuration tools
+#
+CONFIG_HISAXCTRL=y
+CONFIG_ICNCTRL=y
+# CONFIG_ICNCTRL_DEBUG is not set
+CONFIG_PCBITCTL=y
+# CONFIG_AVMCAPICTRL is not set
+CONFIG_ACTCTRL=y
+CONFIG_EICONCTRL=y
+CONFIG_LOOPCTRL=y
+# CONFIG_LOOPCTRL_DEBUG is not set
+
+#
+# Tools for monitoring activity
+#
+CONFIG_IMON=y
+CONFIG_IMONTTY=y
+# CONFIG_ISDNLOG is not set
+# CONFIG_IPPPSTATS is not set
+CONFIG_XISDNLOAD=y
+CONFIG_XMONISDN=y
+
+#
+# Options for xmonisdn
+#
+CONFIG_XMONISDN_UPCMD='/etc/isdn/netup'
+CONFIG_XMONISDN_DOWNCMD='/etc/isdn/netdown'
+
+#
+# Applications
+#
+# CONFIG_VBOX is not set
+# CONFIG_IPPPD is not set
+# CONFIG_CAPIFAX is not set
+# CONFIG_RCAPID is not set
+# CONFIG_PPPDCAPIPLUGIN is not set
+# CONFIG_EUROFILE is not set
+
+#
+# Options for eurofile
+#
+# CONFIG_EFTD is not set
+# CONFIG_EFTP is not set
+# CONFIG_EFT_INSTALL_CONF is not set
+
+#
+# Documentation
+#
+CONFIG_GENMAN=y
+# CONFIG_FAQ is not set
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/ioptions b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ioptions
new file mode 100644
index 000000000000..844c62029e0e
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ioptions
@@ -0,0 +1,6 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/ioptions,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+# System-wide configuration for ipppd.
+# Normally, put all options into options.ipppX
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-down b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-down
new file mode 100644
index 000000000000..52ae93395c14
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-down
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# this is a script which is executed after disconnecting the ppp interface.
+# look at man pppd for details
+
+# the followings parameters are available:
+# $1 = interface-name
+# $2 = tty-device
+# $3 = speed
+# $4 = local-IP-address
+# $5 = remote-IP-address
+# $6 = ipparam
+
+if [ "$USEPEERDNS" ]; then
+
+ # taken from debian's 0000usepeerdns
+ # follow any symlink to find the real file
+ REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
+
+ if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
+
+ # if an old resolv.conf file exists, restore it
+ if [ -e $REALRESOLVCONF.pppd-backup ]; then
+ mv $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
+ fi
+
+ fi
+
+fi
+
+# Recreate the default route so autodial works
+[ -s /etc/conf.d/net ] && . /etc/conf.d/net
+if [ -n "${gateway}" ] && [ "${gateway%/*}" = "$1" ]; then
+ /sbin/route add default dev ${gateway%/*}
+fi
+
+[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local "$1" "$2" "$3" "$4" "$5" "$6"
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-up b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-up
new file mode 100644
index 000000000000..4f16ae3220f6
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/ip-up
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# this is a script which is executed after connecting the ppp interface.
+# look at man pppd for details
+
+# the followings parameters are available:
+# $1 = interface-name
+# $2 = tty-device
+# $3 = speed
+# $4 = local-IP-address
+# $5 = remote-IP-address
+# $6 = ipparam
+
+if [ "$USEPEERDNS" ]; then
+
+ # add the server supplied DNS entries to /etc/resolv.conf
+ # (taken from debian's 0000usepeerdns)
+
+ # follow any symlink to find the real file
+ REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
+
+ if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
+
+ # merge the new nameservers with the other options from the old configuration
+ {
+ grep --invert-match '^nameserver[[:space:]]' $REALRESOLVCONF
+ cat /etc/ppp/resolv.conf
+ } > $REALRESOLVCONF.tmp
+
+ # backup the old configuration and install the new one
+ cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
+ mv $REALRESOLVCONF.tmp $REALRESOLVCONF
+
+ # correct permissions
+ chmod 644 /etc/resolv.conf
+ chown root:root /etc/resolv.conf
+
+ fi
+
+fi
+
+[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local "$1" "$2" "$3" "$4" "$5" "$6"
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.conf b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.conf
new file mode 100644
index 000000000000..36e778c9f30b
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.conf
@@ -0,0 +1,22 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.conf,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+# Location where isdnctrl will save its configuration
+ISDNCTRL_CONFIG="/var/lib/isdn/isdnctrl.conf"
+
+# Location where iprofd will save the modem-register settings
+# comment out if you don't want to use iprofd
+IPROFD_SETTINGS="/var/lib/isdn/modem-register.dat"
+
+# ISDN drivers to load via modprobe <driver> <params>
+# comment out to disable
+
+ISDN_DRIVER_0="capidrv"
+ISDN_PARAMS_0=""
+
+# ISDN_DRIVER_1=""
+# ISDN_PARAMS_1=""
+
+# ISDN_DRIVER_2=""
+# ISDN_PARAMS_2=""
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.init b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.init
new file mode 100644
index 000000000000..28a206f47286
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.init
@@ -0,0 +1,68 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdn.init,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+opts="start stop save reload info show"
+
+depend() {
+ use pcmcia capi
+}
+
+start() {
+ local i=0
+ while true; do
+ local DRIVER=$(eval echo "\$ISDN_DRIVER_${i}")
+ local PARAMS=$(eval echo "\$ISDN_PARAMS_${i}")
+ [ -z "${DRIVER}" ] && break
+ if ! /bin/grep -q "^${DRIVER} " /proc/modules ; then
+ ebegin "Loading ISDN driver ${DRIVER}"
+ /sbin/modprobe ${DRIVER} ${PARAMS} &>/dev/null
+ eend $?
+ fi
+ : $((i++))
+ done
+
+ ebegin "Loading isdnctrl configuration"
+ [ ! -f "${ISDNCTRL_CONFIG}" ] || /usr/sbin/isdnctrl readconf "${ISDNCTRL_CONFIG}" >/dev/null
+ eend $?
+
+ if [ -n "${IPROFD_SETTINGS}" ]; then
+ ebegin "Starting modem-register daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/iprofd -- "${IPROFD_SETTINGS}"
+ eend $?
+ fi
+}
+
+stop() {
+ if [ -n "${IPROFD_SETTINGS}" ]; then
+ ebegin "Stopping modem-register daemon"
+ start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/iprofd
+ eend $?
+ fi
+
+ ebegin "Unloading isdnctrl configuration"
+ /usr/sbin/isdnctrl reset force >/dev/null
+ eend $?
+}
+
+save() {
+ ebegin "Saving isdnctrl configuration"
+ /usr/sbin/isdnctrl writeconf "${ISDNCTRL_CONFIG}" >/dev/null
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading isdnctrl configuration"
+ /usr/sbin/isdnctrl reset >/dev/null
+ [ ! -f "${ISDNCTRL_CONFIG}" ] || /usr/sbin/isdnctrl readconf "${ISDNCTRL_CONFIG}" >/dev/null
+ eend $?
+}
+
+info() {
+ /usr/sbin/isdnctrl status all
+}
+
+show() {
+ /usr/sbin/isdnctrl list all
+}
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.conf b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.conf
new file mode 100644
index 000000000000..43945f39fa4c
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.conf
@@ -0,0 +1,10 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.conf,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+# here you can add some switches not covered by the
+# corresponding /etc/isdnlog.options.contrX file.
+#
+# see "man (8) isdnlog" for further informations
+
+ISDNLOG_OPTIONS=""
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.init b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.init
new file mode 100644
index 000000000000..be5a086e72f6
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.init
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.init,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+opts="start stop"
+
+depend() {
+ need isdn
+}
+
+start() {
+ local CONTR="${myservice#*.contr}" CTRL=$((CONTR * 2))
+ local CONFIG="/etc/isdn/isdnlog.isdnctrl${CTRL}.options"
+ [ -e "$CONFIG" ] || CONFIG="/etc/isdn/isdnlog.options.contr${CONTR}"
+
+ if [ ! -e "$CONFIG" ] ; then
+ eerror "You're missing ${CONFIG}"
+ return 1
+ fi
+
+ ebegin "Starting ISDNLOG for controller #${CONTR}"
+ start-stop-daemon --start --quiet --pidfile "/var/run/isdnlog.isdnctrl${CTRL}.pid" \
+ --exec /usr/sbin/isdnlog -- ${ISDNLOG_OPTIONS} -f "${CONFIG}" "/dev/isdnctrl${CTRL}"
+ eend $?
+}
+
+stop() {
+ local CONTR="${myservice#*.contr}" CTRL=$((CONTR * 2))
+ ebegin "Stopping ISDNLOG for controller #${CONTR}"
+ start-stop-daemon --stop --quiet --retry 5 --pidfile "/var/run/isdnlog.isdnctrl${CTRL}.pid"
+ eend $?
+}
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.logrotated b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.logrotated
new file mode 100644
index 000000000000..1b1e86166c3a
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.logrotated
@@ -0,0 +1,15 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/isdnlog.logrotated,v 1.1 2004/11/22 20:05:39 mrness Exp $
+#
+# isdnlog logrotate snippet for Gentoo Linux
+# contributed by Stefan Briesenick
+
+/var/log/isdn.log {
+ compress
+ rotate 99
+ size=4096k
+ notifempty
+ missingok
+ copytruncate
+}
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/net.ippp0 b/net-dialup/isdn4k-utils/files/3.5_pre20041110/net.ippp0
new file mode 100644
index 000000000000..2046ffd290e5
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/net.ippp0
@@ -0,0 +1,100 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/net.ippp0,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+#NB: Config is in /etc/conf.d/net
+
+depend() {
+ need isdn
+}
+
+checkconfig() {
+ if [ -z "$(eval echo \$\{iface_${IFACE}\})" ]
+ then
+ eerror "Please make sure that /etc/conf.d/net has \$iface_$IFACE set"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ local iface_args="$(eval echo \$\{iface_${IFACE}\})"
+ local ipppd_opts=""
+
+ ebegin "Starting ipppd for ${IFACE}"
+ [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ] && ipppd_opts='defaultroute'
+ /sbin/ipppd ${ipppd_opts} pidfile /var/run/ipppd.${IFACE}.pid file /etc/ppp/options.${IFACE} || {
+ local retval=$?
+ eend ${retval} "Failed to start ipppd"
+ return ${retval}
+ }
+ eend 0
+
+ ebegin "Bringing ${IFACE} up"
+ /sbin/ifconfig ${IFACE} ${iface_args} >/dev/null || {
+ local retval=$?
+ eend ${retval} "Failed to bring ${IFACE} up"
+ stop
+ return ${retval}
+ }
+ eend 0
+
+ if [ -n "$(eval echo \$\{inet6_${IFACE}\})" ]
+ then
+ local x=""
+ ebegin " Adding inet6 addresses"
+ for x in $(eval echo \$\{inet6_${IFACE}\})
+ do
+ ebegin " ${IFACE} inet6 add ${x}"
+ /sbin/ifconfig ${IFACE} inet6 add ${x} >/dev/null
+ eend 0
+ done
+ save_options "inet6" "$(eval echo \$\{inet6_${IFACE}\})"
+ fi
+
+ if [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ]
+ then
+ ebegin " Setting default gateway"
+ /sbin/route add default dev ${gateway%/*} >/dev/null || {
+ local retval=$?
+ eend ${retval} "Failed to bring ${IFACE} up"
+ stop
+ return ${retval}
+ }
+ eend 0
+ fi
+
+ # Enabling rp_filter causes wacky packets to be auto-dropped by
+ # the kernel
+ if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
+ then
+ echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter
+ fi
+}
+
+stop() {
+ local myinet6="$(get_options inet6)"
+ local pidfile="/var/run/ipppd.${IFACE}.pid"
+
+ ebegin "Bringing ${IFACE} down"
+
+ # Also down the inet6 interfaces
+ if [ -n "${myinet6}" ]
+ then
+ local x=""
+ for x in ${myinet6}
+ do
+ /sbin/ifconfig ${IFACE} inet6 del ${x} >/dev/null
+ done
+ fi
+
+ /sbin/ifconfig ${IFACE} down >/dev/null
+
+ # Kill ipppd
+ test -s "${pidfile}" && kill `cat ${pidfile}`
+ sleep 1
+ test -s "${pidfile}" && sleep 2 && test -s "${pidfile}" && einfon "Killing ipppd" && kill -KILL `cat ${pidfile}`
+
+ eend 0
+}
diff --git a/net-dialup/isdn4k-utils/files/3.5_pre20041110/options.ippp0 b/net-dialup/isdn4k-utils/files/3.5_pre20041110/options.ippp0
new file mode 100644
index 000000000000..9b1b431c655f
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/3.5_pre20041110/options.ippp0
@@ -0,0 +1,29 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.5_pre20041110/options.ippp0,v 1.1 2004/11/22 20:05:39 mrness Exp $
+
+# Example config for a personal ISP dialin
+# see "man ipppd" for explanation of all possible options
+
+# for the defaultroute setting, look in /etc/conf.d/net
+
+/dev/isdn/ippp0
+
+# you have to put login and password into /etc/ppp/pap-secrets too
+
+name "insert ppp login here"
+
+lock
+ipcp-accept-local
+ipcp-accept-remote
+noipdefault
+
+# You might want to try these if you have problems:
+#-vj
+#-vjccomp
+#-ac
+#-pc
+#-bsdcomp
+#mru 1524
+#mtu 1500
+#noccp
diff --git a/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.5_pre20041110 b/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.5_pre20041110
new file mode 100644
index 000000000000..9a14b65cf8e9
--- /dev/null
+++ b/net-dialup/isdn4k-utils/files/digest-isdn4k-utils-3.5_pre20041110
@@ -0,0 +1 @@
+MD5 363efe6929db2fa4196b950c816edb1d isdn4k-utils-CVS-2004-11-10.tar.bz2 5511924