4390d56940
the owner of all installed files is a non-root user. This change affects most packages that require special users or groups by making them use the specified unprivileged user and group instead. (1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to unprivileged.mk. These two variables are lists of other bmake variables that define package-specific users and groups. Packages that have user-settable variables for users and groups, e.g. apache and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP}, etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}. (2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2007/07/04 20:55:06 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= tinyproxy-1.6.2
|
|
PKGREVISION= 4
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyproxy/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://tinyproxy.sourceforge.net/
|
|
COMMENT= Lightweight HTTP/SSL proxy
|
|
|
|
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'
|
|
|
|
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/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|