void-packages/srcpkgs/vpnc/template

33 lines
815 B
Bash

# Template file for 'vpnc'
pkgname=vpnc
version=0.5.3
revision=4
hostmakedepends="perl"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=' vpnc'
fi
makedepends="libgcrypt-devel"
depends="net-tools"
short_desc="Client for cisco vpn concentrator"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="https://www.unix-ag.uni-kl.de/~massar/vpnc/"
distfiles="https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-$version.tar.gz"
checksum=46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884
conf_files="
/etc/vpnc/default.conf
/etc/vpnc/vpnc-script"
do_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i 's%^my \$vpnc = .*;%my \$vpnc = "/usr/bin/vpnc";%' makeman.pl
fi
}
do_build() {
make CC=$CC ${makejobs}
}
do_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} install
}