summaryrefslogtreecommitdiff
path: root/ports-mgmt/pkgfe/Makefile
blob: cd06dfac7a80a0d890ea0268848ad5be73f35815 (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
# Created by: Sulev-Madis Silber <madis555@hot.ee>
# $FreeBSD$

PORTNAME=	pkgfe
PORTVERSION=	20090228
CATEGORIES=	ports-mgmt
MASTER_SITES=	http://kodu.neti.ee/~madis555/pkgfe/releases/ \
		http://ketas.si.pri.ee/pkgfe/releases/

MAINTAINER=	madis555@hot.ee
COMMENT=	Ncurses frontend for ports collection

RUN_DEPENDS=	portupgrade:${PORTSDIR}/ports-mgmt/portupgrade \
		portaudit:${PORTSDIR}/ports-mgmt/portaudit

MAN8=		pkgfe.8

NO_BUILD=	yes

NO_STAGE=	yes
do-install:
	${REINPLACE_CMD} -e 's|%PREFIX%|${PREFIX}|g' ${WRKSRC}/pkgfe
	${INSTALL_SCRIPT} ${WRKSRC}/pkgfe ${PREFIX}/sbin/pkgfe
	${INSTALL_DATA} ${WRKSRC}/pkgfe.conf ${PREFIX}/etc/pkgfe.conf.sample
	${INSTALL_MAN} ${WRKSRC}/pkgfe.8 ${PREFIX}/man/man8

post-install:
	@if [ ! -f ${PREFIX}/etc/pkgfe.conf ]; then \
		${CP} -p ${PREFIX}/etc/pkgfe.conf.sample ${PREFIX}/etc/pkgfe.conf ; \
	fi

.include <bsd.port.mk>