summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD42
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dfff892e972
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = dnscap-git
+ pkgdesc = Network capture utility designed specifically for DNS traffic
+ pkgver = v1.12.0.r19.46b5870
+ pkgrel = 1
+ url = https://www.dns-oarc.net/tools/dnscap
+ arch = x86_64
+ license = ISC
+ makedepends = git
+ depends = ldns
+ depends = libpcap
+ depends = libyaml
+ depends = openssl
+ depends = zlib
+ provides = dnscap
+ conflicts = dnscap
+ source = git+https://github.com/DNS-OARC/dnscap.git
+ md5sums = SKIP
+
+pkgname = dnscap-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5b91834b9c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Petr Spacek <pspacek@isc.org>
+pkgname=dnscap-git
+pkgver=v1.12.0.r19.46b5870
+pkgrel=1
+pkgdesc="Network capture utility designed specifically for DNS traffic"
+arch=(x86_64)
+url="https://www.dns-oarc.net/tools/dnscap"
+license=('ISC')
+depends=(ldns libpcap libyaml openssl zlib)
+makedepends=(git)
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/DNS-OARC/dnscap.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ git submodule update --recursive --init
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/${pkgname%-git}"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}