svn commit: r371877 - head/www/polipo
John Marino
marino at FreeBSD.org
Fri Oct 31 17:09:24 UTC 2014
Author: marino
Date: Fri Oct 31 17:09:22 2014
New Revision: 371877
URL: https://svnweb.freebsd.org/changeset/ports/371877
QAT: https://qat.redports.org/buildarchive/r371877/
Log:
www/polipo: Fix build that uses custom PCACHEDIR
While here, remove obsolete @dirrm lines, combine install targets,
and condense mkdir commands into one.
PR: 193606
Submitted by: WATANABE Kazuhiro
Approved by: maintainer (Frank Behrens)
Modified:
head/www/polipo/Makefile
head/www/polipo/pkg-plist
Modified: head/www/polipo/Makefile
==============================================================================
--- head/www/polipo/Makefile Fri Oct 31 16:43:11 2014 (r371876)
+++ head/www/polipo/Makefile Fri Oct 31 17:09:22 2014 (r371877)
@@ -26,6 +26,7 @@ SUB_FILES= pkg-message pkg-install pkg-d
SUB_LIST+= USER=${PUSER} GROUP=${PGRP} DESTDIR=${DESTDIR} PCONFIGDIR=${PCONFIGDIR} \
PCACHEDIR=${PCACHEDIR} PPIDDIR=${PPIDDIR} PPIDFILE=${PPIDFILE} \
PLOGFILE=${PLOGFILE}
+PLIST_SUB= PCACHEDIR=${PCACHEDIR}
# polipo installation options, propagated to install scripts
PUSER?= polipo
@@ -38,18 +39,16 @@ PLOGFILE?= /var/log/polipo
MAKE_ENV+= DISK_CACHE_ROOT=${PCACHEDIR}
do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily/ \
+ ${STAGEDIR}${PCONFIGDIR} \
+ ${STAGEDIR}${PCACHEDIR} \
+ ${STAGEDIR}${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/polipo ${STAGEDIR}${PREFIX}/bin/
- ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily/
${INSTALL_SCRIPT} ${WRKDIR}/400.polipo ${STAGEDIR}${PREFIX}/etc/periodic/daily/
${INSTALL_MAN} ${WRKSRC}/polipo.man ${STAGEDIR}${PREFIX}/man/man1/polipo.1
- ${MKDIR} ${STAGEDIR}${PCONFIGDIR}
${INSTALL_DATA} ${WRKSRC}/config.sample ${WRKSRC}/forbidden.sample ${STAGEDIR}${PCONFIGDIR}
${INSTALL_DATA} ${WRKSRC}/polipo.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/localindex.html ${STAGEDIR}${DATADIR}/www/index.html
-post-install:
- ${MKDIR} ${STAGEDIR}${PCACHEDIR}
-
.include <bsd.port.post.mk>
Modified: head/www/polipo/pkg-plist
==============================================================================
--- head/www/polipo/pkg-plist Fri Oct 31 16:43:11 2014 (r371876)
+++ head/www/polipo/pkg-plist Fri Oct 31 17:09:22 2014 (r371877)
@@ -4,9 +4,4 @@ bin/polipo
etc/periodic/daily/400.polipo
man/man1/polipo.1.gz
%%DATADIR%%/www/index.html
- at dirrmtry %%DATADIR%%/www
- at dirrmtry %%DATADIR%%
- at dirrmtry etc/polipo
- at dirrmtry etc/periodic/daily
- at dirrmtry etc/periodic
- at dirrmtry /var/cache/polipo
+ at dir %%PCACHEDIR%%
More information about the svn-ports-all
mailing list