pkgsrc/security/hitch/Makefile

64 lines
1.7 KiB
Makefile
Raw Normal View History

2018-12-15 22:12:18 +01:00
# $NetBSD: Makefile,v 1.8 2018/12/15 21:12:22 wiz Exp $
DISTNAME= hitch-1.4.8
CATEGORIES= security
MASTER_SITES= https://hitch-tls.org/source/
2018-12-15 22:12:18 +01:00
MAINTAINER= fhajny@NetBSD.org
HOMEPAGE= https://hitch-tls.org/
COMMENT= High performance SSL/TLS proxy
LICENSE= 2-clause-bsd
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
.include "../../mk/bsd.prefs.mk"
CHECK_PORTABILITY_SKIP+= src/tests/*
CONFIGURE_ARGS+= --with-rst2man=${PREFIX}/bin/rst2man.py${PYVERSSUFFIX}
CPPFLAGS.SunOS+= -D__EXTENSIONS__
LIBS.SunOS+= -lnsl -lsocket
BUILD_DEFS+= HITCH_USER HITCH_GROUP HITCH_CERTS
HITCH_USER?= hitch
HITCH_GROUP?= hitch
HITCH_CERTS?= ${PKG_SYSCONFDIR}/certs.pem
HITCH_OCSP?= ${VARBASE}/db/hitch
PKG_GROUPS+= ${HITCH_GROUP}
PKG_USERS+= ${HITCH_USER}:${HITCH_GROUP}
PKG_GECOS.${HITCH_USER}=hitch daemon user
RCD_SCRIPTS= hitch
MESSAGE_SUBST+= HITCH_CERTS=${HITCH_CERTS}
SUBST_CLASSES+= dir
SUBST_STAGE.dir= pre-configure
SUBST_FILES.dir= hitch.conf.example src/configuration.c
SUBST_VARS.dir= HITCH_USER HITCH_GROUP HITCH_CERTS HITCH_OCSP
SUBST_MESSAGE.dir= Setting default configuration values
PKG_SYSCONFSUBDIR= hitch
Update security/hitch to 1.3.1. hitch-1.3.1 (2016-08-16) - Fixes a bug in the autotools configuration which led to man pages not being built. hitch-1.3.0 (2016-08-16) - Fix a bug where we crashed in the OCSP handling if there was no default SSLCTX configured. - Minor documentation fix. hitch-1.3.0-beta3 (2016-07-26) - Fully automated retrieval and refreshes of OCSP responses (see configuration.md for details). - New parameters ocsp-dir, ocsp-resp-tmo and ocsp-connect-tmo. - Cleanup of various log messages. - Verification of OCSP staples. Enabled by setting ocsp-verify-staple = on. - Make rst2man an optional requirement (#93). Thanks to Barry Allard. - Avoid stapling expired OCSP responses - A few fixes to the shared cache updating code. Thanks to Piyush Dewnani hitch-1.3.0-beta2 (2016-05-31) - Options given on the command line now take presedence over configuration file settings. I.e. there is no longer a need to specify --config first to get this behavior. - Config file regression: "yes" and "no" are now accepted by the config file parser as boolean values. - Documentation improvements and spelling fixes. - Various minor autotools build fixes. hitch-1.3.0-beta1 (2016-05-11) - Support for OCSP stapling (see configuration.md for details) - Initialize OpenSSL locking callback if an engine is loaded. Some SSL accelerator cards have their custom SSL engine running in a multithreaded context. For these to work correctly, Hitch needs to initialize a set of mutexes utilized by the OpenSSL library. - #82: A mistake in the SNI lookup code caused us to inspect the wrong list when looking for wildcard certificate matches.
2016-08-22 11:34:40 +02:00
CONF_FILES+= share/examples/hitch/hitch.conf.example \
${PKG_SYSCONFDIR}/hitch.conf
INSTALLATION_DIRS+= share/examples/hitch
OWN_DIRS_PERMS+= ${HITCH_OCSP} ${HITCH_USER} ${HITCH_GROUP} 0755
post-install:
Update security/hitch to 1.3.1. hitch-1.3.1 (2016-08-16) - Fixes a bug in the autotools configuration which led to man pages not being built. hitch-1.3.0 (2016-08-16) - Fix a bug where we crashed in the OCSP handling if there was no default SSLCTX configured. - Minor documentation fix. hitch-1.3.0-beta3 (2016-07-26) - Fully automated retrieval and refreshes of OCSP responses (see configuration.md for details). - New parameters ocsp-dir, ocsp-resp-tmo and ocsp-connect-tmo. - Cleanup of various log messages. - Verification of OCSP staples. Enabled by setting ocsp-verify-staple = on. - Make rst2man an optional requirement (#93). Thanks to Barry Allard. - Avoid stapling expired OCSP responses - A few fixes to the shared cache updating code. Thanks to Piyush Dewnani hitch-1.3.0-beta2 (2016-05-31) - Options given on the command line now take presedence over configuration file settings. I.e. there is no longer a need to specify --config first to get this behavior. - Config file regression: "yes" and "no" are now accepted by the config file parser as boolean values. - Documentation improvements and spelling fixes. - Various minor autotools build fixes. hitch-1.3.0-beta1 (2016-05-11) - Support for OCSP stapling (see configuration.md for details) - Initialize OpenSSL locking callback if an engine is loaded. Some SSL accelerator cards have their custom SSL engine running in a multithreaded context. For these to work correctly, Hitch needs to initialize a set of mutexes utilized by the OpenSSL library. - #82: A mistake in the SNI lookup code caused us to inspect the wrong list when looking for wildcard certificate matches.
2016-08-22 11:34:40 +02:00
${MV} ${DESTDIR}${PREFIX}/share/doc/hitch/hitch.conf.example \
${DESTDIR}${PREFIX}/share/examples/hitch
PYTHON_FOR_BUILD_ONLY= yes
.include "../../lang/python/pyversion.mk"
.include "../../devel/libev/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"