aboutsummaryrefslogtreecommitdiffstats
path: root/security/hitch/Makefile
blob: 989adbf540bdfe0d4731eb292287d04bf25f0b5d (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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=       hitch
PORTVERSION=        1.4.4
DISTVERSIONPREFIX=  ${PORTNAME}-
CATEGORIES=     security

MAINTAINER=     zi@FreeBSD.org
COMMENT=        TLS proxy to forward connections to an unencrypted backend

LICENSE=        BSD2CLAUSE

BUILD_DEPENDS=      rst2man:textproc/py-docutils \
            pkg-config:devel/pkgconf
LIB_DEPENDS=        libev.so:devel/libev

USERS=          nobody
GROUPS=         nobody

USES=           autoreconf 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
USE_GITHUB=     yes
GH_ACCOUNT=     varnish
PORTSCOUT=      skipv:premerge

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

.include <bsd.port.mk>