# New ports collection makefile for:	gorilla
# Date created:				2006-02-11
# Whom:					Kay Lehmann <kay_lehmann@web.de>
#
# $FreeBSD: ports/security/gorilla/Makefile,v 1.10 2009/02/23 14:46:34 mm Exp $
#

PORTNAME=	gorilla
PORTVERSION=	1.4
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://www.fpx.de/fp/Software/Gorilla/download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Password Gorilla is cross-platform Password Manager

LIB_DEPENDS=	itcl.3:${PORTSDIR}/lang/itcl
RUN_DEPENDS=	${LOCALBASE}/lib/bwidget/init.tcl:${PORTSDIR}/x11-toolkits/bwidget

USE_TCL_RUN=	yes
USE_TK=		yes
GNU_CONFIGURE=	yes
NO_BUILD=	yes

do-install:
	@${MKDIR} ${PREFIX}/lib/gorilla
	@${INSTALL_SCRIPT} ${WRKSRC}/*.tcl ${PREFIX}/lib/gorilla
	${TAR} -C ${WRKSRC} -cf - blowfish pics pwsafe twofish sha1 | \
		${TAR} -C ${PREFIX}/lib/gorilla --unlink -xf -
	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

post-install:
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gorilla
	@${CHMOD} ugo+rx ${PREFIX}/lib/gorilla/blowfish/*.tcl
	@${CHMOD} ugo+rx ${PREFIX}/lib/gorilla/pwsafe/*.tcl
	@${CHMOD} ugo+rx ${PREFIX}/lib/gorilla/twofish/*.tcl
	@${CHMOD} ugo+rx ${PREFIX}/lib/gorilla/sha1/*.tcl

.include <bsd.port.mk>
