smlinux/net/ppp/smbuild
PktSurf 974b8a036c Upgraded net/ppp to 2.5.1
Upgraded net/rp-pppoe to 4.0
2024-11-09 20:38:52 +05:30

55 lines
No EOL
1.6 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ppp
version=2.5.1
build=1sml
homepage="https://github.com/ppp-project/ppp"
download="https://github.com/ppp-project/ppp/archive/refs/tags/ppp-$version.tar.gz"
desc="PPP daemon for establishing connectivity over a network"
requires="libpcap openssl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/musl-fix-headers.patch
applypatch $srcdir/fix-log-dir.patch
}
build() {
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--with-runtime-dir=/var/run/ppp \
--with-logfile-dir=/var/log/ppp \
--enable-cbcp \
--enable-microsoft-extensions \
--enable-multilink \
--enable-peap \
--disable-systemd
make
make install DESTDIR="$pkg"
cp README* $pkgdocs/
install -Dm 644 include/net/ppp_defs.h $pkg/usr/include/net/ppp_defs.h
mkdir -p $pkg/etc/ppp
cp etc.ppp/* $srcdir/ip-* $pkg/etc/ppp/
cp scripts/{pon,poff} $pkg/usr/bin/
install -Dm 644 scripts/pon.1 $pkg/usr/share/man/man1/pon.1
mkfinalpkg
}
sha512sums="
cd302419a0927c46ca49ad452187b7396391aca6b8550f0e4510415a2124dc27eedfa47b16860eb41b7a1f146e5388deffd6a368ba4d1aa55805ef8a66a9591d ppp-2.5.1.tar.lz
3d2c9113ed2350e66192a49d4b3c25268ef542825a2324ddfb65263bb8b2082db18ed9e8d28c1ce65c3ec5805b6a73cba2c4dbae402f02b6123684f527baba97 fix-log-dir.patch
98e82ec36650be95febebe3b71175f768b66958855176362e986024adb501af8c511f5ece35692f6de4c9d3bec8fda61b217a5891645e8ac78fc7efbd93fc265 musl-fix-headers.patch
"