summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSyu Takayama2018-12-08 11:33:24 +0900
committerSyu Takayama2018-12-08 11:33:24 +0900
commit35d96ef356f45dbd747a02d0c85a614d0bcc7245 (patch)
treece2d31541f20e2cf0c8adcb3745a7b2aa2bed236
downloadaur-hashpump-git.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..87005c8aa87
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = hashpump-git
+ pkgdesc = A tool to exploit the hash length extension attack in various hashing algorithms
+ pkgver = 1.2.0.r8.314268e
+ pkgrel = 1
+ url = https://github.com/bwall/HashPump
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = gcc
+ depends = openssl
+ provides = hashpump
+ conflicts = hashpump
+ source = hashpump::git+https://github.com/bwall/HashPump.git
+ md5sums = SKIP
+
+pkgname = hashpump-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ea9b60c59d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Syu Takayama <syu.takayama@gmail.com>
+pkgname=hashpump-git
+pkgver=1.2.0.r8.314268e
+pkgrel=1
+pkgdesc="A tool to exploit the hash length extension attack in various hashing algorithms"
+arch=("i686" "x86_64")
+url="https://github.com/bwall/HashPump"
+license=('MIT')
+depends=('openssl')
+makedepends=('git' 'gcc')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}::git+https://github.com/bwall/HashPump.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long --tags | sed 's/v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -D -m644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
+ install -D -m755 hashpump "${pkgdir}/usr/bin/hashpump"
+}