freebsd-ports/security/sslscan/files/patch-Makefile
Gavin Atkinson f82246e223 Upgrade security/sslscan to just past the 1.11.11 release, pulling in
a couple of bug fixes from upstream that have not yet made it into a
release.

Approved by:	zeising
2018-08-15 21:26:19 +00:00

29 lines
947 B
Text

--- Makefile.orig 2018-06-15 17:47:17 UTC
+++ Makefile
@@ -1,6 +1,6 @@
# set gcc as default if CC is not set
-GIT_VERSION = $(shell git describe --tags --always --dirty=-wip)
+#GIT_VERSION = $(shell git describe --tags --always --dirty=-wip)
# Ugly hack to get version if git isn't installed
ifeq ($(GIT_VERSION),)
@@ -25,7 +25,7 @@ endif
SRCS = sslscan.c
BINDIR = $(PREFIX)/bin
-MANDIR = $(PREFIX)/share/man
+MANDIR = $(PREFIX)/man
MAN1DIR = $(MANDIR)/man1
WARNINGS = -Wall -Wformat=2 -Wformat-security
@@ -101,6 +101,9 @@ ifeq ($(OS), Darwin)
install sslscan $(DESTDIR)$(BINDIR)/sslscan;
install -d $(DESTDIR)$(MAN1DIR)/;
install sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;
+else ifeq ($(OS), FreeBSD)
+ install -s -m 755 sslscan $(DESTDIR)$(BINDIR)
+ install -m 644 sslscan.1 $(DESTDIR)$(MAN1DIR)
else
install -D sslscan $(DESTDIR)$(BINDIR)/sslscan;
install -D sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;