27 lines
886 B
Bash
27 lines
886 B
Bash
# Template file for 'xl2tpd'
|
|
pkgname=xl2tpd
|
|
version=1.3.12
|
|
revision=1
|
|
makedepends="libpcap-devel"
|
|
short_desc="Open source implementation of the Layer 2 Tunnelling Protocol"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.xelerance.com/services/software/xl2tpd/"
|
|
#changelog="https://github.com/xelerance/xl2tpd/blob/master/CHANGES"
|
|
distfiles="https://github.com/xelerance/xl2tpd/archive/v${version}.tar.gz"
|
|
checksum=6f0ac50a76500d5cc56a67451b61e5f561b3309357176b39deabb1705e8745fd
|
|
|
|
conf_files="
|
|
/etc/${pkgname}/${pkgname}.conf
|
|
/etc/ppp/options.l2tp"
|
|
|
|
do_build() {
|
|
make LDFLAGS="${LDFLAGS}" KERNELSRC="${XBPS_CROSS_BASE}/usr" ${makejobs}
|
|
}
|
|
do_install() {
|
|
make DESTDIR="${DESTDIR}" PREFIX=/usr SBINDIR="${DESTDIR}/usr/bin" install
|
|
vsv xl2tpd
|
|
vinstall examples/xl2tpd.conf 644 etc/xl2tpd
|
|
vinstall "${FILESDIR}/options.l2tp" 644 etc/ppp
|
|
}
|