# New ports collection makefile for:	pwman
# Date created:				23 June 2002
# Whom:					Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD: ports/security/pwman/Makefile,v 1.13 2008/12/14 20:16:44 miwi Exp $
#

PORTNAME=	pwman
PORTVERSION=	0.3.9
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	anders@FreeBSD.org
COMMENT=	Console password management application based on gpg(me)

LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2
RUN_DEPENDS=	gpgv:${PORTSDIR}/security/gnupg1

GNU_CONFIGURE=	yes

MAN1=		pwman.1

PLIST_FILES=	bin/convert_pwdb bin/pwdb2csv bin/pwman

PORTDOCS=	AUTHORS COPYING ChangeLog README TODO

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/bin/gpg|${LOCALBASE}/bin/gpg|g' ${WRKSRC}/src/options.c

.if !defined(NOPORTDOCS)
post-install:
	@${INSTALL} -d -m 0755 ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>
