aboutsummaryrefslogtreecommitdiff
path: root/security/hitch/Makefile
blob: f534e749b27bcc31486f4cf65401504f41e3f5f0 (plain) (blame)
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
PORTNAME=		hitch
PORTVERSION=		1.7.3
CATEGORIES=		security
MASTER_SITES=		http://hitch-tls.org/source/ \
			ZI

MAINTAINER=		zi@FreeBSD.org
COMMENT=		TLS proxy to forward connections to an unencrypted backend
WWW=			https://github.com/varnish/hitch/

LICENSE=		BSD2CLAUSE

BUILD_DEPENDS=		rst2man:textproc/py-docutils
LIB_DEPENDS=		libev.so:devel/libev

USERS=			hitch
GROUPS=			hitch

USES=			pkgconfig ssl
GNU_CONFIGURE=		yes
CONFIGURE_ARGS=		--localstatedir=/var/run
CONFIGURE_ENV=		CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB}" \
			SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB}"
USE_RC_SUBR=		${PORTNAME}
CPPFLAGS+=		-I${LOCALBASE}/include
LDFLAGS+=		-L${LOCALBASE}/lib -lcrypto -lssl
CACHE_DIR?=		/var/cache/hitch
PLIST_SUB=		CACHE_DIR=${CACHE_DIR}
SUB_LIST+=		CACHE_DIR="${CACHE_DIR}"
SUB_FILES=		${PORTNAME}.conf.sample

OPTIONS_DEFINE=		DOCS

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/etc ${STAGEDIR}${CACHE_DIR}
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/

.include <bsd.port.mk>