# New ports collection makefile for: polipo # Date created: 2005-01-25 # Whom: Frank Behrens # # $FreeBSD$ # PORTNAME= polipo PORTVERSION= 1.0.4.1 CATEGORIES= www MASTER_SITES= http://freehaven.net/~chrisd/polipo/ \ http://www.sax.de/~frank/polipo4bsd/files/ MAINTAINER= frank@pinky.sax.de COMMENT= A small and fast caching web proxy MAN1= polipo.1 MAKE_JOBS_SAFE= yes USE_RC_SUBR= polipo.sh .include .if defined(NO_PTEXINFO) ALL_TARGET= polipo NOPORTDOCS= yes .else INFO= polipo .endif DOCSDIR= ${DATADIR}/www/doc PORTDOCS= * SUB_FILES= pkg-message pkg-install pkg-deinstall 400.polipo SUB_LIST+= USER=${PUSER} GROUP=${PGRP} DESTDIR=${DESTDIR} PCONFIGDIR=${PCONFIGDIR} \ PCACHEDIR=${PCACHEDIR} PPIDDIR=${PPIDDIR} PPIDFILE=${PPIDFILE} \ PLOGFILE=${PLOGFILE} # polipo installation options, propagated to install scripts PUSER?= polipo PGRP?= polipo PCONFIGDIR?= ${PREFIX}/etc/polipo/ PCACHEDIR?= /var/cache/polipo PPIDDIR?= /var/run/polipo/ PPIDFILE= ${PPIDDIR}polipo.pid PLOGFILE?= /var/log/polipo MAKE_ENV+= DISK_CACHE_ROOT=${PCACHEDIR} pre-install: apply-slist @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL do-install: ${INSTALL_PROGRAM} ${WRKSRC}/polipo ${PREFIX}/bin/ ${MKDIR} ${PREFIX}/etc/periodic/daily/ ${INSTALL_SCRIPT} ${WRKDIR}/400.polipo ${PREFIX}/etc/periodic/daily/ ${INSTALL_MAN} ${WRKSRC}/polipo.man ${PREFIX}/man/man1/polipo.1 ${MKDIR} ${PCONFIGDIR} ${INSTALL_DATA} ${WRKSRC}/config.sample ${PCONFIGDIR} ${INSTALL_DATA} ${WRKSRC}/forbidden.sample ${PCONFIGDIR} ${CHGRP} -R ${PGRP} ${PCONFIGDIR} .if !defined(NO_PTEXINFO) ${INSTALL_DATA} ${WRKSRC}/polipo.info ${PREFIX}/info/ .endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/localindex.html ${DATADIR}/www/index.html ${CHGRP} -R ${PGRP} ${DATADIR} .endif post-install: @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include