summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-10 08:36:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-10 08:36:22 +0000
commit7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c (patch)
tree27a80f6449c77ca1068b0d06c63f25ddb7610ad9
parentbd7cf19fd242c0d5598aa061f197aecd6ee2dec4 (diff)
downloadaports-7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c.tar.bz2
aports-7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c.tar.xz
main/xl2tpd: create /var/run/xl2tpd dir at startup
fixes #1767
-rw-r--r--main/xl2tpd/APKBUILD12
-rw-r--r--main/xl2tpd/xl2tpd.initd25
2 files changed, 19 insertions, 18 deletions
diff --git a/main/xl2tpd/APKBUILD b/main/xl2tpd/APKBUILD
index 3ae5f0fc4..d6b481722 100644
--- a/main/xl2tpd/APKBUILD
+++ b/main/xl2tpd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xl2tpd
pkgver=1.3.1
-pkgrel=0
+pkgrel=1
pkgdesc="Layer 2 Tunnelling Protocol Daemon (RFC 2661)"
url="http://www.xelerance.com/services/software/xl2tpd/"
arch="all"
@@ -46,5 +46,13 @@ package() {
md5sums="cf61576fef5c2d6c68279a408ec1f0d5 xl2tpd-1.3.1.tar.gz
0032d104bd2d993b8a514c2f898d1dd9 xl2tpd.confd
-77e4364f4e726549b6e74aec2b1ccd39 xl2tpd.initd
+fc8c1dca4b14974ace99d08219daf76d xl2tpd.initd
8f1a2896d08b6353424013cf7247dc7d options.l2tp"
+sha256sums="912a40bcf8b83407cba4c315687e4b8fb36562c1c6d347ab98641e63d0aac428 xl2tpd-1.3.1.tar.gz
+26865d5ddf660cbba6c0e7a640512745497c89ec233658326699ebb44607e53d xl2tpd.confd
+4b393ab50edc5e6314639ff4feab6ed8ffd13036663d515eea052522ad1c35cd xl2tpd.initd
+5efe8fc378b3fd435961c510d2dc416d775672b9531fe9c713be9024fa852063 options.l2tp"
+sha512sums="a085f05fbd6bd771eb9cd072d52fd7b6ecca33d4ae290889e1a7cbef45ea2d470e97932da263a4a1f0aab856c00482b2f170db2df91c14c4ee46933450cb6711 xl2tpd-1.3.1.tar.gz
+1d0924d71b96b6bbaccbdcb11468047d02126d01650b7379923489a39976559e10f0167848608586de689fbbf5ba7d8c584f5443f9b4731501f7bf54b1142b44 xl2tpd.confd
+fbd381823421581c012f4171a55a9bea67b9ee7c7141f31793296011d565c639e79fc9ef61ef783e134407f949da142ae1a7cf58054d4a820c762bcee662db2b xl2tpd.initd
+50e01a2e6b397a210789a2b782a4fca01d950ebe41bc5cbb1d185c2e216b722e89b9bc7affc0194089d4c54c90a49f1a773519cc96d83f2dbd8f64c49e565109 options.l2tp"
diff --git a/main/xl2tpd/xl2tpd.initd b/main/xl2tpd/xl2tpd.initd
index d56e1671e..142287c5e 100644
--- a/main/xl2tpd/xl2tpd.initd
+++ b/main/xl2tpd/xl2tpd.initd
@@ -1,20 +1,13 @@
#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/files/xl2tpd-init-r1,v 1.3 2012/12/25 20:48:00 floppym Exp $
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting xl2tpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/xl2tpd -- ${XL2TPD_OPTS}
- eend $?
-}
+command="/usr/sbin/xl2tpd"
+command_args="$XL2TPD_OPTS"
+pidfile="/var/run/xl2tpd.pid"
+required_files="/etc/xl2tpd/xl2tpd.conf"
-stop() {
- ebegin "Stopping xl2tpd"
- start-stop-daemon --stop --quiet --pidfile /var/run/xl2tpd.pid
- result=$?
- start-stop-daemon --stop --quiet --exec /usr/sbin/xl2tpd-control
- result=$(( $result + $? ))
- eend $result
+start_pre() {
+ checkpath -d /var/run/xl2tpd
}