diff options
author | thanx | 2016-03-28 21:41:57 +0200 |
---|---|---|
committer | thanx | 2016-03-28 21:41:57 +0200 |
commit | 9651381bf57cb2d0e93cc6273d42d74997c01cfd (patch) | |
tree | 295f5a89b0cf5300cfdb893f55a8b4c677b8041d | |
download | aur-9651381bf57cb2d0e93cc6273d42d74997c01cfd.tar.gz |
Inital package
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..204687f71475 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Mon Mar 28 19:35:45 UTC 2016 +pkgbase = exploit-db-git + pkgdesc = The Exploit Database (EDB) an ultimate archive of exploits and vulnerable software - A collection of hacks + pkgver = git + pkgrel = 1 + url = https://github.com/offensive-security/exploit-database + arch = any + license = custom + depends = bash + depends = wget + depends = grep + depends = sed + depends = tar + options = !strip + source = git+https://github.com/offensive-security/exploit-database.git + md5sums = SKIP + +pkgname = exploit-db-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b61a183e4d1a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Archtrack maintainer: Evan Teitelman <teitelmanevan@gmail.com> +# Contributor: Thanx <thanxm@gmail.com> +pkgname=exploit-db-git +_gitname="exploit-database" +pkgver="git" +pkgrel=1 +pkgdesc="The Exploit Database (EDB) an ultimate archive of exploits and vulnerable software - A collection of hacks" +url="https://github.com/offensive-security/exploit-database" +license=("custom") +arch=('any') +depends=('bash' 'wget' 'grep' 'sed' 'tar') +options=('!strip') +source=("git+https://github.com/offensive-security/${_gitname}.git") +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}" + local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + printf "%s" "${ver//-/.}" +} + + +package() { + # The script + #install -Dm755 $srcdir/exploit-db.sh $pkgdir/usr/bin/exploit-db + + # The database + chmod -R 644 "$srcdir/${_gitname}" + chmod -R a+X "$srcdir/${_gitname}" + install -dm 755 "$pkgdir/usr/share" + cp -dr --no-preserve=ownership "$srcdir/${_gitname}" "$pkgdir/usr/share/exploit-db" + ln -s "/usr/share/exploit-db" "${pkgdir}/usr/share/exploitdb" +} + + + |