pkgsrc/security/stunnel/Makefile
schmonz 7b51ca7785 Update to 5.60. From the changelog:
* New features
  - New 'sessionResume' service-level option to allow
    or disallow session resumption
  - Added support for the new SSL_set_options() values.
  - Download fresh ca-certs.pem for each new release.
* Bugfixes
  - Fixed 'redirect' with 'protocol'.  This combination is
    not supported by 'smtp', 'pop3' and 'imap' protocols.
  - Enforced minimum WIN32 log window size.
  - Fixed support for password-protected private keys with
    OpenSSL 3.0 (thx to Dmitry Belyavskiy).
  - Added missing TLS options supported in OpenSSL 1.1.1k.
2021-10-24 21:33:48 +00:00

55 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.125 2021/10/24 21:33:48 schmonz Exp $
DISTNAME= stunnel-5.60
CATEGORIES= security
MASTER_SITES= https://www.stunnel.org/downloads/
MAINTAINER= jym@NetBSD.org
HOMEPAGE= https://www.stunnel.org/
COMMENT= Universal SSL tunnel
LICENSE= gnu-gpl-v2
BUILD_DEFS+= VARBASE
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
.include "../../mk/bsd.prefs.mk"
STUNNEL_USER?= stunnel
STUNNEL_GROUP?= stunnel
PKG_USERS= ${STUNNEL_USER}:${STUNNEL_GROUP}
PKG_GROUPS= ${STUNNEL_GROUP}
USER_GROUP= ${STUNNEL_USER} ${STUNNEL_GROUP}
PKG_GECOS.${STUNNEL_USER}?= Stunnel
PKG_HOME.${STUNNEL_USER}?= ${VARBASE}/chroot/stunnel
PKG_SYSCONFSUBDIR= stunnel
PKG_SYSCONFDIR_PERMS= ${REAL_ROOT_USER} ${STUNNEL_GROUP} 0750
OWN_DIRS= ${PKG_HOME.${STUNNEL_USER}}/certs ${PKG_HOME.${STUNNEL_USER}}/crls
OWN_DIRS_PERMS= ${PKG_HOME.${STUNNEL_USER}}/pid ${USER_GROUP} 0750
CONF_FILES+= ${PREFIX}/share/examples/stunnel/stunnel.conf-sample \
${PKG_SYSCONFDIR}/stunnel.conf
RCD_SCRIPTS= stunnel
REPLACE_PERL+= src/stunnel3.in
USE_TOOLS+= perl:run
SUBST_CLASSES+= stunnel
SUBST_MESSAGE.stunnel= Fix user and group
SUBST_STAGE.stunnel= pre-configure
SUBST_FILES.stunnel= tools/stunnel.conf-sample.in
SUBST_VARS.stunnel= STUNNEL_USER STUNNEL_GROUP
TEST_TARGET= check
.include "options.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"