summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Devlamynck2015-06-10 20:46:07 +0200
committerXavier Devlamynck2015-06-10 20:46:07 +0200
commit10c34ca59024d4c6bbc872e781eac02dcae3071c (patch)
tree4e2539754f16160f3269c69fcdcdeff3ed71897c
downloadaur-10c34ca59024d4c6bbc872e781eac02dcae3071c.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD27
-rw-r--r--sipvicious.install26
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..968ec9f21e0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = sipvicious
+ pkgdesc = Tools for auditing SIP devices
+ pkgver = 0.2.8
+ pkgrel = 1
+ url = http://blog.sipvicious.org
+ install = sipvicious.install
+ arch = i686
+ arch = x86_64
+ license = GPLv2
+ depends = python2
+ conflicts = sipvicious-svn
+ source = http://sipvicious.googlecode.com/files/sipvicious-0.2.8.tar.gz
+ sha1sums = a243ee01a23d7a6305d170213f2a8675820a0df6
+
+pkgname = sipvicious
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8febf273419
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
+
+pkgname=sipvicious
+pkgver=0.2.8
+pkgrel=1
+pkgdesc="Tools for auditing SIP devices"
+arch=('i686' 'x86_64')
+url="http://blog.sipvicious.org"
+license=('GPLv2')
+depends=('python2')
+install=sipvicious.install
+source=("http://sipvicious.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
+conflicts=('sipvicious-svn')
+sha1sums=('a243ee01a23d7a6305d170213f2a8675820a0df6')
+
+build() {
+ msg "No build..."
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ chmod 755 *.py
+ sed -i "s:/usr/bin/env python:/usr/bin/env python2:" *.py
+ install -d -m 755 ${pkgdir}/usr/bin
+ install -d -m 755 ${pkgdir}/usr/share
+ mv ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/usr/share/${pkgname}
+}
diff --git a/sipvicious.install b/sipvicious.install
new file mode 100644
index 00000000000..1f30df42fb7
--- /dev/null
+++ b/sipvicious.install
@@ -0,0 +1,26 @@
+post_install() {
+ _pkgprogs=('pptable.py' 'regen.py' 'svcrack.py' 'svcrash.py' 'svfphelper.py' 'svhelper.py' 'svlearnfp.py' 'svmap.py' 'svreport.py' 'svwar.py')
+
+ for _prog in ${_pkgprogs[@]}
+ do
+ ln -s "/usr/share/sipvicious/$_prog" "/usr/bin/${_prog%%.*}"
+ done
+}
+
+post_upgrade() {
+ _pkgprogs=('pptable' 'regen' 'svcrack' 'svcrash' 'svfphelper' 'svhelper' 'svlearnfp' 'svmap' 'svreport' 'svwar')
+
+ for _prog in ${_pkgprogs[@]}
+ do
+ rm "/usr/bin/$_prog"
+ done
+}
+
+post_remove() {
+ _pkgprogs=('pptable' 'regen' 'svcrack' 'svcrash' 'svfphelper' 'svhelper' 'svlearnfp' 'svmap' 'svreport' 'svwar')
+
+ for _prog in ${_pkgprogs[@]}
+ do
+ rm "/usr/bin/$_prog"
+ done
+}