summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlightning11412015-09-17 12:59:46 +0800
committerlightning11412015-09-17 12:59:46 +0800
commit2b98e50982403920320f0ee17daee342050df196 (patch)
treecce304a51b3d48b3e82ca7e76a8f87d9aa52492e
downloadaur-2b98e50982403920320f0ee17daee342050df196.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..965f5986fe5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = pocsuite-git
+ pkgdesc = Pocsuite is A remote vulnerability test framework developed by Knownsec Security Team. http://sebug.net
+ pkgver = 1b9ec54.20150917
+ pkgrel = 1
+ url = https://github.com/knownsec/Pocsuite
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = python2
+ provides = pocsuite
+ conflicts = pocsuite
+ options = !strip
+ source = git://github.com/knownsec/Pocsuite.git
+ md5sums = SKIP
+
+pkgname = pocsuite-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..737a1c81fbd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: lightning1141 <lightning1141@gmail.com>
+pkgname=pocsuite-git
+pkgdesc="Pocsuite is A remote vulnerability test framework developed by Knownsec Security Team. http://sebug.net"
+pkgver=1b9ec54.20150917
+pkgrel=1
+arch=('any')
+url="https://github.com/knownsec/Pocsuite"
+license=('GPL2')
+depends=('python2')
+provides=('pocsuite')
+conflicts=('pocsuite')
+makedepends=('git')
+options=('!strip')
+source=("git://github.com/knownsec/Pocsuite.git")
+md5sums=(SKIP)
+
+_repo_name=Pocsuite
+
+pkgver() {
+ cd "$srcdir/$_repo_name"
+ _author_ver=$(git describe --always | sed 's|-|.|g;s|0\.9|1.0dev|')
+ _last_commit_date=$(git log -1 --pretty='%cd' --date=short | tr -d '-')
+ echo $_author_ver.$_last_commit_date
+}
+
+package() {
+ cd "$srcdir/$_repo_name"
+
+ install -dm755 "$pkgdir/usr/bin"
+ install -dm755 "$pkgdir/opt/pocsuite"
+ sed -i "s/\#\!.*python/&2/" `grep -rl "\#\!.*python"`
+
+ cp -R --no-preserve=ownership pocsuite "$pkgdir/opt/"
+ cat > "$pkgdir/usr/bin/pocsuite" << EOF
+#!/bin/bash
+cd /opt/pocsuite
+python2 pocsuite.py "\$@"
+EOF
+ chmod 755 "$pkgdir/usr/bin/pocsuite"
+}