diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..87005c8aa870 --- /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 000000000000..ea9b60c59d03 --- /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" +} |