pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

security/signify: update to signify to v0.10.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Thu Jun 30 13:46:17 2022 +0200
Changeset:	a6f6ffb8ab985771436d90c316c6026147395fc7

Modified Files:
	signify/DESCR
	signify/Makefile
	signify/PLIST
	signify/distinfo
Added Files:
	signify/patches/patch-Makefile

Log Message:
security/signify: update to signify to v0.10.

Resurrect signify(1) by using leahneukirchen's port of nonstandard
OpenBSD userland utils to Linux.
Due to the inherent variability of library functions supported by each
target platform, this package was specifically patched for NetBSD and
will work on NetBSD only.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a6f6ffb8ab985771436d90c316c6026147395fc7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 signify/DESCR                  |  7 +++++--
 signify/Makefile               | 42 ++++++++++++++++++++++++++++++++----------
 signify/PLIST                  |  2 +-
 signify/distinfo               |  8 +++++---
 signify/patches/patch-Makefile | 16 ++++++++++++++++
 5 files changed, 59 insertions(+), 16 deletions(-)

diffs:
diff --git a/signify/DESCR b/signify/DESCR
index f88b678cc9..2c4ae5b2c0 100644
--- a/signify/DESCR
+++ b/signify/DESCR
@@ -1,2 +1,5 @@
-Signify is a tool to sign and verify files using the Ed25519 crypto algorithm,
-using very small keys which make them easy to work with.
+The signify utility creates and verifies cryptographic signatures.
+A signature verifies the integrity of a message
+
+This version of signify is part of outils, a portable collection of
+non-standard OpenBSD tools.
diff --git a/signify/Makefile b/signify/Makefile
index 504010eba6..565cda0531 100644
--- a/signify/Makefile
+++ b/signify/Makefile
@@ -1,18 +1,40 @@
-# $NetBSD: Makefile,v 1.6 2015/02/15 21:07:04 yrmt Exp $
+# $NetBSD$
 
-GHCOMMIT=	9170b4391945da17fd2ac2e251b54b3400668192
-DISTNAME=	${GHCOMMIT}
-PKGNAME=	signify-0.1.0.20150215
+GITHUB_TAG=	v0.10
+DISTNAME=	${GITHUB_PROJECT}-${GITHUB_TAG:S,^v,,}
+PKGNAME=	${DISTNAME:S,outils,signify,}
 CATEGORIES=	security
-MASTER_SITES=	https://github.com/yrmt/signify/archive/
+MASTER_SITES=	${MASTER_SITE_GITHUB:=leahneukirchen/}
+GITHUB_PROJECT=	outils
 
-MAINTAINER=	youri.mout%gmail.com@localhost
-HOMEPAGE=	https://github.com/yrmt/signify
+MAINTAINER=	vms%retrobsd.ddns.net@localhost
+HOMEPAGE=	https://flak.tedunangst.com/post/signify
 COMMENT=	Cryptographically sign and verify files, from OpenBSD
-LICENSE=	isc
+LICENSE=	original-bsd AND modified-bsd AND isc AND public-domain
 
-WRKSRC=		${WRKDIR}/signify-${GHCOMMIT}
+ONLY_FOR_PLATFORM+=	NetBSD-*-*
 
-GNU_CONFIGURE=	yes
+USE_TOOLS+=	gmake
+MAKEFLAGS+=	ALL=src/usr.bin/signify/signify
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths+=	${OUTDIR}/signify.c
+SUBST_FILES.paths+=	${OUTDIR}/signify.1
+SUBST_SED.paths=	-e 's|/etc/signify|${PKG_SYSCONFDIR}/signify|g'
+
+WRKSRC=	${WRKDIR}/${DISTNAME}
+OUTDIR=	${WRKSRC}/src/usr.bin/signify
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
+MAKE_DIRS+=		${PKG_SYSCONFDIR}/signify
+
+post-patch:
+# The sys/* overrides are not needed on NetSD
+	${RM} ${WRKSRC}/src/liboutils/include/sys/*
+
+do-install:
+	${INSTALL_PROGRAM} ${OUTDIR}/signify ${DESTDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${OUTDIR}/signify.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/signify/PLIST b/signify/PLIST
index 841752fadb..9d34f1fdf9 100644
--- a/signify/PLIST
+++ b/signify/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2015/01/11 23:24:19 yrmt Exp $
+@comment $NetBSD$
 bin/signify
 man/man1/signify.1
diff --git a/signify/distinfo b/signify/distinfo
index 1155e682fa..252b324581 100644
--- a/signify/distinfo
+++ b/signify/distinfo
@@ -1,4 +1,6 @@
-$NetBSD: distinfo,v 1.3 2015/02/15 21:07:04 yrmt Exp $
+$NetBSD$
 
-RMD160 (9170b4391945da17fd2ac2e251b54b3400668192.tar.gz) = f8c43723deb63a74a70b80536b38642cc2abba7f
-Size (9170b4391945da17fd2ac2e251b54b3400668192.tar.gz) = 133498 bytes
+BLAKE2s (outils-0.10.tar.gz) = dd72f25dae8d5f6a742371ffcc7c8275f690a0e25eff5f85010067797823ecc8
+SHA512 (outils-0.10.tar.gz) = 58ba7854e7c96ba73ba984d6a33c1972640f6657d1fc138bc78a7eb29e5d7e7321386837183455631dbddda87ae2f40438e6891a5560685faf7530bed1e73031
+Size (outils-0.10.tar.gz) = 280502 bytes
+SHA1 (patch-Makefile) = 8786802f92f8fbfb069c312021277b42cebf4d16
diff --git a/signify/patches/patch-Makefile b/signify/patches/patch-Makefile
new file mode 100644
index 0000000000..b592a42b66
--- /dev/null
+++ b/signify/patches/patch-Makefile
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Do not build compatibility for functions
+alrady supported by NetBSD.
+
+--- Makefile.orig	2021-10-14 15:34:52.000000000 +0000
++++ Makefile
+@@ -21,7 +21,7 @@ src/bin/md5/md5: src/bin/md5/md5.o src/b
+ 
+ src/usr.bin/rs/rs: src/usr.bin/rs/rs.o src/usr.bin/rs/utf8.o src/liboutils/pledge.o src/liboutils/strtonum.o src/liboutils/reallocarray.o
+ 
+-src/usr.bin/signify/signify: src/usr.bin/signify/signify.o src/usr.bin/signify/crypto_api.o src/usr.bin/signify/fe25519.o src/usr.bin/signify/mod_ed25519.o src/usr.bin/signify/mod_ge25519.o src/usr.bin/signify/sc25519.o src/usr.bin/signify/zsig.o src/liboutils/pledge.o src/liboutils/strlcpy.o src/liboutils/base64.o src/liboutils/explicit_bzero.o src/liboutils/ohash.o src/liboutils/arc4random.o src/liboutils/getentropy_linux.o src/liboutils/readpassphrase.o src/liboutils/sha2.o src/liboutils/sha256hl.o src/liboutils/sha512_256hl.o src/liboutils/sha512hl.o src/liboutils/timingsafe_bcmp.o src/liboutils/bcrypt_pbkdf.o src/liboutils/blowfish.o src/liboutils/freezero.o
++src/usr.bin/signify/signify: src/usr.bin/signify/signify.o src/usr.bin/signify/crypto_api.o src/usr.bin/signify/fe25519.o src/usr.bin/signify/mod_ed25519.o src/usr.bin/signify/mod_ge25519.o src/usr.bin/signify/sc25519.o src/usr.bin/signify/zsig.o src/liboutils/pledge.o src/liboutils/explicit_bzero.o src/liboutils/ohash.o src/liboutils/readpassphrase.o src/liboutils/sha2.o src/liboutils/sha256hl.o src/liboutils/sha512_256hl.o src/liboutils/sha512hl.o src/liboutils/timingsafe_bcmp.o src/liboutils/bcrypt_pbkdf.o src/liboutils/blowfish.o src/liboutils/freezero.o
+ 
+ src/usr.bin/calendar/calendar: src/usr.bin/calendar/calendar.o src/usr.bin/calendar/day.o src/usr.bin/calendar/io.o src/usr.bin/calendar/ostern.o src/usr.bin/calendar/paskha.o src/usr.bin/calendar/pesach.o src/liboutils/arc4random_uniform.o src/liboutils/arc4random.o src/liboutils/getentropy_linux.o src/liboutils/explicit_bzero.o src/liboutils/pledge.o src/liboutils/sha2.o src/liboutils/strtonum.o
+ 


Home | Main Index | Thread Index | Old Index