blob: cf00a74b4b6e797e2cba73076140d0d2d6ac3a0c (
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
|
# $NetBSD: Makefile,v 1.7 2003/11/12 03:39:44 jschauma Exp $
#
DISTNAME= tinyproxy-1.6.1
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyproxy/}
MAINTAINER= xtraeme@NetBSD.org
HOMEPAGE= http://tinyproxy.sourceforge.net/
COMMENT= Lightweight HTTP/SSL proxy
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
RCD_SCRIPTS= tinyproxy
PKG_SYSCONFSUBDIR= tinyproxy
TINYPROXY_USER?= tinyproxy
TINYPROXY_GROUP?= tinyproxy
PKG_GROUPS= ${TINYPROXY_GROUP}
PKG_USERS= ${TINYPROXY_USER}:${TINYPROXY_GROUP}::Tinyproxy\\ user
FILES_SUBST+= TINYPROXY_USER="${TINYPROXY_USER}"
FILES_SUBST+= TINYPROXY_GROUP="${TINYPROXY_GROUP}"
CONFIGURE_ARGS+= --with-config=${PKG_SYSCONFDIR}/tinyproxy.conf
CONFIGURE_ARGS+= --enable-transparent-proxy
# Socks support
.if defined(USE_SOCKS) && ${USE_SOCKS} == YES
CONFIGURE_ARGS+= --enable-socks
.endif
EGDIR= ${PREFIX}/share/examples/tinyproxy
CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf
post-patch:
@cd ${WRKSRC}/doc && \
for f in tinyproxy.8 tinyproxy.conf; do \
${MV} $${f} $${f}.orig; \
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
done
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/tinyproxy.conf \
${EGDIR}/tinyproxy.conf.default
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tinyproxy
${INSTALL_DATA} ${WRKSRC}/doc/filter-howto.txt \
${PREFIX}/share/doc/tinyproxy/
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|