summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2015-09-12 06:11:00 -0400
committerChris Severance2015-09-12 06:11:00 -0400
commit24ec3c711b53e2ac5a1b1f1c30a68ca038a0cb98 (patch)
treefef63d8e5e512b2c30d84ce6b43c11e90d4f2bb2
downloadaur-24ec3c711b53e2ac5a1b1f1c30a68ca038a0cb98.tar.gz
Initial Import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ac8a35985ae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lltdscan-git
+ pkgdesc = Scan for LLTD-enabled hosts on your network
+ pkgver = 20130204.r7.g258dbb1
+ pkgrel = 1
+ url = https://github.com/zed-0xff/lltdscan
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = libpcap
+ depends = libnet
+ provides = lltdscan
+ conflicts = lltdscan
+ source = git://github.com/zed-0xff/lltdscan.git
+ sha256sums = SKIP
+
+pkgname = lltdscan-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7e029d073a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+# <fedor@yu.wildpark.net>
+
+set -u
+_pkgbase='lltdscan'
+pkgname="${_pkgbase}-git"
+pkgver=20130204.r7.g258dbb1
+pkgrel=1
+pkgdesc='Scan for LLTD-enabled hosts on your network'
+url="https://github.com/zed-0xff/${_pkgbase}"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libpcap' 'libnet')
+makedepends=('git')
+provides=("${_pkgbase}")
+conflicts=("${_pkgbase}")
+#_verwatch=("${url}/releases" "${url#*github.com}/archive/v\(.*\)\.tar\.gz" 'l')
+source=("${url//https:/git:}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ set -u
+ cd "${pkgname%-git}"
+ printf '%s.r%s.g%s' "$(git log -1 --format='%ci' | cut -d' ' -f1 | sed -e 's:-::g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ set +u
+}
+
+build() {
+ set -u
+ cd "${pkgname%-git}"
+ make -s
+ set +u
+}
+
+package() {
+ set -u
+ cd "${pkgname%-git}"
+ install -Dpm755 'lltdscan' -t "${pkgdir}/usr/bin/"
+ install -Dpm644 'lltdscan.8' -t "${pkgdir}/usr/man/man8/"
+ set +u
+}
+set +u