pkgsrc/security/argon2/Makefile
wiz 362d11ad3d Import argon2-20151102 as security/argon2.
This is the reference C implementation of Argon2, the password-hashing
function that won the Password Hashing Competition (PHC).

You should use Argon2 whenever you need to hash passwords for
credential storage, key derivation, or other applications.

There are two main versions of Argon2, Argon2i and Argon2d. Argon2i
is the safest against side-channel attacks, while Argon2d provides
the highest resistance against GPU cracking attacks.

Argon2i and Argon2d are parametrized by

* A time cost, which defines the amount of computation realized
  and therefore the execution time, given in number of iterations
* A memory cost, which defines the memory usage, given in kibibytes
* A parallelism degree, which defines the number of parallel threads
2015-11-05 08:50:33 +00:00

25 lines
809 B
Makefile

# $NetBSD: Makefile,v 1.1 2015/11/05 08:50:33 wiz Exp $
DISTNAME= phc-winner-argon2-20151102
PKGNAME= ${DISTNAME:S/phc-winner-//}
CATEGORIES= security
MASTER_SITES= https://password-hashing.net/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/p-h-c/phc-winner-argon2
COMMENT= Password hash Argon2
LICENSE= cc0-1.0-universal
WRKSRC= ${WRKDIR}/${DISTNAME:C/-2[0-9]*//}
USE_TOOLS+= gmake
TEST_TARGET= test
INSTALLATION_DIRS= bin lib share/doc/argon2
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/argon2 ${DESTDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libargon2.* ${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/argon2-specs.pdf ${DESTDIR}${PREFIX}/share/doc/argon2
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/argon2
.include "../../mk/bsd.pkg.mk"