diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..195b00c52d67 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = nd-git + pkgdesc = A network diagnostics utility + pkgver = 20110401 + pkgrel = 1 + url = https://github.com/benruijl/nd + arch = i686 + arch = x86_64 + license = GPLv3 + makedepends = git + depends = iproute2 + depends = dnsutils + depends = diffutils + +pkgname = nd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3b10a555e6bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=nd-git +pkgver=20110401 +pkgrel=1 +pkgdesc="A network diagnostics utility" +arch=('i686' 'x86_64') +url="https://github.com/benruijl/nd" +license=('GPLv3') +depends=('iproute2' 'dnsutils' 'diffutils') +makedepends=('git') + +_gitroot="git://github.com/benruijl/nd.git" +_gitname="nd" + +build() { + cd "$srcdir" + + msg "Connecting to GIT server...." + + if [ -d $_gitname ]; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname + cd $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting install..." + + install -D -m755 nd.sh $startdir/pkg/usr/bin/nd +} |