PKGBUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (artix): artoo <artoo@artixlinux.org>
  3. pkgname=nftables-openrc
  4. pkgver=20210505
  5. pkgrel=2
  6. pkgdesc="OpenRC nftables init script"
  7. arch=('any')
  8. url="https://gitea.artixlinux.org/packagesN/nftables-openrc"
  9. license=('GPL2')
  10. groups=('openrc-world')
  11. provides=('init-nftables')
  12. conflicts=('init-nftables')
  13. backup=('etc/conf.d/nftables'
  14. 'etc/conf.d/nftables-mk')
  15. source=("nftables"{,-mk}.{initd,confd}
  16. "nftables"{,-mk}.sh)
  17. sha256sums=('d99250bf4e54545d978041819b94ea27634ee1812e9b56f15f287ca68640dec8'
  18. 'd5e3077345dfea02849a70aea220396322a10c3808f0303b988119adbc56fdbd'
  19. '155be88ef6cddf95841f629264d8d4b42d15b4f7e8e572e5159e2cc17f8258b1'
  20. '5ea765fce16e2ee6a760760a1cfde9994bef24e9a788ab83750e96ac2bc9533a'
  21. 'e3b1423f877871c649e7da15352f2abb489900f05b022a87292ff92d36203b67'
  22. '041b5fb2d42d6245459fd581a3b7ad39aa898caaefb2178595606b38391fc4db')
  23. package() {
  24. depends=('openrc' 'nftables')
  25. for _i in nftables-mk nftables ; do
  26. install -Dm755 "$srcdir/$_i.initd" "$pkgdir/etc/init.d/$_i"
  27. install -Dm644 "$srcdir/$_i.confd" "$pkgdir/etc/conf.d/$_i"
  28. done
  29. install -Dm755 "$srcdir"/nftables-mk.sh "$pkgdir"/usr/lib/nftables/nftables-mk.sh
  30. install -Dm755 "$srcdir"/nftables.sh "$pkgdir"/usr/lib/nftables/nftables.sh
  31. }