2018-12-15 22:12:18 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2018/12/15 21:12:22 wiz Exp $
|
2016-05-25 22:15:34 +02:00
|
|
|
|
2018-09-07 15:54:45 +02:00
|
|
|
DISTNAME= hitch-1.4.8
|
2016-05-25 22:15:34 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= https://hitch-tls.org/source/
|
|
|
|
|
2018-12-15 22:12:18 +01:00
|
|
|
MAINTAINER= fhajny@NetBSD.org
|
2016-05-25 22:15:34 +02:00
|
|
|
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"
|
|
|
|
|
2017-01-09 14:02:20 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= src/tests/*
|
|
|
|
|
2016-05-25 22:15:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-rst2man=${PREFIX}/bin/rst2man.py${PYVERSSUFFIX}
|
|
|
|
|
|
|
|
CPPFLAGS.SunOS+= -D__EXTENSIONS__
|
2016-09-19 11:33:57 +02:00
|
|
|
LIBS.SunOS+= -lnsl -lsocket
|
2016-05-25 22:15:34 +02:00
|
|
|
|
|
|
|
BUILD_DEFS+= HITCH_USER HITCH_GROUP HITCH_CERTS
|
|
|
|
|
|
|
|
HITCH_USER?= hitch
|
|
|
|
HITCH_GROUP?= hitch
|
|
|
|
HITCH_CERTS?= ${PKG_SYSCONFDIR}/certs.pem
|
2017-01-09 14:02:20 +01:00
|
|
|
HITCH_OCSP?= ${VARBASE}/db/hitch
|
2016-05-25 22:15:34 +02:00
|
|
|
|
|
|
|
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
|
2017-01-09 14:02:20 +01:00
|
|
|
SUBST_FILES.dir= hitch.conf.example src/configuration.c
|
|
|
|
SUBST_VARS.dir= HITCH_USER HITCH_GROUP HITCH_CERTS HITCH_OCSP
|
2016-05-25 22:15:34 +02:00
|
|
|
SUBST_MESSAGE.dir= Setting default configuration values
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= hitch
|
2016-08-22 11:34:40 +02:00
|
|
|
CONF_FILES+= share/examples/hitch/hitch.conf.example \
|
2016-05-25 22:15:34 +02:00
|
|
|
${PKG_SYSCONFDIR}/hitch.conf
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= share/examples/hitch
|
|
|
|
|
2017-01-09 14:02:20 +01:00
|
|
|
OWN_DIRS_PERMS+= ${HITCH_OCSP} ${HITCH_USER} ${HITCH_GROUP} 0755
|
|
|
|
|
2016-05-25 22:15:34 +02:00
|
|
|
post-install:
|
2016-08-22 11:34:40 +02:00
|
|
|
${MV} ${DESTDIR}${PREFIX}/share/doc/hitch/hitch.conf.example \
|
2016-05-25 22:15:34 +02:00
|
|
|
${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"
|