123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- set -e
- program=rp-pppoe
- version=3.15
- release=1
- pkgcategory=networking
- tarname=${program}-${version}.tar.gz
- fetch=https://dianne.skoll.ca/projects/rp-pppoe/download/$tarname
- description="
- PPP over Ethernet (xDSL support).
- PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by many
- DSL Internet Service Providers. RP-PPPoE is a free PPPoE client, relay
- and server for GNU/Linux.
- "
- homepage=https://dianne.skoll.ca/projects/rp-pppoe/
- license=GPLv2+
- docs="README SERVPOET doc/*"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- patch -Np1 -i "${worktree}/patches/rp-pppoe/musl-fix.patch"
-
- chmod -R u+w,go-w,a+rX-s .
- cd src
- ./configure CPPFLAGS="$QICPPFLAGS" \
- CFLAGS="$QICFLAGS -D_GNU_SOURCE -fno-strict-aliasing" \
- LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-plugin \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1 PLUGIN_DIR="/usr/libexec/rp-pppoe" all rp-pppoe.so
- make -j${jobs} PLUGIN_DIR="/usr/libexec/rp-pppoe" DESTDIR="$destdir" install
- cd ..
-
- touch "${destdir}/etc/ppp/.graft-config"
-
- ln -s pppoe-stop "${destdir}/usr/sbin/adsl-stop"
- ln -s pppoe-start "${destdir}/usr/sbin/adsl-start"
- ln -s pppoe-start.8 "${destdir}/${mandir}/man8/adsl-start.8"
- ln -s pppoe-stop.8 "${destdir}/${mandir}/man8/adsl-stop.8"
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|