void-packages/srcpkgs/pptpclient/template

24 lines
726 B
Bash
Raw Normal View History

2015-09-14 16:29:51 +02:00
# Template file for 'pptpclient'
pkgname=pptpclient
version=1.8.0
revision=1
wrksrc=pptp-${version}
build_style=gnu-makefile
hostmakedepends="perl"
depends="ppp iproute2"
short_desc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="http://pptpclient.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
checksum=e39c42d933242a8a6dd8600a0fa7f0a5ec8f066d10c4149d8e81a5c68fe4bbda
pre_build() {
sed -i Makefile \
-e 's;PPPD =.*;PPPD=/usr/bin/pppd;' \
-e 's;IP =.*;IP=/usr/bin/ip;' \
-e 's;CFLAGS =;CFLAGS?=;' \
-e 's;LDFLAGS =;LDFLAGS?=;' \
-e 's;BINDIR=.*;BINDIR=$(DESTDIR)/usr/bin;'
}