summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd85f9939a7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nat-tcp-test-git
+ pkgdesc = TCP established connection idle-timeout tests for NAT implementations
+ pkgver = r25.cbb1eb5
+ pkgrel = 1
+ url = https://github.com/AndersTrier/NAT-TCP-test
+ arch = x86_64
+ arch = i686
+ arch = aarch64
+ license = unknown
+ makedepends = git
+ source = git+https://github.com/AndersTrier/NAT-TCP-test
+ sha256sums = SKIP
+
+pkgname = nat-tcp-test-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0318326ac0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: mrxx <mrxx at cyberhome dot at>
+
+pkgname=nat-tcp-test-git
+_pkgname=NAT-TCP-test
+pkgver=r25.cbb1eb5
+pkgrel=1
+pkgdesc="TCP established connection idle-timeout tests for NAT implementations"
+arch=('x86_64' 'i686' 'aarch64')
+url="https://github.com/AndersTrier/$_pkgname"
+license=('unknown')
+makedepends=('git')
+source=("git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ install -d "$pkgdir"/usr/bin
+ for file in tcp-send-test tcp-recv-test tcp-keepalive-test; do
+ install -Dm755 "$srcdir/$_pkgname/$file" "$pkgdir/usr/bin/$file"
+ done
+}
+