aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/wanted-ports/Makefile
blob: 4b0a6193dc9c24e77204913a8fbaacfcee8fdc50 (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
# Created by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
# $FreeBSD$

PORTNAME=	wanted-ports
PORTVERSION=	0.2
#PORTREVISION is set from ${CFGFILE}
CATEGORIES=	ports-mgmt
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	matthew@FreeBSD.org
COMMENT=	Just depend on a configurable, arbitrary set of other ports

LICENSE=	BSD

NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	${PORTNAME}   \
		${PORTNAME}.1
SUB_LIST=	PORTNAME=${PORTNAME} \
		PKGNAME=${PKGNAME}
PLIST_SUB=	PORTNAME=${PORTNAME}
PLIST_FILES=	bin/${PORTNAME} \
		man/man1/${PORTNAME}.1.gz

.if defined(WANTEDPORTSCFG)
CFGFILE=	${WANTEDPORTSCFG}
.else
CFGFILE?=	/var/db/${PORTNAME}.conf
.endif

.if exists(${CFGFILE})
.include "${CFGFILE}"
.endif

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	${INSTALL_MAN} ${WRKDIR}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/

.include <bsd.port.mk>