diff --git a/srcpkgs/signify/patches/5c9cbd65a8cc3bb95f690f055a3c50e380e8ef4e.diff b/srcpkgs/signify/patches/5c9cbd65a8cc3bb95f690f055a3c50e380e8ef4e.diff new file mode 100644 index 0000000000..885d9c01f7 --- /dev/null +++ b/srcpkgs/signify/patches/5c9cbd65a8cc3bb95f690f055a3c50e380e8ef4e.diff @@ -0,0 +1,33 @@ +diff --git a/Makefile b/Makefile +index 36fc5c6..b53744b 100644 +--- a/Makefile ++++ b/Makefile +@@ -162,10 +162,12 @@ CFLAGS += $(SECCOMP_CFLAGS) -pthread + LDFLAGS += $(SECCOMP_LIBS) -pthread + S += libwaive/waive.c + ++ifneq ($(wildcard .gitmodules),) + libwaive/waive.c: .gitmodules + git submodule init && git submodule update libwaive + touch $@ + endif ++endif + + ifeq ($(strip $(VERIFY_ONLY)),) + S += ohash.c +@@ -230,6 +232,7 @@ install: signify signify.1.gz + + .PHONY: install + ++ifneq ($(wildcard .git/),) + GIT_TAG = $(shell git describe --tags HEAD) + dist: T := $(GIT_TAG) + dist: V := $(patsubst v%,%,$T) +@@ -238,6 +241,7 @@ dist: + xz -f9 signify-$V.tar + + .PHONY: dist ++endif + + check: signify + @sh regress/run diff --git a/srcpkgs/signify/template b/srcpkgs/signify/template index 63d9207421..c5b1434d9c 100644 --- a/srcpkgs/signify/template +++ b/srcpkgs/signify/template @@ -1,31 +1,30 @@ # Template file for 'signify' pkgname=signify -version=20141230 -revision=3 -wrksrc="signify-portable-${version}" +reverts="20141230_3 20141230_2 20141230_1" +version=28 +revision=1 build_style=gnu-makefile +make_build_args="BZERO=bundled" +hostmakedepends="pkg-config" +makedepends="libbsd-devel" short_desc="OpenBSD cryptographic signing and verification tool" maintainer="Orphaned " license="ISC" homepage="http://www.tedunangst.com/flak/post/signify" -distfiles="${SOURCEFORGE_SITE}/slackdepot/signify/signify-portable-${version}.tar.bz2" -checksum=11c0a1ac0ca8075d2f00036f8de53a213346c4b2ecf44dacedc60d160569f6b2 +distfiles="https://github.com/aperezdc/signify/releases/download/v${version}/signify-${version}.tar.xz" +checksum=b841f3862aefd04a70cb3f33e1ac08576adb74772d5a462ad85d5d481f386917 +patch_args="-Np1" pre_build() { - sed -e 's|^mandir=${prefix}/man|mandir=${prefix}/share/man|g' \ - -e 's/^CFLAGS=-O2/override CFLAGS+=-pie/' \ - -i Makefile - # Allow building with musl - cp ${FILESDIR}/void.h . - for file in bsd-compat/blf.h bsd-compat/sha2.h ohash.h; do - sed -e '1 i\#include "void.h"' -i $file - done + cp ${FILESDIR}/void.h . + for file in blf.h sha2.h ohash.h; do + sed -e '1 i\#include "void.h"' -i $file + done + # Create license file + head -n 16 signify.c > LICENSE } post_install() { - vdoc README - vdoc BACKGROUND - sed -n '/Copyright/,/PERFORMANCE/p' signify.c > LICENSE vlicense LICENSE }