48631583b0
3.0.8 is a stable release which includes many significant enhancements and new features, and the usual squashed bugs. The most prominent new features are the ability to "tag" headers and apply actions based on those tags, making Privoxy much more flexibile, and Privoxy can now act as an "intercepting" proxy.
72 lines
1.7 KiB
Makefile
72 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2008/03/12 21:35:03 drochner Exp $
|
|
#
|
|
|
|
DISTNAME= ${PKGNAME_NOREV}-stable-src
|
|
PKGNAME= privoxy-3.0.8
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/}
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
HOMEPAGE= http://www.privoxy.org/
|
|
COMMENT= Web proxy with advanced filtering capabilities
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PRIVOXY_USER?= privoxy
|
|
PRIVOXY_GROUP?= privoxy
|
|
PKG_GROUPS_VARS+= PRIVOXY_GROUP
|
|
PKG_USERS_VARS+= PRIVOXY_USER
|
|
|
|
PKG_SYSCONFSUBDIR?= privoxy
|
|
|
|
RCD_SCRIPTS= privoxy
|
|
PKG_GROUPS= ${PRIVOXY_GROUP}
|
|
PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/privoxy
|
|
|
|
CPPFLAGS+= -Dunix
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable
|
|
|
|
USE_FEATURES= snprintf
|
|
USE_TOOLS+= autoconf213 gmake mktemp
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
USE_TOOLS+= perl
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
PTHREAD_OPTS+= require
|
|
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
|
CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q}
|
|
CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q}
|
|
CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q}
|
|
|
|
USER_GROUP= ${PRIVOXY_USER} ${PRIVOXY_GROUP}
|
|
|
|
.for i in \
|
|
config trust default.action standard.action user.action default.filter
|
|
CONF_FILES_PERMS+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i} ${USER_GROUP} 0660
|
|
.endfor
|
|
|
|
OWN_DIRS_PERMS+= /var/log/privoxy ${USER_GROUP} 0775
|
|
|
|
FILES_SUBST+= PRIVOXY_USER=${PRIVOXY_USER:Q}
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_FILES.paths= config
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && autoheader && autoconf
|
|
|
|
post-install:
|
|
${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${EGDIR}
|
|
${CHMOD} -R a+r ${EGDIR}
|
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|