diff -ur vpnc-old/PKGBUILD vpnc/PKGBUILD --- vpnc-old/PKGBUILD 2007-11-23 17:02:16.000000000 +0100 +++ vpnc/PKGBUILD 2008-01-09 00:27:44.000000000 +0100 @@ -2,7 +2,7 @@ # Maintainer: Thomas Baechler pkgname=vpnc pkgver=0.5.1 -pkgrel=2 +pkgrel=3 pkgdesc="VPN client for cisco3000 VPN Concentrators" url="http://www.unix-ag.uni-kl.de/~massar/vpnc/" license=('GPL') @@ -10,10 +10,10 @@ arch=('i686' 'x86_64') source=(http://www.unix-ag.uni-kl.de/~massar/vpnc/$pkgname-$pkgver.tar.gz vpnc.conf vpnc.rc) -backup=(etc/vpnc/default.conf) +backup=(etc/vpnc/default.conf etc/conf.d/vpnc) md5sums=('7a8e94dbe94f39a4fd89b72e0125f66f' - 'a3f4e0cc682f437e310a1c86ae198e45' - 'c5885162ac198eaa36da9a01e7c0c55b') + '82c15ca6d34eff7870e996367fd4f333' + '8668e00fdb7f537d964bdb0aa39dfa6f') build() { cd $startdir/src/$pkgname-$pkgver @@ -26,5 +26,8 @@ install -D -m644 $startdir/src/vpnc.conf $startdir/pkg/etc/vpnc/default.conf install -D -m755 $startdir/src/vpnc.rc $startdir/pkg/etc/rc.d/vpnc + install -d -m755 $startdir/pkg/var/run/vpnc + install -D -m644 $startdir/pkg/etc/conf.d/vpnc + echo "profile=default" > $startdir/pkg/etc/conf.d/vpnc rm -f $startdir/pkg/etc/vpnc/vpnc.conf -} +} \ Kein Zeilenumbruch am Dateiende. Nur in vpnc: PKGBUILD~. Nur in vpnc: src. Nur in vpnc: vpnc-0.5.1.tar.gz. diff -ur vpnc-old/vpnc.conf vpnc/vpnc.conf --- vpnc-old/vpnc.conf 2006-10-15 15:18:11.000000000 +0200 +++ vpnc/vpnc.conf 2008-01-08 23:46:15.000000000 +0100 @@ -8,7 +8,8 @@ # You may replace this script with something better #Script /etc/vpnc/vpnc-script # Enable this option for NAT traversal -#UDP Encapsulate +#NAT Traversal Mode cisco-udp +#Cisco UDP Encapsulation Port 10000 #IPSec gateway my.gateway.com #IPSec ID someid diff -ur vpnc-old/vpnc.rc vpnc/vpnc.rc --- vpnc-old/vpnc.rc 2006-10-15 15:18:11.000000000 +0200 +++ vpnc/vpnc.rc 2008-01-09 00:19:49.000000000 +0100 @@ -2,20 +2,24 @@ . /etc/rc.conf . /etc/rc.d/functions +. /etc/conf.d/vpnc case "$1" in start) - stat_busy "Connecting to VPN" - /usr/sbin/vpnc + [ "$2" != "" ] && profile=$2 + stat_busy "Connecting to VPN [${profile}]" + /usr/sbin/vpnc "/etc/vpnc/${profile}.conf" if [ $? -gt 0 ]; then stat_fail else add_daemon vpnc + echo "${profile}" > /var/run/vpnc/profile stat_done fi ;; stop) stat_busy "Disconnecting from VPN" + rm -f /var/run/vpnc/profile /usr/sbin/vpnc-disconnect if [ $? -gt 0 ]; then stat_fail @@ -25,11 +29,13 @@ fi ;; restart) + profile=`cat /var/run/vpnc/profile` $0 stop sleep 1 - $0 start + $0 start $profile ;; *) - echo "usage: $0 {start|stop|restart}" + echo "usage: $0 start [profile]" + echo "usage: $0 {stop|restart}" esac exit 0 Nur in vpnc: vpnc.rc~.