summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Babioch2018-02-07 17:26:48 +0100
committerKarol Babioch2018-02-07 17:26:48 +0100
commit97581105afbcd2c3cb704657358aca536450d470 (patch)
treed445cf906c246e80b055f6de3a96ae4904a97380
downloadaur-97581105afbcd2c3cb704657358aca536450d470.tar.gz
Initial packaging
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD22
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9f4896959d1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = dnsdiag
+ pkgdesc = DNS Diagnostics and Performance Measurement Tools
+ pkgver = 1.6.3
+ pkgrel = 1
+ url = https://dnsdiag.org/
+ arch = any
+ license = BSD
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python
+ depends = python-dnspython
+ depends = python-cymruwhois
+ source = git+https://github.com/farrokhi/dnsdiag.git#tag=v1.6.3
+ sha256sums = SKIP
+
+pkgname = dnsdiag
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..29458388115
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/*.tar.gz
+/*.tar.xz
+/pkg/
+/src/
+/dnsdiag/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9134ef527ce
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Karol Babioch <karol@babioch.de>
+
+pkgname=('dnsdiag')
+pkgver=1.6.3
+pkgrel=1
+pkgdesc='DNS Diagnostics and Performance Measurement Tools'
+arch=('any')
+url='https://dnsdiag.org/'
+license=('BSD')
+depends=('python' 'python-dnspython' 'python-cymruwhois')
+makedepends=('git' 'python-setuptools')
+source=("git+https://github.com/farrokhi/dnsdiag.git#tag=v$pkgver")
+sha256sums=('SKIP')
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+ install -Dm0644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+