[arch-commits] Commit in iptables/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Mar 27 11:13:05 UTC 2017


    Date: Monday, March 27, 2017 @ 11:13:04
  Author: bpiotrowski
Revision: 291726

upgpkg: iptables 1.6.1-1

enable BPF compiler

Modified:
  iptables/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-27 11:01:18 UTC (rev 291725)
+++ PKGBUILD	2017-03-27 11:13:04 UTC (rev 291726)
@@ -3,15 +3,15 @@
 # Contributor: Thomas Baechler <thomas at archlinux.org>
 
 pkgname=iptables
-pkgver=1.6.0
+pkgver=1.6.1
 pkgrel=1
 pkgdesc='Linux kernel packet control tool'
-arch=('i686' 'x86_64')
-license=('GPL2')
+arch=(i686 x86_64)
+license=(GPL2)
 url='http://www.netfilter.org/projects/iptables/index.html'
-depends=('glibc' 'bash' 'libnftnl')
-makedepends=('linux-api-headers')
-source=(http://www.netfilter.org/projects/iptables/files/${pkgname}-${pkgver}.tar.bz2{,.sig} \
+depends=(glibc bash libnftnl libpcap)
+makedepends=(linux-api-headers)
+source=(http://www.netfilter.org/projects/iptables/files/${pkgname}-${pkgver}.tar.bz2{,.sig}
         empty.rules
         simple_firewall.rules
         empty-filter.rules
@@ -22,7 +22,7 @@
         iptables.service
         ip6tables.service
         iptables-flush)
-sha1sums=('21a694e75b0d6863cc001f85fb15915d12b8cc22'
+sha1sums=('b2592490ca7a6c2cd0f069e167a4337c86acdf91'
           'SKIP'
           '83b3363878e3660ce23b2ad325b53cbd6c796ecf'
           'f085a71f467e4d7cb2cf094d9369b0bcc4bab6ec'
@@ -37,7 +37,7 @@
 validpgpkeys=('C09DB2063F1D7034BA6152ADAB4655A126D292E4') # Netfilter Core Team
 
 prepare() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
 
   # use system one
   rm include/linux/types.h
@@ -44,32 +44,38 @@
 }
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
 
- ./configure --prefix=/usr \
-     --libexecdir=/usr/lib/iptables --sysconfdir=/etc \
-     --with-xtlibdir=/usr/lib/iptables \
-     --enable-devel --enable-shared \
-     --sbindir=/usr/bin
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --sbindir=/usr/bin \
+    --libexecdir=/usr/lib/iptables \
+    --with-xtlibdir=/usr/lib/iptables \
+    --enable-bpf-compiler \
+    --enable-devel \
+    --enable-shared
+
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 
-  make DESTDIR="${pkgdir}" install
+  cd "$srcdir"
+  install -Dm644 empty.rules "${pkgdir}"/etc/iptables/empty.rules
+  install -Dm644 simple_firewall.rules "${pkgdir}"/etc/iptables/simple_firewall.rules
 
-  cd "${srcdir}"
-  install -D -m644 empty.rules "${pkgdir}"/etc/iptables/empty.rules
-  install -D -m644 simple_firewall.rules "${pkgdir}"/etc/iptables/simple_firewall.rules
-
-  mkdir -p "${pkgdir}"/var/lib/{iptables,ip6tables}
+  install -d "$pkgdir"/var/lib/{iptables,ip6tables}
   install -m644 empty-{filter,mangle,nat,raw,security}.rules "${pkgdir}"/var/lib/iptables
   install -m644 empty-{filter,mangle,nat,raw,security}.rules "${pkgdir}"/var/lib/ip6tables
 
   # install systemd files
-  install -Dm644 ${srcdir}/iptables.service ${pkgdir}/usr/lib/systemd/system/iptables.service
-  install -Dm644 ${srcdir}/ip6tables.service ${pkgdir}/usr/lib/systemd/system/ip6tables.service
-  install -Dm755 ${srcdir}/iptables-flush ${pkgdir}/usr/lib/systemd/scripts/iptables-flush
+  install -Dm644 iptables.service \
+    "$pkgdir/usr/lib/systemd/system/iptables.service"
+  install -Dm644 ip6tables.service \
+    "$pkgdir/usr/lib/systemd/system/ip6tables.service"
+  install -Dm755 iptables-flush \
+    "$pkgdir/usr/lib/systemd/scripts/iptables-flush"
 }
 


More information about the arch-commits mailing list