Skip to content
Snippets Groups Projects
Commit 2437d87e authored by Shiz ...'s avatar Shiz ...
Browse files

testing/vpnc: move from unmaintained and modernize

parent f57e5a3d
No related branches found
No related tags found
No related merge requests found
......@@ -7,49 +7,34 @@ pkgdesc="IPSec VPN client compatible with Cisco equipment"
url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
arch="all"
license="GPLv2+"
depends=
makedepends="libgcrypt-dev perl"
install=""
subpackages="$pkgname-doc"
source="http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-$pkgver.tar.gz
working.patch
vpnc.initd
vpnc.confd"
builddir="$srcdir"/vpnc-$pkgver
_builddir="$srcdir"/vpnc-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
build() {
cd "$builddir"
make PREFIX=/usr
}
build() {
cd "$_builddir"
make PREFIX=/usr || return 1
check() {
cd "$builddir"
./vpnc --version
}
package() {
cd "$_builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/vpnc.initd \
"$pkgdir"/etc/init.d/vpnc || return 1
"$pkgdir"/etc/init.d/vpnc
install -m644 -D "$srcdir"/vpnc.confd \
"$pkgdir"/etc/conf.d/vpnc || return 1
"$pkgdir"/etc/conf.d/vpnc
}
md5sums="4378f9551d5b077e1770bbe09995afb3 vpnc-0.5.3.tar.gz
b140eec1e05a91fefbf0dad7cfdc7c4c working.patch
481ddc83b829de62f459f9b94e0c334b vpnc.initd
5c9fe863f70cc5262c095012b4bcc163 vpnc.confd"
sha256sums="46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884 vpnc-0.5.3.tar.gz
1085f41ba75cbc5e281c6a11724c56fb0d9f844488ab13b40b067e32af98d263 working.patch
aa423cd0a52183e0bdec8b599d52555e4f5c22573cee68bd6b25ff42be129fa5 vpnc.initd
89a14f4d11b7fb156dd823e5d2c15edd0d5ca649bd16460ef6350cfe728b4a88 vpnc.confd"
sha512sums="fd1251d200c3826ebfd7022683e38912f30c2a95fbc51259bcd1fdf0570ef3c53cd842003c117a770657f7f8ebb00ceffeea91ced0c3f83dd9c1ca0488519ea3 vpnc-0.5.3.tar.gz
6c3eb976d3877b02c751c310f835bc864e4868d167bbaf9f365b9b728d732cc018591e9a8dfc5a4277b01daf070b74f3bb7e67e175b90ee495fecec1a049e29f working.patch
5dbd83a06608714adf5ae5f021a7142c26cdd94fcd89591b029861cf87efdd4fcb783eb1365ad8fcc3edc915c3d2ddb32921662f9c2540994a54972847fa4781 vpnc.initd
d20091a67ccd3b8e9f31ca47c49577ff3cd5bf6ba9ef7bcd9f03231d87fa64d978c60ab69c67bbafdc18d6474d932d6ec68de02d13bea41ae6a7d31b845635e9 vpnc.initd
1254f687dcd9822becfcccabbb34d8343d715d70247dbf4b5e018835fff24b33f5272368f77199d697c8d11d913182b1f756d5e08a46b2057849779f09b19633 vpnc.confd"
File moved
#!/sbin/runscript
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment