[arch-commits] Commit in netfilter-fullconenat/repos (4 files)

Jan Steffens heftig at archlinux.org
Thu Apr 23 10:40:10 UTC 2020


    Date: Thursday, April 23, 2020 @ 10:40:09
  Author: heftig
Revision: 617960

archrelease: copy trunk to community-testing-any

Added:
  netfilter-fullconenat/repos/community-testing-any/
  netfilter-fullconenat/repos/community-testing-any/Kbuild
    (from rev 617948, netfilter-fullconenat/trunk/Kbuild)
  netfilter-fullconenat/repos/community-testing-any/PKGBUILD
    (from rev 617948, netfilter-fullconenat/trunk/PKGBUILD)
  netfilter-fullconenat/repos/community-testing-any/netfilter-fullconenat.conf
    (from rev 617949, netfilter-fullconenat/trunk/netfilter-fullconenat.conf)

----------------------------+
 Kbuild                     |    1 +
 PKGBUILD                   |   40 ++++++++++++++++++++++++++++++++++++++++
 netfilter-fullconenat.conf |    1 +
 3 files changed, 42 insertions(+)

Copied: netfilter-fullconenat/repos/community-testing-any/Kbuild (from rev 617948, netfilter-fullconenat/trunk/Kbuild)
===================================================================
--- community-testing-any/Kbuild	                        (rev 0)
+++ community-testing-any/Kbuild	2020-04-23 10:40:09 UTC (rev 617960)
@@ -0,0 +1 @@
+obj-m = xt_FULLCONENAT.o

Copied: netfilter-fullconenat/repos/community-testing-any/PKGBUILD (from rev 617948, netfilter-fullconenat/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-23 10:40:09 UTC (rev 617960)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Edward Pacman <edward at edward-p.xyz>
+
+pkgname=netfilter-fullconenat
+pkgver=r73.0cf3b48
+pkgrel=12
+pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT"
+arch=('any')
+url="https://github.com/Chion82/netfilter-full-cone-nat"
+license=('GPL2')
+depends=("linux")
+makedepends=('linux-headers' 'git')
+source=("netfilter-fullconenat.conf" Kbuild
+        "${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat.git")
+sha256sums=('a17dfdf1fd046219daeacc60065e3a81c80c2eb2cfdf6d8068278c509577f571'
+            '7ff12ad066a68c65f23fc7e01654ca459ce3458172e3dce30f42553fa44dd7c2'
+            'SKIP')
+
+pkgver() {
+  cd "$srcdir/${pkgname}"
+  ( set -o pipefail
+    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  )
+}
+
+build() {
+  cd $pkgname
+  ln -s ../Kbuild
+  make -C /usr/src/linux M=$PWD modules
+}
+
+package() {
+  # Install modules-load.conf
+  install -Dm644 netfilter-fullconenat.conf "${pkgdir}/usr/lib/modules-load.d/netfilter-fullconenat.conf"
+
+  install -Dt "${pkgdir}/usr/lib/modules/$(</usr/src/linux/version)/kernel/net/netfilter" -m644 \
+    $pkgname/*.ko
+  find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
+}

Copied: netfilter-fullconenat/repos/community-testing-any/netfilter-fullconenat.conf (from rev 617949, netfilter-fullconenat/trunk/netfilter-fullconenat.conf)
===================================================================
--- community-testing-any/netfilter-fullconenat.conf	                        (rev 0)
+++ community-testing-any/netfilter-fullconenat.conf	2020-04-23 10:40:09 UTC (rev 617960)
@@ -0,0 +1 @@
+xt_FULLCONENAT



More information about the arch-commits mailing list