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.25 2009/07/07 18:50:54 joerg Exp $
#
DISTNAME= tinyproxy-1.6.2
PKGREVISION= 5
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyproxy/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://tinyproxy.sourceforge.net/
COMMENT= Lightweight HTTP/SSL proxy
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
RCD_SCRIPTS= tinyproxy
PKG_SYSCONFSUBDIR= tinyproxy
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= VARBASE
TINYPROXY_USER?= tinyproxy
TINYPROXY_GROUP?= tinyproxy
PKG_GROUPS= ${TINYPROXY_GROUP}
PKG_USERS= ${TINYPROXY_USER}:${TINYPROXY_GROUP}
PKG_GROUPS_VARS+= TINYPROXY_GROUP
PKG_USERS_VARS+= TINYPROXY_USER
FILES_SUBST+= TINYPROXY_USER=${TINYPROXY_USER:Q}
FILES_SUBST+= TINYPROXY_GROUP=${TINYPROXY_GROUP:Q}
CONFIGURE_ARGS+= --with-config=${PKG_SYSCONFDIR}/tinyproxy.conf
CONFIGURE_ARGS+= --enable-transparent-proxy
# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+= F77=${FALSE:Q}
.include "options.mk"
EGDIR= ${PREFIX}/share/examples/tinyproxy
CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf
SUBST_CLASSES+= docs
SUBST_STAGE.docs= pre-configure
SUBST_FILES.docs= doc/tinyproxy.8 doc/tinyproxy.conf
SUBST_SED.docs+= -e 's,@TINYPROXY_USER@,${TINYPROXY_USER},g'
SUBST_SED.docs+= -e 's,@TINYPROXY_GROUP@,${TINYPROXY_GROUP},g'
SUBST_SED.docs+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.docs+= -e 's,@DATADIR@,${PREFIX}/share/tinyproxy,g'
SUBST_SED.docs+= -e 's,@VARBASE@,${VARBASE},g'
INSTALLATION_DIRS= ${EGDIR} share/doc/tinyproxy
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/tinyproxy.conf \
${DESTDIR}${EGDIR}/tinyproxy.conf.default
${INSTALL_DATA} ${WRKSRC}/doc/filter-howto.txt \
${DESTDIR}${PREFIX}/share/doc/tinyproxy/
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|