LibreSSL and packaging tweaks

- don't force-disable the use of BN_GENCB_new() and friends, supported
  since LibreSSL 2.7.1
- fix WANTLIB, this is c++
- provide a correct WRKDIST, and use it
- install README.md, it has useful data

ok abieber@ (maintainer)
This commit is contained in:
jca 2018-11-20 13:01:08 +00:00
parent 7f5b5cbb31
commit ed688c7797
2 changed files with 11 additions and 7 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/04/03 13:22:31 abieber Exp $
# $OpenBSD: Makefile,v 1.2 2018/11/20 13:01:08 jca Exp $
COMMENT = a replacement for gpg which can encrypt/sign/verify
DISTNAME = opmsg-1.78s
EXTRACT_SUFX = .tgz
REVISION = 0
FIX_EXTRACT_PERMISSIONS = Yes
@ -16,22 +17,23 @@ MAINTAINER = Aaron Bieber <abieber@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c crypto m
WANTLIB += ${COMPILER_LIBCXX} c crypto m
MASTER_SITES = http://stealth.openwall.net/opmsg/
COMPILER = base-clang ports-clang ports-gcc
MAKE_FLAGS = DEFS+="-DHAVE_BN_GENCB_NEW=0"
WRKSRC = ${WRKDIR}/opmsg/src
WRKDIST = ${WRKDIR}/opmsg
WRKSRC = ${WRKDIST}/src
NO_TEST = Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/opmsg ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opmsg
${INSTALL_DATA} ${WRKDIST}/README.md ${PREFIX}/share/doc/opmsg/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opmsg
${INSTALL_DATA} ${WRKSRC}/../sample.config \
${INSTALL_DATA} ${WRKDIST}/sample.config \
${PREFIX}/share/examples/opmsg/sample.config
.include <bsd.port.mk>

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/04/03 13:22:31 abieber Exp $
@comment $OpenBSD: PLIST,v 1.2 2018/11/20 13:01:08 jca Exp $
@bin bin/opmsg
share/doc/opmsg/
share/doc/opmsg/README.md
share/examples/opmsg/
share/examples/opmsg/sample.config