PKGBUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
  2. # Contributor (Arch): Daniel Isenmann <daniel@archlinux.org>
  3. # Contributor (Arch): orelien <aurelien.foret@wanadoo.fr>
  4. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. # parabola changes and rationale:
  7. # - remove nonfree software recommendation (ServPoET)
  8. pkgname=rp-pppoe
  9. pkgver=3.15
  10. pkgrel=2
  11. pkgrel+=.parabola1
  12. pkgdesc="Roaring Penguin's Point-to-Point Protocol over Ethernet client"
  13. pkgdesc+=", without nonfree ServPoET recommendation"
  14. arch=('x86_64')
  15. arch+=('i686' 'armv7h')
  16. url="https://dianne.skoll.ca/projects/rp-pppoe"
  17. license=('GPL')
  18. depends=('ppp=2.4.9' 'sh' 'iproute2')
  19. backup=(etc/ppp/pppoe.conf etc/ppp/firewall-standalone etc/ppp/firewall-masq
  20. etc/ppp/pppoe-server-options)
  21. options=('!makeflags')
  22. install=rp-pppoe.install
  23. source=(https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-$pkgver.tar.gz{,.sig}
  24. adsl.service)
  25. source+=(libre.patch)
  26. validpgpkeys=('FC2E9B645468698FD7B21655C1842E2A126F42E0' # Dianne Skoll <dfs@roaringpenguin.com>
  27. '738E4D954052902C147D07B2685A5A5E511D30E2') # Dianne Skoll <dianne@skoll.ca>
  28. sha512sums=('a156c084e57361ab6a464c3205ffb85cf86d02f71f17f92c9567f1ab0ed300f10030832fd232084699dc842ac4891efc8c54c8165587bfc7b4c92724318a60d9'
  29. 'SKIP'
  30. '75fdb55b872e6388053aa0c1ba0b98ab9eda6b6f59a7452843cff8de5a68276be3f48dbd9a6324917254d4fe0d1b2d7442f7a9bbfa1355b6f500db13c9409089'
  31. '42865e02b8ae2168a79db9b53eb51f0fb86c53dec254d581e288f56ffc5df7035b19eacc468dd94b551d08653c880b04b2ff0ebbf291685f1593e12ed6439c65')
  32. prepare() {
  33. cd $pkgname-$pkgver
  34. ## remove nonfree software recommendation (ServPoET)
  35. rm -v SERVPOET
  36. patch -Np1 -i ../libre.patch
  37. }
  38. build() {
  39. cd $pkgname-$pkgver/src
  40. ./configure --prefix=/usr --sbindir=/usr/bin --enable-plugin
  41. make PLUGIN_DIR="/usr/lib/rp-pppoe" all rp-pppoe.so
  42. }
  43. package() {
  44. cd $pkgname-$pkgver/src
  45. make PLUGIN_DIR="/usr/lib/rp-pppoe" DESTDIR="$pkgdir" install
  46. #install -Dm755 "$srcdir/adsl" "$pkgdir/etc/rc.d/adsl"
  47. install -Dm644 "$srcdir/adsl.service" "$pkgdir/usr/lib/systemd/system/adsl.service"
  48. }