# Created by: Mahlon E. Smith <mahlon@martini.nu>
# $FreeBSD: tags/RELEASE_11_0_0/net/shelldap/Makefile 417207 2016-06-21 13:24:53Z mat $

PORTNAME=	shelldap
PORTVERSION=	1.3.2
CATEGORIES=	net perl5
MASTER_SITES=	https://bitbucket.org/mahlon/shelldap/downloads/ \
		http://dl.dropbox.com/u/7234177/Releases/ \
		http://www.martini.nu/misc/

MAINTAINER=	mahlon@martini.nu
COMMENT=	Shell-like environment for LDAP

LICENSE=	BSD3CLAUSE

RUN_DEPENDS=	p5-Algorithm-Diff>=0:devel/p5-Algorithm-Diff \
		p5-perl-ldap>=0:net/p5-perl-ldap \
		p5-Term-Shell>=0:devel/p5-Term-Shell \
		p5-Term-ReadKey>=0:devel/p5-Term-ReadKey \
		p5-Term-ReadLine-Gnu>=0:devel/p5-Term-ReadLine-Gnu \
		p5-YAML-Syck>=0:textproc/p5-YAML-Syck

USES=		perl5
USE_PERL5=	extract build run

PLIST_FILES=	bin/shelldap man/man1/shelldap.1.gz

NO_BUILD=	yes
NO_ARCH=	yes

post-extract:
	${LOCALBASE}/bin/pod2man < ${WRKSRC}/shelldap > ${WRKSRC}/shelldap.1

do-install:
	${INSTALL_MAN} ${WRKSRC}/shelldap.1 ${STAGEDIR}${MANPREFIX}/man/man1
	${INSTALL_SCRIPT} ${WRKSRC}/shelldap ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
