allow libressl and openssl versions of sslscan to coexist in installation;
now you can use one to check for chacha20-poly1305 and the other to check for SSLv2/v3 support without messing around with pkg_delete/pkg_add between tests.
This commit is contained in:
parent
945e9c92df
commit
8b6b8e35b1
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2015/09/10 14:08:44 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2015/09/16 21:24:46 sthen Exp $
|
||||
|
||||
COMMENT= SSL port scanner
|
||||
|
||||
V= 1.10.6
|
||||
REVISION= 0
|
||||
DISTNAME= sslscan-$V
|
||||
DISTFILES= ${DISTNAME}{$V-rbsec}.tar.gz
|
||||
WRKDIST= ${WRKDIR}/${DISTNAME}-rbsec
|
||||
@ -19,26 +20,26 @@ FLAVOR?=
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
MASTER_SITES= https://github.com/rbsec/sslscan/archive/
|
||||
USE_GMAKE= Yes
|
||||
NO_TEST= Yes
|
||||
|
||||
MAKE_FLAGS= BINPATH=${WRKINST}${PREFIX}/bin/ \
|
||||
MANPATH=${WRKINST}${PREFIX}/man/ \
|
||||
GIT_VERSION="$V" \
|
||||
CC="${CC}" SUFFIX="${SUFFIX}"
|
||||
|
||||
SUBST_VARS= SUFFIX
|
||||
|
||||
.if ${FLAVOR:Mopenssl}
|
||||
SUFFIX= -openssl
|
||||
FULLPKGNAME= sslscan-openssl-$V
|
||||
MAKE_FLAGS+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/eopenssl" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib/eopenssl -Wl,-rpath,${LOCALBASE}/lib/eopenssl"
|
||||
LIB_DEPENDS= security/openssl
|
||||
WANTLIB += lib/eopenssl/crypto lib/eopenssl/ssl
|
||||
.else
|
||||
WANTLIB += crypto ssl
|
||||
.endif
|
||||
|
||||
MASTER_SITES= https://github.com/rbsec/sslscan/archive/
|
||||
USE_GMAKE= Yes
|
||||
|
||||
MAKE_FLAGS= BINPATH=${WRKINST}${PREFIX}/bin/ \
|
||||
MANPATH=${WRKINST}${PREFIX}/man/ \
|
||||
GIT_VERSION="$V" \
|
||||
CC="${CC}"
|
||||
|
||||
.if ${FLAVOR:Mopenssl}
|
||||
MAKE_FLAGS+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/eopenssl" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib/eopenssl -Wl,-rpath,${LOCALBASE}/lib/eopenssl"
|
||||
.endif
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,14 +1,14 @@
|
||||
$OpenBSD: patch-Makefile,v 1.2 2015/09/10 13:55:51 sthen Exp $
|
||||
--- Makefile.orig Thu Aug 6 11:23:13 2015
|
||||
+++ Makefile Thu Sep 10 15:41:10 2015
|
||||
$OpenBSD: patch-Makefile,v 1.3 2015/09/16 21:24:46 sthen Exp $
|
||||
--- Makefile.orig Thu Aug 6 10:23:13 2015
|
||||
+++ Makefile Wed Sep 16 22:16:11 2015
|
||||
@@ -43,8 +43,8 @@ sslscan: $(SRCS)
|
||||
install:
|
||||
mkdir -p $(BINPATH)
|
||||
mkdir -p $(MANPATH)man1/
|
||||
- cp sslscan $(BINPATH)
|
||||
- cp sslscan.1 $(MANPATH)man1/
|
||||
+ $(BSD_INSTALL_PROGRAM) sslscan $(BINPATH)
|
||||
+ $(BSD_INSTALL_MAN) sslscan.1 $(MANPATH)man1/
|
||||
+ $(BSD_INSTALL_PROGRAM) sslscan $(BINPATH)/sslscan${SUFFIX}
|
||||
+ $(BSD_INSTALL_MAN) sslscan.1 $(MANPATH)man1/sslscan${SUFFIX}.1
|
||||
|
||||
uninstall:
|
||||
rm -f $(BINPATH)sslscan
|
||||
|
@ -1,3 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/06/21 21:05:48 ajacoutot Exp $
|
||||
@bin bin/sslscan
|
||||
@man man/man1/sslscan.1
|
||||
@comment $OpenBSD: PLIST,v 1.2 2015/09/16 21:24:46 sthen Exp $
|
||||
@bin bin/sslscan${SUFFIX}
|
||||
@man man/man1/sslscan${SUFFIX}.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user