summaryrefslogtreecommitdiff
path: root/pcr/uftp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2016-08-20 11:30:03 -0400
committerGaming4JC <g4jc@openmailbox.org>2016-08-20 11:30:03 -0400
commit3708a7d7b6616592390b5ed323d54dcade87367f (patch)
tree3f3f35a3a8bbcfbf3493afd2140bd43fe00b3e83 /pcr/uftp
parent0c1a181f22e485b51fabe5aae17d894206824f2e (diff)
downloadabslibre-3708a7d7b6616592390b5ed323d54dcade87367f.tar.gz
abslibre-3708a7d7b6616592390b5ed323d54dcade87367f.tar.bz2
abslibre-3708a7d7b6616592390b5ed323d54dcade87367f.zip
adopting and updating uftp
Diffstat (limited to 'pcr/uftp')
-rw-r--r--pcr/uftp/PKGBUILD34
1 files changed, 15 insertions, 19 deletions
diff --git a/pcr/uftp/PKGBUILD b/pcr/uftp/PKGBUILD
index 544889245..3ea5bde06 100644
--- a/pcr/uftp/PKGBUILD
+++ b/pcr/uftp/PKGBUILD
@@ -1,29 +1,25 @@
-# Maintainer (Arch): Markus Jochim <ich@markusjochim.de>
+# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
+
pkgname=uftp
-pkgver=4.6
+pkgver=4.9.2
pkgrel=1
-pkgdesc="Multicast FTP software"
-arch=('i686' 'x86_64' 'mips64el')
-depends=('openssl')
+pkgdesc="UFTP is an encrypted multicast file transfer program, designed to securely, reliably, and efficiently transfer files to multiple receivers simultaneously."
+arch=(i686 x86_64)
url="http://uftp-multicast.sourceforge.net/"
license=('GPL3')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}-multicast/${pkgname}-${pkgver}.tar)
-md5sums=('23345c287cc909fbdf6b7457d28817e1')
-
-prepare() {
- cd "$srcdir/${pkgname}-${pkgver}/"
- sed -e "s,/bin,/usr/bin,g" \
- -e "s,/usr/sbin,/usr/bin,g" \
- -i makefile
-}
+makedepends=('gcc' 'openssl')
+source=("http://downloads.sourceforge.net/project/uftp-multicast/source-tar/$pkgname-$pkgver.tar.gz")
+sha512sums=('9a95e6a4c8b58a157353e43cfd4ca3dcccfced700e02b7d9d119a09f9e652474d5ffadd04a3dc7b939b94c7d58fbe186e11e581813b5417934988bfa021f0a62')
build() {
- cd "$srcdir/${pkgname}-${pkgver}/"
- make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
+ whirlpoolsum=('92182508fd707e68838af3904355f7eb0edc777a8029f756c485c407e447a8aac3d0611fe64b68ca8d061f1dc5040a8334fa219c298416ab25e5daecdd9c8e25')
+ [[ "$(openssl dgst -r -whirlpool $pkgname-$pkgver.tar.gz | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match.
+ cd "$srcdir/$pkgname-$pkgver/"
+ make all || return 1
}
package() {
- cd "$srcdir/${pkgname}-${pkgver}/"
- make DESTDIR="${pkgdir}" install
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="$pkgdir/" install
+ mv $pkgdir/bin $pkgdir/usr/bin/
}
-