# New ports collection makefile for:	pkgfe
# Date created:		2006-01-14
# Whom:			Sulev-Madis Silber <madis555@hot.ee>
#
# $FreeBSD: ports/sysutils/pkgfe/Makefile,v 1.7 2006/10/04 05:47:49 rafan Exp $
#

PORTNAME=	pkgfe
PORTVERSION=	20061003
CATEGORIES=	sysutils
MASTER_SITES=	http://kodu.neti.ee/~madis555/pkgfe/releases/ \
		http://ketas.life.ee/pkgfe/releases/ \
		http://ketas.si.pri.ee/pkgfe/releases/ \

MAINTAINER=	madis555@hot.ee
COMMENT=	Ncurses front-end to manage the ports collection

RUN_DEPENDS=	portupgrade:${PORTSDIR}/sysutils/portupgrade \
		portaudit:${PORTSDIR}/security/portaudit

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600033 && ( ${OSVERSION} < 504103 || ${OSVERSION} > 600000 )
RUN_DEPENDS+=	portsnap:${PORTSDIR}/sysutils/portsnap
.endif

NO_BUILD=	yes

PLIST_FILES=	sbin/pkgfe etc/pkgfe.conf.sample

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

.include <bsd.port.post.mk>
