From 340795184002c01063d9defaccd424d1785c2215 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 15 Feb 2020 08:33:34 +0100 Subject: [PATCH] libraries/argon2: Removed (added to Slackware). Signed-off-by: Matteo Bernardini --- libraries/argon2/README | 11 ---- libraries/argon2/argon2.SlackBuild | 94 ------------------------------ libraries/argon2/argon2.info | 10 ---- libraries/argon2/slack-desc | 19 ------ 4 files changed, 134 deletions(-) delete mode 100644 libraries/argon2/README delete mode 100644 libraries/argon2/argon2.SlackBuild delete mode 100644 libraries/argon2/argon2.info delete mode 100644 libraries/argon2/slack-desc diff --git a/libraries/argon2/README b/libraries/argon2/README deleted file mode 100644 index d4460f624c..0000000000 --- a/libraries/argon2/README +++ /dev/null @@ -1,11 +0,0 @@ -This is the reference C implementation of Argon2, the password-hashing -function that won the Password Hashing Competition (PHC). - -Argon2 is a password-hashing function that summarizes the state of the art -in the design of memory-hard functions and can be used to hash passwords -for credential storage, key derivation, or other applications. - -It has a simple design aimed at the highest memory filling rate and effective -use of multiple computing units, while still providing defense against -tradeoff attacks (by exploiting the cache and memory organization of the -recent processors). diff --git a/libraries/argon2/argon2.SlackBuild b/libraries/argon2/argon2.SlackBuild deleted file mode 100644 index 3f40797c36..0000000000 --- a/libraries/argon2/argon2.SlackBuild +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/sh - -# Slackware build script for argon2 - -# Copyright 2017, 2020 Mario Preksavec, Zagreb, Croatia -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=argon2 -SRCNAM=phc-winner-argon2 -VERSION=${VERSION:-20190702} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" -else - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# Fix build options and library path: -sed -i "s/CFLAGS += -std=c89 -O3 -Wall -g -Iinclude -Isrc/CFLAGS += -std=c89 -Iinclude -Isrc/g" Makefile -sed -i "s/LIBRARY_REL ?= lib.*/LIBRARY_REL = lib${LIBDIRSUFFIX}/g" Makefile -sed -i "s/CFLAGS += -march=\$(OPTTARGET)/CFLAGS += ${SLKCFLAGS}/g" Makefile - -make libs DESTDIR=$PKG -make install DESTDIR=$PKG - -install -Dm644 man/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 -install -Dm644 lib$PRGNAM.pc $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/lib$PRGNAM.pc - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG.md LICENSE README.md argon2-specs.pdf $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/argon2/argon2.info b/libraries/argon2/argon2.info deleted file mode 100644 index 2e80df058c..0000000000 --- a/libraries/argon2/argon2.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="argon2" -VERSION="20190702" -HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2/" -DOWNLOAD="https://github.com/P-H-C/phc-winner-argon2/archive/20190702.tar.gz" -MD5SUM="0f234cc21ac6cebfe373da6afa70bb1d" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Mario Preksavec" -EMAIL="mario at slackware dot hr" diff --git a/libraries/argon2/slack-desc b/libraries/argon2/slack-desc deleted file mode 100644 index 0be295ca69..0000000000 --- a/libraries/argon2/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -argon2: argon2 (password-hashing function) -argon2: -argon2: Argon2 is a password-hashing function that summarizes the state of -argon2: the art in the design of memory-hard functions and can be used to -argon2: hash passwords for credential storage, key derivation, or other -argon2: applications. -argon2: -argon2: Homepage: https://github.com/P-H-C/phc-winner-argon2/ -argon2: -argon2: -argon2: