void-packages/srcpkgs/ppp/template

75 lines
1.9 KiB
Bash

# Template file for 'ppp'
# rev-bump:
# * NetworkManager
# * NetworkManager-pptp
# * NetworkManager-l2tp
# When update this package
pkgname=ppp
version=2.5.0
revision=1
build_style=gnu-configure
configure_args="--enable-cbcp"
hostmakedepends="pkg-config"
makedepends="libpcap-devel openssl-devel"
short_desc="PPP (Point-to-Point Protocol) daemon"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, LGPL-2.0-or-later, GPL-2.0-or-later, Public Domain"
homepage="https://ppp.samba.org/"
distfiles="https://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
checksum=5cae0e8075f8a1755f16ca290eb44e6b3545d3f292af4da65ecffe897de636ff
make_dirs="
/etc/ppp/ipv6-down.d 0755 root root
/etc/ppp/peers 0755 root root"
conf_files="
/etc/ppp/ip-up
/etc/ppp/ip-down
/etc/ppp/ipv6-up
/etc/ppp/ipv6-down
/etc/ppp/options
/etc/ppp/eaptls-client
/etc/ppp/eaptls-server
/etc/ppp/chap-secrets
/etc/ppp/pap-secrets"
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
post_install() {
case "$XBPS_TARGET_MACHINE" in
*-musl) vinstall include/net/ppp_defs.h 644 usr/include/net;;
esac
chmod 755 ${DESTDIR}/usr/lib/pppd/${version}/*.so
rm -f "${DESTDIR}/etc/ppp/openssl.cnf"
vinstall ${FILESDIR}/options 644 etc/ppp
vinstall ${FILESDIR}/ip-up 755 etc/ppp
vinstall ${FILESDIR}/ip-down 755 etc/ppp
vinstall ${FILESDIR}/ipv6-up 755 etc/ppp
vinstall ${FILESDIR}/ipv6-down 755 etc/ppp
vinstall ${FILESDIR}/ip-up.d.dns.sh 755 etc/ppp/ip-up.d 00-dns.sh
vinstall ${FILESDIR}/ip-down.d.dns.sh 755 etc/ppp/ip-down.d 00-dns.sh
vinstall ${FILESDIR}/ipv6-up.d.iface-config.sh 755 etc/ppp/ipv6-up.d 00-iface-config.sh
vbin scripts/pon
vman scripts/pon.1
vbin scripts/poff
vbin scripts/plog
head -n67 pppd/main.c > LICENSE
vlicense LICENSE
}
ppp-devel_package() {
depends="libpcap-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/pppd/${version}/*.la"
}
}