PKGBUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Artix): artoo <artoo@artixlinux.org>
  3. pkgname=iptables-openrc
  4. pkgver=20210505
  5. pkgrel=2
  6. pkgdesc="OpenRC iptables init script"
  7. arch=('any')
  8. url="https://gitea.artixlinux.org/artixlinux/packagesI/iptables-openrc"
  9. license=('GPL2')
  10. groups=('openrc-system')
  11. provides=('init-iptables' 'ebtables-openrc')
  12. conflicts=('init-iptables' 'ebtables-openrc')
  13. backup=('etc/conf.d/iptables'
  14. 'etc/conf.d/ip6tables')
  15. source=("iptables.confd"
  16. "ip6tables.confd"
  17. "iptables.initd"
  18. "ebtables.confd"
  19. "ebtables.initd")
  20. sha256sums=('7e2341211ca14997b7a8a1f930f94db855291af597c568f680f80031c20d45b6'
  21. 'c1f5bb4ea36bb7c0a7b7abeb8169cb8547f43d348faef70c61f2daa9033c318b'
  22. 'e5c6164a0ffa24501d5b3fa6425f0e24a2da73891b4dd62a25b083f9f5b731af'
  23. 'c05a6c1ba6add3881068584074681b04bfb2ad43284d7bdd67f47f3da842de58'
  24. '6eb00de3cf18f36f909cb95f1aa345de16d1cd9c8b92acb944691ac720bf3cb5')
  25. package() {
  26. depends=('openrc' 'iptables')
  27. for f in iptables ebtables; do
  28. install -Dm755 "${srcdir}"/"$f".initd "${pkgdir}"/etc/init.d/"$f"
  29. install -Dm644 "${srcdir}"/"$f".confd "${pkgdir}"/etc/conf.d/"$f"
  30. done
  31. install -Dm644 "${srcdir}"/ip6tables.confd "${pkgdir}"/etc/conf.d/ip6tables
  32. install -Dm755 "${srcdir}"/iptables.initd "${pkgdir}"/etc/init.d/ip6tables
  33. }