aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/p5-FreeBSD-Portindex/Makefile
blob: 2cd5dea612b02448cd601bdef304a52d87582e38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Matthew Seaman

PORTNAME=	FreeBSD-Portindex
PORTVERSION=	3.6
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=	BSD2CLAUSE

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-BerkeleyDB>0:databases/p5-BerkeleyDB

USES=		perl5 tar:xz
USE_PERL5=	configure
NO_ARCH=	yes

CACHE_DIR?=	/var/db/portindex
CACHE_OWNER?=	root
CACHE_GROUP?=	operator
CACHE_MODE?=	0775

CFG_FILE=	portindex.cfg

PLIST_SUB+=	CACHE_DIR=${CACHE_DIR} \
		CACHE_OWNER=${CACHE_OWNER} \
		CACHE_GROUP=${CACHE_GROUP} \
		CACHE_MODE=${CACHE_MODE}

# 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
GRAPHVIZ_DESC=	Add GraphViz run-time dependency
GRAPHVIZ_RUN_DEPENDS=	dot:graphics/graphviz

post-install:
	${MKDIR} ${STAGEDIR}${CACHE_DIR}
	${INSTALL_DATA} ${WRKSRC}/${CFG_FILE}.sample ${STAGEDIR}${PREFIX}/etc/${CFG_FILE}.sample

.include <bsd.port.mk>