summaryrefslogtreecommitdiff
path: root/community/xl2tpd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
committerroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
commit2e5b72e5e8dfb5199a9b0da7c76d052a456662c2 (patch)
treefa055d4e2f367acb518de6c4e06b77b6d8cbef75 /community/xl2tpd
parent66cb4a487ad73063c6b000279a5d5558fb7603f5 (diff)
Tue May 14 01:18:40 PDT 2013
Diffstat (limited to 'community/xl2tpd')
-rw-r--r--community/xl2tpd/PKGBUILD12
-rw-r--r--community/xl2tpd/xl2tpd.rc39
2 files changed, 7 insertions, 44 deletions
diff --git a/community/xl2tpd/PKGBUILD b/community/xl2tpd/PKGBUILD
index 54e33f731..b6e76d97c 100644
--- a/community/xl2tpd/PKGBUILD
+++ b/community/xl2tpd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 79633 2012-11-09 12:06:24Z spupykin $
+# $Id: PKGBUILD 90739 2013-05-13 14:42:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hengfu <rhfcaesar@gmail.com>
pkgname=xl2tpd
pkgver=1.3.1
-pkgrel=1
+pkgrel=2
pkgdesc="an open source implementation of the L2TP maintained by Xelerance Corporation"
arch=('i686' 'x86_64')
url="http://www.xelerance.com/services/software/xl2tpd/"
@@ -13,7 +13,6 @@ depends=('ppp')
options=(emptydirs zipman docs)
backup=(etc/ppp/options.l2tpd)
source=($pkgname-$pkgver.tar.gz::https://github.com/xelerance/xl2tpd/archive/v$pkgver.tar.gz
- xl2tpd.rc
xl2tpd.conf.client-example
xl2tpd.conf.server-example
options.l2tpd
@@ -21,7 +20,6 @@ source=($pkgname-$pkgver.tar.gz::https://github.com/xelerance/xl2tpd/archive/v$p
xl2tpd.tmpfiles
ipparam.patch)
md5sums=('38c2461d3562f98b08454ca403706886'
- '1439d13084fc09c2a19c97b24a834345'
'5f0ae07026e61a3dd15a76fd4144a6d5'
'16ed0886115d4dcc21072cfb847250bb'
'ed57eb67335cdf246251285dad502cc7'
@@ -35,9 +33,13 @@ build() {
patch -p1 <$srcdir/ipparam.patch
make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
make KERNELSRC=/usr/src/linux-`uname -r` PREFIX=/usr DESTDIR=$pkgdir install
- install -D -m0755 $srcdir/xl2tpd.rc $pkgdir/etc/rc.d/xl2tpd
install -D -m0644 $srcdir/xl2tpd.conf.client-example $pkgdir/etc/xl2tpd/xl2tpd.conf.client-example
install -D -m0644 $srcdir/xl2tpd.conf.server-example $pkgdir/etc/xl2tpd/xl2tpd.conf.server-example
install -D -m0644 $srcdir/options.l2tpd $pkgdir/etc/ppp/options.l2tpd
diff --git a/community/xl2tpd/xl2tpd.rc b/community/xl2tpd/xl2tpd.rc
deleted file mode 100644
index a06e0d41e..000000000
--- a/community/xl2tpd/xl2tpd.rc
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# general config
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
- start)
- [ -d /var/run/xl2tpd ] || mkdir -p /var/run/xl2tpd
- stat_busy "Starting xl2tpd"
- /usr/sbin/xl2tpd
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon xl2tpd
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping xl2tpd"
- [ -f /var/run/xl2tpd.pid ] && kill `cat /var/run/xl2tpd.pid`
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm -f /var/run/xl2tpd.pid
- rm_daemon xl2tpd
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
- ;;
-esac
-exit 0