freebsd-ports/ports-mgmt/p5-FreeBSD-Portindex/Makefile
Matthew Seaman d3805ba149 Update to 3.0
- Trim Makefile headers
 - Changes:

This is a routine bugfix release without major code modifications.
However a change to the cached data will require cache-init to be run
to update the cache contents.

    - Fix detection of ports that use options with OPTIONSng.
      Problem reported by Ion-Mihai Tetcu <itetcu@FreeBSD.org>

    - Employ 'use parent' pragma for defining inheritance

Feature safe:	  yes
2012-12-03 21:09:56 +00:00

64 lines
1.6 KiB
Makefile

# Created by: Matthew Seaman
# $FreeBSD$
PORTNAME= FreeBSD-Portindex
PORTVERSION= 3.0
CATEGORIES= ports-mgmt perl5
MASTER_SITES= http://www.infracaninophile.co.uk/portindex/
PKGNAMEPREFIX= p5-
MAINTAINER= matthew@FreeBSD.org
COMMENT= Incremental FreeBSD ports INDEX file generation
LICENSE= BSD
BUILD_DEPENDS= p5-BerkeleyDB>0:${PORTSDIR}/databases/p5-BerkeleyDB
RUN_DEPENDS:= ${BUILD_DEPENDS}
# GraphViz not required for portindex to run or generate GraphViz
# format output: this is only needed to render the output on the same
# machine.
OPTIONS_DEFINE= GRAPHVIZ
GRAPHVIS_DESCR= Add GraphViz run-time dependency
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGRAPHVIZ}
RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz
.endif
USE_XZ= yes
PERL_CONFIGURE= yes
CACHE_DIR?= /var/db/portindex
CACHE_OWNER?= root
CACHE_GROUP?= operator
CACHE_MODE?= 0775
CFG_FILE= portindex.cfg
MAN1= find-updated.1 cache-init.1 cache-update.1 portindex.1 \
portdepends.1 make-readmes.1
post-install: install-conf install-cache
install-conf:
cd ${WRKSRC} ; \
${INSTALL_DATA} ${CFG_FILE}.sample ${PREFIX}/etc/${CFG_FILE}.sample
cd ${PREFIX}/etc ; \
if ${TEST} ! -f ${CFG_FILE} ; then \
${CP} -p ${CFG_FILE}.sample ${CFG_FILE} ; \
fi
# Create the cache directory and make it writable by group 'operator'
# by default. Only if the cache directory doesn't already exist.
# Have to do this by hand if installing via pkg.
install-cache:
if ${TEST} ! -d ${CACHE_DIR} ; then \
${MKDIR} ${CACHE_DIR} ; \
${CHOWN} ${CACHE_OWNER}:${CACHE_GROUP} ${CACHE_DIR} ; \
${CHMOD} ${CACHE_MODE} ${CACHE_DIR} ; \
fi
.include <bsd.port.mk>