blob: 23340856b7efbe68b9622cf353d775d4a676f660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.7 2018/09/07 13:54:45 fhajny Exp $
DISTNAME= hitch-1.4.8
CATEGORIES= security
MASTER_SITES= https://hitch-tls.org/source/
MAINTAINER= filip@joyent.com
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
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:
${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"
|