public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/files/, app-crypt/argon2/
@ 2016-11-25 22:08 Patrice Clement
  0 siblings, 0 replies; 2+ messages in thread
From: Patrice Clement @ 2016-11-25 22:08 UTC (permalink / raw
  To: gentoo-commits

commit:     739e63516cc43a6f25ae13ab9eb7b0238adf1ee4
Author:     Simon Levermann <simon <AT> slevermann <DOT> de>
AuthorDate: Sat Oct 15 13:34:37 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Nov 25 22:07:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=739e6351

app-crypt/argon2: new ebuild.

Argon2 is a password hashing tool and library that won the Password Hashing
Competition (https://password-hashing.net/).

Gentoo-Bug: https://bugs.gentoo.org/597062
Closes: https://github.com/gentoo/gentoo/pull/2561

 app-crypt/argon2/Manifest                          |  1 +
 app-crypt/argon2/argon2-20160821.ebuild            | 30 +++++++++++++++
 .../argon2-20160821-makefile-install-target.patch  | 44 ++++++++++++++++++++++
 .../argon2-20160821-makefile-soname-symlinks.patch | 28 ++++++++++++++
 app-crypt/argon2/metadata.xml                      | 13 +++++++
 5 files changed, 116 insertions(+)

diff --git a/app-crypt/argon2/Manifest b/app-crypt/argon2/Manifest
new file mode 100644
index 00000000..2a1ad7d
--- /dev/null
+++ b/app-crypt/argon2/Manifest
@@ -0,0 +1 @@
+DIST argon2-20160821.tar.gz 1170019 SHA256 f81456ae31337a13a1a1b8ffe994d71ace741833a97a75f0c1a76259639bf3b8 SHA512 e5b7484a2f3212d78481e7994457d69e5f42d6132b31f86d8de106e8e3fa8ffa3b7244fd74b63d15846be3a0fd407e6c57c6f766cdfa0ee1e3d7706124853b5f WHIRLPOOL ad476d23572ebe8701a71a79aff09dd08a0db3dde9b0a6104884a91309d651298adfb514cc7de9c585672ffbc816c9afae67cbbe09b3f9a300624036981c3d78

diff --git a/app-crypt/argon2/argon2-20160821.ebuild b/app-crypt/argon2/argon2-20160821.ebuild
new file mode 100644
index 00000000..372efd3
--- /dev/null
+++ b/app-crypt/argon2/argon2-20160821.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)"
+HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2"
+SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Apache-2.0 CC0-1.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="-static-libs"
+
+S="${WORKDIR}/phc-winner-${P}"
+PATCHES=(
+	"${FILESDIR}/${P}-makefile-install-target.patch"
+	"${FILESDIR}/${P}-makefile-soname-symlinks.patch"
+	)
+src_prepare() {
+	default
+	if ! use static-libs; then
+		sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!"
+	fi
+	sed -i -e 's/-O3 //' Makefile || die "sed failed"
+	sed -i -e 's/-g //' Makefile || die "sed failed"
+	sed -i -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" Makefile || die "sed failed"
+	sed -i -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed"
+}

diff --git a/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch b/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch
new file mode 100644
index 00000000..bcd8562
--- /dev/null
+++ b/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch
@@ -0,0 +1,44 @@
+diff --git a/Makefile b/Makefile
+index e9d27c8..90c1818 100644
+--- a/Makefile
++++ b/Makefile
+@@ -80,11 +80,25 @@ endif
+ 
+ LIB_SH := lib$(LIB_NAME).$(LIB_EXT)
+ LIB_ST := lib$(LIB_NAME).a
++LIBRARIES = $(LIB_SH) $(LIB_ST)
++HEADERS = include/argon2.h
+ 
+-.PHONY: clean dist format $(GENKAT)
++INSTALL = install
++
++DESTDIR =
++PREFIX = /usr
++INCLUDE_REL = include
++LIBRARY_REL = lib
++BINARY_REL = bin
++
++INST_INCLUDE = $(DESTDIR)$(PREFIX)/$(INCLUDE_REL)
++INST_LIBRARY = $(DESTDIR)$(PREFIX)/$(LIBRARY_REL)
++INST_BINARY = $(DESTDIR)$(PREFIX)/$(BINARY_REL)
++
++.PHONY: clean dist format $(GENKAT) all install
+ 
+ all: clean $(RUN) libs 
+-libs: $(LIB_SH) $(LIB_ST)
++libs: $(LIBRARIES)
+ 
+ $(RUN):	        $(SRC) $(SRC_RUN)
+ 		$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+@@ -129,3 +143,11 @@ testci:   $(SRC) src/test.c
+ format:
+ 		clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4}" \
+ 			-i include/*.h src/*.c src/*.h src/blake2/*.c src/blake2/*.h
++
++install: $(RUN) libs
++	$(INSTALL) -d $(INST_INCLUDE)
++	$(INSTALL) $(HEADERS) $(INST_INCLUDE)
++	$(INSTALL) -d $(INST_LIBRARY)
++	$(INSTALL) $(LIBRARIES) $(INST_LIBRARY)
++	$(INSTALL) -d $(INST_BINARY)
++	$(INSTALL) $(RUN) $(INST_BINARY)

diff --git a/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch b/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch
new file mode 100644
index 00000000..11892de
--- /dev/null
+++ b/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch
@@ -0,0 +1,28 @@
+diff --git a/Makefile b/Makefile
+index 1838c13..85aa710 100644
+--- a/Makefile
++++ b/Makefile
+@@ -87,8 +87,10 @@ endif
+ endif
+ 
+ LIB_SH := lib$(LIB_NAME).$(LIB_EXT)
++LIB_SH_VERSION := $(LIB_SH).0
+ LIB_ST := lib$(LIB_NAME).a
+ LIBRARIES = $(LIB_SH) $(LIB_ST)
++INSTALL_LIBRARIES = $(LIBRARIES) $(LIB_SH_VERSION)
+ HEADERS = include/argon2.h
+ 
+ INSTALL = install
+@@ -153,9 +155,11 @@ format:
+ 			-i include/*.h src/*.c src/*.h src/blake2/*.c src/blake2/*.h
+ 
+ install: $(RUN) libs
++	mv $(LIB_SH) $(LIB_SH_VERSION)
++	ln -sf $(LIB_SH_VERSION) $(LIB_SH)
+ 	$(INSTALL) -d $(INST_INCLUDE)
+ 	$(INSTALL) $(HEADERS) $(INST_INCLUDE)
+ 	$(INSTALL) -d $(INST_LIBRARY)
+-	$(INSTALL) $(LIBRARIES) $(INST_LIBRARY)
++	$(INSTALL) $(INSTALL_LIBRARIES) $(INST_LIBRARY)
+ 	$(INSTALL) -d $(INST_BINARY)
+ 	$(INSTALL) $(RUN) $(INST_BINARY)

diff --git a/app-crypt/argon2/metadata.xml b/app-crypt/argon2/metadata.xml
new file mode 100644
index 00000000..62b022e
--- /dev/null
+++ b/app-crypt/argon2/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>simon-bgo@slevermann.de</email>
+		<name>Simon Levermann</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<longdescription>Argon2 is a password hashing tool and library that won the Password Hashing Competition (PHC)</longdescription>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/files/, app-crypt/argon2/
@ 2018-01-02 15:50 Craig Andrews
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Andrews @ 2018-01-02 15:50 UTC (permalink / raw
  To: gentoo-commits

commit:     bcbd83cd3a4958c79e9efe39940376cb32345aef
Author:     Simon Levermann <simon <AT> slevermann <DOT> de>
AuthorDate: Tue Jan  2 15:38:51 2018 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 15:50:40 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcbd83cd

app-crypt/argon2: Drop old

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-crypt/argon2/Manifest                          |  1 -
 app-crypt/argon2/argon2-20160821.ebuild            | 29 --------------
 app-crypt/argon2/argon2-20161029.ebuild            | 28 --------------
 .../argon2-20160821-makefile-install-target.patch  | 44 ----------------------
 .../argon2-20160821-makefile-soname-symlinks.patch | 28 --------------
 5 files changed, 130 deletions(-)

diff --git a/app-crypt/argon2/Manifest b/app-crypt/argon2/Manifest
index 6bc6809f343..18945a78ec6 100644
--- a/app-crypt/argon2/Manifest
+++ b/app-crypt/argon2/Manifest
@@ -1,3 +1,2 @@
-DIST argon2-20160821.tar.gz 1170019 BLAKE2B c69e918376ec064702fc59dd92f1b240c66686932db7fcbf0b475307cd96e2354aaa06dfa5493744b71749b90d5935265990bea93ab6734a51085fbe74f1a48d SHA512 e5b7484a2f3212d78481e7994457d69e5f42d6132b31f86d8de106e8e3fa8ffa3b7244fd74b63d15846be3a0fd407e6c57c6f766cdfa0ee1e3d7706124853b5f
 DIST argon2-20161029.tar.gz 1506864 BLAKE2B fbb0588439e811666af027710d1e5ef182b4d1c9012ca2c60d22ce103ceca14bb392dd8916b37c1c07799dc97f9401aa66d3bd08b250dd48314aa57a8599dff5 SHA512 e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892
 DIST argon2-20171227.tar.gz 1503745 BLAKE2B 70171ce1b446974e18e6f7077f436c6b78f29fd3eb075314014219280fd984e51b00137d901175da5fcb8a8472df0cbb16ff0333a2f2f098e52d3e0ea496e2cc SHA512 9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d

diff --git a/app-crypt/argon2/argon2-20160821.ebuild b/app-crypt/argon2/argon2-20160821.ebuild
deleted file mode 100644
index b407a8dd9f5..00000000000
--- a/app-crypt/argon2/argon2-20160821.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)"
-HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2"
-SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="|| ( Apache-2.0 CC0-1.0 )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="static-libs"
-
-S="${WORKDIR}/phc-winner-${P}"
-PATCHES=(
-	"${FILESDIR}/${P}-makefile-install-target.patch"
-	"${FILESDIR}/${P}-makefile-soname-symlinks.patch"
-	)
-src_prepare() {
-	default
-	if ! use static-libs; then
-		sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!"
-	fi
-	sed -i -e 's/-O3 //' Makefile || die "sed failed"
-	sed -i -e 's/-g //' Makefile || die "sed failed"
-	sed -i -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" Makefile || die "sed failed"
-	sed -i -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed"
-}

diff --git a/app-crypt/argon2/argon2-20161029.ebuild b/app-crypt/argon2/argon2-20161029.ebuild
deleted file mode 100644
index ca5a7d99ac3..00000000000
--- a/app-crypt/argon2/argon2-20161029.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)"
-HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2"
-SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="|| ( Apache-2.0 CC0-1.0 )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="static-libs"
-
-S="${WORKDIR}/phc-winner-${P}"
-PATCHES=(
-	"${FILESDIR}/${P}-makefile-soname-symlinks.patch"
-	)
-src_prepare() {
-	default
-	if ! use static-libs; then
-		sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!"
-	fi
-	sed -i -e 's/-O3 //' Makefile || die "sed failed"
-	sed -i -e 's/-g //' Makefile || die "sed failed"
-	sed -i -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" Makefile || die "sed failed"
-	sed -i -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed"
-}

diff --git a/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch b/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch
deleted file mode 100644
index bcd8562a21c..00000000000
--- a/app-crypt/argon2/files/argon2-20160821-makefile-install-target.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/Makefile b/Makefile
-index e9d27c8..90c1818 100644
---- a/Makefile
-+++ b/Makefile
-@@ -80,11 +80,25 @@ endif
- 
- LIB_SH := lib$(LIB_NAME).$(LIB_EXT)
- LIB_ST := lib$(LIB_NAME).a
-+LIBRARIES = $(LIB_SH) $(LIB_ST)
-+HEADERS = include/argon2.h
- 
--.PHONY: clean dist format $(GENKAT)
-+INSTALL = install
-+
-+DESTDIR =
-+PREFIX = /usr
-+INCLUDE_REL = include
-+LIBRARY_REL = lib
-+BINARY_REL = bin
-+
-+INST_INCLUDE = $(DESTDIR)$(PREFIX)/$(INCLUDE_REL)
-+INST_LIBRARY = $(DESTDIR)$(PREFIX)/$(LIBRARY_REL)
-+INST_BINARY = $(DESTDIR)$(PREFIX)/$(BINARY_REL)
-+
-+.PHONY: clean dist format $(GENKAT) all install
- 
- all: clean $(RUN) libs 
--libs: $(LIB_SH) $(LIB_ST)
-+libs: $(LIBRARIES)
- 
- $(RUN):	        $(SRC) $(SRC_RUN)
- 		$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
-@@ -129,3 +143,11 @@ testci:   $(SRC) src/test.c
- format:
- 		clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4}" \
- 			-i include/*.h src/*.c src/*.h src/blake2/*.c src/blake2/*.h
-+
-+install: $(RUN) libs
-+	$(INSTALL) -d $(INST_INCLUDE)
-+	$(INSTALL) $(HEADERS) $(INST_INCLUDE)
-+	$(INSTALL) -d $(INST_LIBRARY)
-+	$(INSTALL) $(LIBRARIES) $(INST_LIBRARY)
-+	$(INSTALL) -d $(INST_BINARY)
-+	$(INSTALL) $(RUN) $(INST_BINARY)

diff --git a/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch b/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch
deleted file mode 100644
index 11892de1115..00000000000
--- a/app-crypt/argon2/files/argon2-20160821-makefile-soname-symlinks.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 1838c13..85aa710 100644
---- a/Makefile
-+++ b/Makefile
-@@ -87,8 +87,10 @@ endif
- endif
- 
- LIB_SH := lib$(LIB_NAME).$(LIB_EXT)
-+LIB_SH_VERSION := $(LIB_SH).0
- LIB_ST := lib$(LIB_NAME).a
- LIBRARIES = $(LIB_SH) $(LIB_ST)
-+INSTALL_LIBRARIES = $(LIBRARIES) $(LIB_SH_VERSION)
- HEADERS = include/argon2.h
- 
- INSTALL = install
-@@ -153,9 +155,11 @@ format:
- 			-i include/*.h src/*.c src/*.h src/blake2/*.c src/blake2/*.h
- 
- install: $(RUN) libs
-+	mv $(LIB_SH) $(LIB_SH_VERSION)
-+	ln -sf $(LIB_SH_VERSION) $(LIB_SH)
- 	$(INSTALL) -d $(INST_INCLUDE)
- 	$(INSTALL) $(HEADERS) $(INST_INCLUDE)
- 	$(INSTALL) -d $(INST_LIBRARY)
--	$(INSTALL) $(LIBRARIES) $(INST_LIBRARY)
-+	$(INSTALL) $(INSTALL_LIBRARIES) $(INST_LIBRARY)
- 	$(INSTALL) -d $(INST_BINARY)
- 	$(INSTALL) $(RUN) $(INST_BINARY)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-02 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-25 22:08 [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/files/, app-crypt/argon2/ Patrice Clement
  -- strict thread matches above, loose matches on Subject: below --
2018-01-02 15:50 Craig Andrews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox