openbsd-ports/www/polipo/Makefile
sthen 91faa22c52 Where a program with an rc script _requires_ a certain command line
parameter to daemonize, move the parameter from daemon to daemon_flags,
so that the user cannot inadvertently prevent it from daemonizing by
adjusting the flags.

Discussed with ajacoutot and schwarze, this method was suggested
by schwarze@ as a simpler alternative to my diff. ok aja@
2011-12-17 22:01:12 +00:00

42 lines
974 B
Makefile

# $OpenBSD: Makefile,v 1.16 2011/12/17 22:01:13 sthen Exp $
COMMENT= HTTP caching proxy
DISTNAME= polipo-1.0.4.1
CATEGORIES= www
REVISION= 6
HOMEPAGE= http://www.pps.jussieu.fr/~jch/software/polipo/
MAINTAINER= Matthias Kilian <kili@openbsd.org>
MASTER_SITES= http://freehaven.net/~chrisd/polipo/
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c
USE_GROFF= Yes
post-extract:
@perl -pi -e "s,/usr/local/share/polipo/,${LOCALBASE}/share/polipo/," \
${WRKSRC}/polipo.man
@perl -pi -e "s,/var/cache/polipo/,/var/polipo/cache," \
${WRKSRC}/polipo.man
@perl -pi -e "s,/usr/share/polipo/www/,${LOCALBASE}/share/polipo/," \
${WRKSRC}/polipo.man
@perl -pi -e "s,/etc,${SYSCONFDIR},g" \
${WRKSRC}/polipo.man
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/polipo
${INSTALL_DATA} ${WRKSRC}/*.sample ${PREFIX}/share/examples/polipo
NO_REGRESS= Yes
.include <bsd.port.mk>