Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.13 2017/01/27 11:01:14 sthen Exp $
  2. COMMENT= SSL port scanner
  3. V= 1.11.8
  4. GH_ACCOUNT= rbsec
  5. GH_PROJECT= sslscan
  6. GH_TAGNAME= $V-rbsec
  7. DISTNAME= sslscan-$V
  8. CATEGORIES= security net
  9. HOMEPAGE= https://github.com/rbsec/sslscan
  10. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  11. # GPLv3
  12. PERMIT_PACKAGE_CDROM= Yes
  13. FLAVORS= openssl
  14. FLAVOR?=
  15. WANTLIB += c
  16. USE_GMAKE= Yes
  17. NO_TEST= Yes
  18. MAKE_FLAGS= BINDIR=${TRUEPREFIX}/bin \
  19. MANDIR=${TRUEPREFIX}/man \
  20. GIT_VERSION="$V" \
  21. CC="${CC}"
  22. SUBST_VARS= SUFFIX
  23. .if ${FLAVOR:Mopenssl}
  24. BUILD_DEPENDS= security/openssl:patch
  25. SUFFIX= -openssl
  26. FULLPKGNAME= sslscan-openssl-$V
  27. STATIC_BUILD= TRUE
  28. ALL_TARGET= openssl/libcrypto.a sslscan
  29. MAKE_FLAGS+= STATIC_BUILD=TRUE
  30. CFLAGS+= -nostdinc -I${WRKSRC}/openssl/include -I/usr/include
  31. post-extract:
  32. ln -s ${WRKDIR}/security/openssl/openssl-* ${WRKSRC}/openssl
  33. rm -f ${WRKSRC}/openssl/Makefile
  34. .else
  35. WANTLIB += crypto ssl
  36. .endif
  37. post-install:
  38. mv ${PREFIX}/bin/sslscan ${PREFIX}/bin/sslscan${SUFFIX}
  39. mv ${PREFIX}/man/man1/sslscan.1 ${PREFIX}/man/man1/sslscan${SUFFIX}.1
  40. .include <bsd.port.mk>