# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Frank Eibisch DESCRIPTION="isdn scripts for gentoo linux" DEPEND=">=isdn4k-utils-3.1" src_install () { dodir /etc dodir /etc/init.d dodir /etc/conf.d dodir /etc/ppp exeinto /etc/init.d newexe ${FILESDIR}/${P}/net.ippp0 net.ippp0 insinto /etc/conf.d newins ${FILESDIR}/${P}/isdn isdn exeinto /etc/ppp newexe ${FILESDIR}/${P}/ip-down ip-down newexe ${FILESDIR}/${P}/ip-down.ippp0 ip-down.ippp0 insinto /etc/ppp newins ${FILESDIR}/${P}/ioptions ioptions newins ${FILESDIR}/${P}/options.ippp0 options.ippp0 insopts -m0600 newins ${FILESDIR}/${P}/pap-secrets pap-secrets } pkg_postinst () { echo "Your next steps: (if you haven't already done)" echo echo " - first configure your isdn kernel modules (look into /etc/modules.d/i386 or" echo " /etc/modules.autoload)" echo " - modify /etc/conf.d/isdn to your needs (at least msn and dial out number)" echo " - put your ppp login into /etc/ppp/options.ippp0" echo " - put your ppp login and corresponding password into /etc/ppp/pap-secrets" echo " - configure ippp0 interface in /etc/conf.d/net, e.g." echo " iface_ippp0=\"192.168.222.2 pointopoint 192.168.222.1\"" echo " gateway=\"ippp0/192.168.222.1\"" echo " - try /etc/init.d/net.ippp0 start and check settings with isdnctrl, ifconfig" echo " and route. for a router you want to have a look at iptables configuration" echo }