mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
4492f0b3af
designed to be used by one person or a small group of people. PR: ports/75554 Submitted by: Frank Behrens <frank@pinky.sax.de>
89 lines
2.6 KiB
Makefile
89 lines
2.6 KiB
Makefile
# New ports collection makefile for: polipo
|
|
# Date created: 2005-01-25
|
|
# Whom: Frank Behrens <frank@pinky.sax.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= polipo
|
|
PORTVERSION= 0.9.8
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.pps.jussieu.fr/~jch/software/files/polipo/ \
|
|
http://www.sax.de/~frank/polipo4bsd/files/
|
|
|
|
MAINTAINER= frank@pinky.sax.de
|
|
COMMENT= A small and fast caching web proxy
|
|
|
|
MAN1= polipo.1
|
|
|
|
USE_RC_SUBR= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# in some 4.x makeinfo does not work. So we do not try to build and install.
|
|
.if ${OSVERSION} < 500000
|
|
NO_PTEXINFO= yes
|
|
.endif
|
|
.if defined(NO_PTEXINFO)
|
|
ALL_TARGET= polipo
|
|
NOPORTDOCS= yes
|
|
.else
|
|
INFO= polipo
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
DOCSDIR= ${DATADIR}/www/doc
|
|
PORTDOCS= *
|
|
PLIST_FILES+= share/polipo/www/index.html
|
|
.endif
|
|
|
|
# created on the fly due to variable substitution
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message pkg-install pkg-deinstall 400.polipo polipo.sh
|
|
SUB_LIST+= USER=${PUSER} GROUP=${PGRP} DESTDIR=${DESTDIR} PCONFIGDIR=${PCONFIGDIR} \
|
|
PCACHEDIR=${PCACHEDIR} PPIDDIR=${PPIDDIR} PPIDFILE=${PPIDFILE} \
|
|
PLOGFILE=${PLOGFILE} RC_SUBR=${RC_SUBR}
|
|
|
|
# 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 ${DESTDIR}${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/polipo.sh ${DESTDIR}${PREFIX}/etc/rc.d/
|
|
${MKDIR} ${DESTDIR}${PREFIX}/etc/periodic/daily/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/400.polipo ${DESTDIR}${PREFIX}/etc/periodic/daily/
|
|
${INSTALL_MAN} ${WRKSRC}/polipo.man ${DESTDIR}${PREFIX}/man/man1/polipo.1
|
|
${MKDIR} ${DESTDIR}${PCONFIGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/config.sample ${DESTDIR}${PCONFIGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/forbidden.sample ${DESTDIR}${PCONFIGDIR}
|
|
${CHGRP} -R ${PGRP} ${DESTDIR}${PCONFIGDIR}
|
|
.if !defined(NO_PTEXINFO)
|
|
${INSTALL_DATA} ${WRKSRC}/polipo.info ${DESTDIR}${PREFIX}/info/
|
|
install-info ${PREFIX}/info/polipo.info ${DESTDIR}${PREFIX}/info/dir
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DESTDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${DESTDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/localindex.html ${DESTDIR}${DATADIR}/www/index.html
|
|
${CHGRP} -R ${PGRP} ${DESTDIR}${DATADIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|