# New ports collection makefile for:	unssh
# Date created:				30 July 2009
# Whom:					Dax Labrador <semprix@bsdmail.org>
#
# $FreeBSD: ports/security/unssh/Makefile,v 1.2 2010/03/17 07:29:51 miwi Exp $
#

PORTNAME=	unssh
PORTVERSION=	1.4
CATEGORIES=	security
MASTER_SITES=	http://www.semprixd.com/shares/ports/

MAINTAINER=	semprix@bsdmail.org
COMMENT=	Fast way to delete entries from OpenSSH known_hosts file

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash

NO_BUILD=	yes
PLIST_FILES=	bin/unssh

PATCH_LIST=	extra-patch-unssh.sh
EXTRA_PATCHES=	${PATCH_LIST:C|^|${WRKDIR}/|g}

pre-patch:
.for patch in ${PATCH_LIST}
	@${SED} ${_SUB_LIST_TEMP} ${FILESDIR}/${patch}.in > ${WRKDIR}/${patch}
.endfor

do-install:
	@${INSTALL} -d ${PREFIX}/bin
	@${CP} ${WRKSRC}/unssh.sh ${PREFIX}/bin/unssh
	@${CHMOD} ${BINMODE} ${PREFIX}/bin/unssh

.include <bsd.port.mk>
