commit fe21bc9806959eb97da2816e571994d822ecbf1a Author: Tim Biermann <tbier@posteo.de> Date: Sun Jan 9 03:15:05 2022 +0100 rhash: initial commit, version 1.4.2 diff --git a/rhash/.footprint b/rhash/.footprint new file mode 100644 index 00000000..e165e954 --- /dev/null +++ b/rhash/.footprint @@ -0,0 +1,37 @@ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/rhashrc +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +lrwxrwxrwx root/root usr/bin/ed2k-link -> rhash +lrwxrwxrwx root/root usr/bin/edonr256-hash -> rhash +lrwxrwxrwx root/root usr/bin/edonr512-hash -> rhash +lrwxrwxrwx root/root usr/bin/gost12-256-hash -> rhash +lrwxrwxrwx root/root usr/bin/gost12-512-hash -> rhash +lrwxrwxrwx root/root usr/bin/has160-hash -> rhash +lrwxrwxrwx root/root usr/bin/magnet-link -> rhash +-rwxr-xr-x root/root usr/bin/rhash +lrwxrwxrwx root/root usr/bin/sfv-hash -> rhash +lrwxrwxrwx root/root usr/bin/tiger-hash -> rhash +lrwxrwxrwx root/root usr/bin/tth-hash -> rhash +lrwxrwxrwx root/root usr/bin/whirlpool-hash -> rhash +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/rhash.h +-rw-r--r-- root/root usr/include/rhash_torrent.h +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/librhash.a +-rwxr-xr-x root/root usr/lib/librhash.so.0 +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +lrwxrwxrwx root/root usr/share/man/man1/ed2k-link.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/edonr256-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/edonr512-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/gost12-256-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/gost12-512-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/has160-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/magnet-link.1.gz -> rhash.1.gz +-rw-r--r-- root/root usr/share/man/man1/rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/sfv-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/tiger-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/tth-hash.1.gz -> rhash.1.gz +lrwxrwxrwx root/root usr/share/man/man1/whirlpool-hash.1.gz -> rhash.1.gz diff --git a/rhash/.signature b/rhash/.signature new file mode 100644 index 00000000..9262bfb8 --- /dev/null +++ b/rhash/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/core.pub +RWRJc1FUaeVeqglRrAMNKIb0sq1Ejj03hHWs8vYSxB1O2mhhQsHAwwoGTeIgoNr2Kchms6Zw5x5/k0yHGINY/BPGZRXy7DC7Xwo= +SHA256 (Pkgfile) = 233efb008f9f3f9c626f176c8d1ec6def50e90807339501a421d250d702ec54e +SHA256 (.footprint) = 40cec7339dc3360a549a450a1567e1f6f6339151861ad348ddb34d0b3d7fa8f8 +SHA256 (rhash-1.4.2.tar.gz) = 600d00f5f91ef04194d50903d3c79412099328c42f28ff43a0bdb777b00bec62 diff --git a/rhash/Pkgfile b/rhash/Pkgfile new file mode 100644 index 00000000..37088692 --- /dev/null +++ b/rhash/Pkgfile @@ -0,0 +1,25 @@ +# Description: Great utility for computing hash sums +# URL: https://github.com/rhash/RHash +# Maintainer: CRUX System Team, core-ports at crux dot nu + +name=rhash +version=1.4.2 +release=1 +source=(https://github.com/rhash/RHash/archive/v$version/$name-$version.tar.gz) + +build() { + cd RHash-$version + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-lib-static \ + --enable-lib-shared \ + --extra-cflags="$CFLAGS" \ + --extra-ldflags="$LDFLAGS" + make + make test test-lib + + make DESTDIR=$PKG install + + chmod 755 $PKG/usr/lib/librhash.so.0 $PKG/usr/lib/librhash.a +}