mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
c78f797bc8
flz@FreeBSD.org. Approved by: pav (mentor)
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# New ports collection makefile for: ldapsh
|
|
# Date created: Jul 28 2004
|
|
# Whom: Florent Thoumie <flz@xbsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ldapsh
|
|
PORTVERSION= 2.00
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= ../../authors/id/L/LO/LOOSIFER/
|
|
|
|
MAINTAINER= flz@FreeBSD.org
|
|
COMMENT= Interactive shell used to administer ldap directories
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
|
|
${SITE_PERL}/Term/ReadLine/Perl.pm:${PORTSDIR}/devel/p5-ReadLine-Perl \
|
|
${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
|
|
${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
|
|
${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
${SITE_PERL}/Parse/Lex.pm:${PORTSDIR}/devel/p5-ParseLex
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
MAN1= ldapsh.1
|
|
MAN3= Net::LDAP::Shell.3 \
|
|
Net::LDAP::Shell::Parse.3 Net::LDAP::Shell::Util.3
|
|
|
|
USE_REINPLACE= yes
|
|
PERL_CONFIGURE= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} > 500600
|
|
MAN3+= Net::LDAP::Config.3
|
|
.else
|
|
BUILD_DEPENDS+= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s,/usr/local/bin/perl,${PERL}," ${WRKSRC}/ldapsh
|
|
|
|
post-install:
|
|
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/COMMANDS ${DOCSDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ldapsh_config ${EXAMPLESDIR}/
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|