Package: signify-openbsd / 13-1

rename.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Rename "signify" binary to "signify-openbsd"
 Debian already has a binary named "signify", so we have to change it.
 .
 Upstream does not need to change this, so it has not been forwarded.
Forwarded: not-needed
Author: Riley Baird <BM-2cVqnDuYbAU5do2DfJTrN7ZbAJ246S4Xix@bitmessage.ch>
Last-Update: 2016-01-09
Index: build/Makefile
===================================================================
--- build.orig/Makefile
+++ build/Makefile
@@ -82,11 +82,11 @@ PKG_CFLAGS := $(shell pkg-config libbsd
 PKG_LDLIBS := $(shell pkg-config libbsd --libs)
 
 signify: $O
-	$(CC) $(LDFLAGS) -o $@ $^ $(PKG_LDLIBS)
+	$(CC) $(LDFLAGS) -o signify-openbsd $^ $(PKG_LDLIBS)
 signify: CFLAGS += $(PKG_CFLAGS) -Wall
 
 clean:
-	$(RM) $O signify signify.1.gz sha256hl.c sha512hl.c
+	$(RM) $O signify-openbsd signify.1.gz sha256hl.c sha512hl.c
 
 signify.1.gz: signify.1
 	gzip -9c $< > $@
@@ -103,7 +103,7 @@ sha512hl.c: helper.c
 
 install: signify signify.1.gz
 	install -m 755 -d $(DESTDIR)$(PREFIX)/bin
-	install -m 755 -t $(DESTDIR)$(PREFIX)/bin signify
+	install -m 755 -t $(DESTDIR)$(PREFIX)/bin signify-openbsd
 	install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
 	install -m 644 -t $(DESTDIR)$(PREFIX)/share/man/man1 signify.1.gz