aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2022-10-19 18:40:52 +0200
committerlns <matzeton@googlemail.com>2022-10-19 18:40:52 +0200
commitcd22d5605639ee6151b23c36d9f856e150d81769 (patch)
tree6bb46c6a8f466b279927590ee87ce54b5af18e99 /packages
parent49352698a031d5816d04b802ad8e0386a8a73e30 (diff)
Add ArchLinux PKGBUILD.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/archlinux/PKGBUILD27
-rw-r--r--packages/archlinux/README.md4
2 files changed, 31 insertions, 0 deletions
diff --git a/packages/archlinux/PKGBUILD b/packages/archlinux/PKGBUILD
new file mode 100644
index 000000000..c7bdf673f
--- /dev/null
+++ b/packages/archlinux/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Toni Uhlig <toni@impl.cc>
+
+pkgname=nDPId-testing
+pkgver=1.0
+pkgrel=1
+pkgdesc="Tiny nDPI based deep packet inspection daemons / toolkit."
+arch=('i686' 'x86_64')
+url="https://github.com/utoni/nDPId"
+license=('GPL3')
+options=()
+
+build() {
+ cd "${srcdir}/../../.."
+ mkdir -p build-archlinux && cd build-archlinux
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX="/usr/local" \
+ -DBUILD_EXAMPLES=ON \
+ -DBUILD_NDPI=ON \
+ -DENABLE_SANITIZER=ON
+ make VERBOSE=1
+}
+
+package() {
+ cd "${srcdir}/../../../build-archlinux"
+ make DESTDIR="${pkgdir}/" install
+}
diff --git a/packages/archlinux/README.md b/packages/archlinux/README.md
new file mode 100644
index 000000000..62c30cfb6
--- /dev/null
+++ b/packages/archlinux/README.md
@@ -0,0 +1,4 @@
+HowTo use this
+==============
+
+Change to this directory and simply run `makepkg`, that's it.