SHARE
TWEET

Modified PKGBUILD about vuurmuur 0.8

ratamahata Dec 26th, 2019 (edited) 279 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #This PKGBUILD isn't mine. Is created by loqs in arch linux forum...
  2.  
  3. # Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
  4. # Contributor: skydrome <skydrome@i2pmail.org>
  5. # Contributor: Valere Monseur <valere_monseur@hotmail.com>
  6. # Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
  7. # Contributor: (asper, noob
  8.  
  9. pkgname=vuurmuur
  10. pkgver=0.8
  11. pkgrel=1
  12. pkgdesc='powerful front-end for iptables aimed at system-administrators who need a decent firewall, but dont have netfilter specific knowledge'
  13. arch=('i686' 'x86_64' 'armv7h')
  14. url='http://www.vuurmuur.org'
  15. license=('GPL')
  16. install='vuurmuur.install'
  17. depends=(libnetfilter_log iptables ncurses libjpeg)
  18. optdepends=('conntrack-tools: for connection tracking'
  19.             'iproute2: for traffic shapping'
  20.             'iptrafvol: for traffic volume logging')
  21. conflicts=(vuurmuur-devel)
  22. backup=('etc/vuurmuur/config.conf'
  23.         'etc/vuurmuur/modules.conf'
  24.         'etc/vuurmuur/vuurmuur_conf.conf'
  25.         'etc/vuurmuur/plugins/textdir.conf'
  26. )
  27. source=(ftp://ftp.vuurmuur.org/releases/$pkgver/${pkgname}-$pkgver.tar.gz
  28.         modules.conf
  29.         vuurmuur.rc
  30.         vuurmuur.service
  31.         vuurmuur.script)
  32. sha256sums=('ff44c6be378d629ec3c5637830f87f2a41cff8f679c1f58bad901eebc69f4f1e'
  33.             'a18d4093075f8e0a24f902780b04d03116be8c057b139a7502d8517009bd65e0'
  34.             'f1b49c9e1480f9d37ef2df779f725f926552f8713f7aacfc49e0b359e10f27a5'
  35.             '1bf559e49ac64cdf6bff9b003adbe97af1b222d59ec49242545cf13daee07a24'
  36.             'de4cee0e33d3431c985289d8de2844eeb1b1e614e69b7e3b1d6c99e8cda3aa4f')
  37.  
  38. build() {
  39.     cd ${pkgname}-${pkgver}
  40.  
  41.     ./configure --prefix=/usr --sysconfdir=/etc
  42.     make
  43. }
  44.  
  45. package() {
  46.     cd ${pkgname}-${pkgver}
  47.  
  48.     make DESTDIR="$pkgdir" install
  49.  
  50.     # make directory structure
  51.     install -dm700 "$pkgdir"/etc/$pkgname
  52.     install -dm700 "$pkgdir"/etc/${pkgname}/plugins
  53.     install -dm755 "$pkgdir"/usr/share/$pkgname/textdir/{interfaces,services,zones,rules}
  54.     install -dm700 "$pkgdir"/var/log/$pkgname
  55.  
  56.     # install daemon and log
  57.     install -Dm755 ../vuurmuur.rc "$pkgdir"/etc/rc.d/$pkgname
  58.  
  59.     # install systemd's files
  60.     install -Dm755 ../vuurmuur.script "$pkgdir"/usr/lib/systemd/scripts/vuurmuur
  61.     install -Dm644 ../vuurmuur.service "$pkgdir"/usr/lib/systemd/system/vuurmuur.service
  62.  
  63.     # install configuration
  64.     install -Dm600 "$pkgdir"/usr/share/vuurmuur/config/config.conf.sample \
  65.                     "$pkgdir"/etc/${pkgname}/config.conf
  66.     install -Dm600 ../modules.conf "$pkgdir"/etc/${pkgname}/modules.conf
  67.     install -Dm600 "$pkgdir"/usr/share/vuurmuur/config/vuurmuur_conf.conf.sample \
  68.                     "$pkgdir"/etc/${pkgname}/${pkgname}_conf.conf
  69.  
  70.     sed -i "$pkgdir"/etc/${pkgname}/config.conf \
  71.         -e 's|"/sbin/tc|"/usr/bin/tc|' \
  72.         -e 's|"/sbin/ip6tables|"/usr/bin/ip6tables|' \
  73.         -e 's|"/sbin/iptables|"/usr/bin/iptables|' \
  74.         -e 's|"/sbin/ip6tables-restore|"/usr/bin/ip6tables-restore|' \
  75.         -e 's|"/sbin/iptables-restore|"/usr/bin/iptables-restore|'
  76.  
  77.  
  78.     echo "LOCATION=\"/etc/${pkgname}/textdir\"" > "$pkgdir"/etc/${pkgname}/plugins/textdir.conf
  79.  
  80.     # default firewall setup in /usr/share
  81.     touch "$pkgdir"/usr/share/${pkgname}/textdir/rules/rules.conf
  82.     touch "$pkgdir"/usr/share/${pkgname}/textdir/rules/blocklist.conf
  83.  
  84. #    cp -R zones/*   "$pkgdir"/usr/share/${pkgname}/textdir/zones/
  85.     mv    "$pkgdir"/usr/share/${pkgname}/services/* "$pkgdir"/usr/share/${pkgname}/textdir/services/
  86. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top