ports/75537: Update port: net/ldapsh - update to 2.00, kill a kitten, ...

Florent Thoumie flz at xbsd.org
Mon Dec 27 12:00:49 UTC 2004


>Number:         75537
>Category:       ports
>Synopsis:       Update port: net/ldapsh - update to 2.00, kill a kitten, ...
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 27 12:00:47 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Florent Thoumie
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
Xbsd.org
>Environment:
System: FreeBSD gate.xbsd.org 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Wed Nov 24 16:35:34 CET 2004 root at gate.xbsd.org:/usr/src/sys/i386/compile/GATE i386


	
>Description:

Update ldapsh port to 2.00.
Make use of new SUB_FILES variable.
Use newly created Makefile.PL.
Blah.

>How-To-Repeat:
>Fix:

--- ldapsh-2.00.diff begins here ---
diff -ruN ldapsh/Makefile ldapsh.new/Makefile
--- ldapsh/Makefile	Sun Dec 19 20:57:16 2004
+++ ldapsh.new/Makefile	Mon Dec 27 12:43:27 2004
@@ -6,49 +6,41 @@
 #
 
 PORTNAME=	ldapsh
-PORTVERSION=	2.0.b1
+PORTVERSION=	2.00
+PORTEPOCH=	1
 CATEGORIES=	net
-MASTER_SITES=	http://madstop.com/ldapsh/
-DISTNAME=	ldapsh-2.0b1
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR=	../../authors/id/L/LO/LOOSIFER/
 
 MAINTAINER=	flz at xbsd.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/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent
+		${SITE_PERL}/Parse/Lex.pm:${PORTSDIR}/devel/p5-ParseLex
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
-PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
 
-SED_SCRIPT=	-e 's,%%PREFIX%%,${PREFIX},g' \
-		-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
-		-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g'
+MAN1=		ldapsh.1
+MAN3=		Net::LDAP::Config.3 Net::LDAP::Shell.3 \
+		Net::LDAP::Shell::Parse.3 Net::LDAP::Shell::Util.3
 
-USE_PERL5=	yes
-NO_BUILD=	yes
 USE_REINPLACE=	yes
-WRKSRC=		${WRKDIR}/ldapsh
+PERL_CONFIGURE=	yes
 
 .include <bsd.port.pre.mk>
 
 post-patch:
 	${REINPLACE_CMD} -e "s,/usr/local/bin/perl,${PERL}," ${WRKSRC}/ldapsh
 
-pre-install:
-	${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message > ${WRKDIR}/pkg-message
-
-do-install:
-	${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/COMMANDS ${DOCSDIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/ldapsh ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/examples/LdapConfig.pl ${EXAMPLESDIR}/LdapConfig.pl
-	${CP} -r ${WRKSRC}/lib/Net ${SITE_PERL}
-
 post-install:
-	${CAT} ${PKGMESSAGE}
+	${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/COMMANDS ${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/examples/ldapsh_config ${EXAMPLESDIR}/
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
diff -ruN ldapsh/distinfo ldapsh.new/distinfo
--- ldapsh/distinfo	Sun Dec 19 20:57:16 2004
+++ ldapsh.new/distinfo	Mon Dec 27 01:03:13 2004
@@ -1,2 +1,2 @@
-MD5 (ldapsh-2.0b1.tgz) = cd2a8d7ebfbde0a208f2f134439ce8f9
-SIZE (ldapsh-2.0b1.tgz) = 30677
+MD5 (ldapsh-2.00.tar.gz) = 3d7cc63f268ed05beea2fac95c5ecf87
+SIZE (ldapsh-2.00.tar.gz) = 41546
diff -ruN ldapsh/files/pkg-message.in ldapsh.new/files/pkg-message.in
--- ldapsh/files/pkg-message.in	Thu Jan  1 01:00:00 1970
+++ ldapsh.new/files/pkg-message.in	Mon Dec 27 12:29:03 2004
@@ -0,0 +1,11 @@
+*************************************************************
+Before using ldapsh, you'll probably want to :
+
+- Create the configuration file (an example is in
+  %%EXAMPLESDIR%%/ldapsh_config, modify it to
+  suit your needs and place it in %%PREFIX%%/etc/).
+- You can create a per-user configuration, just name the
+  configuration file $HOME/.ldapsh_config.
+- See %%DOCSDIR%%/COMMANDS for an overview of
+  the available commands.
+*************************************************************
diff -ruN ldapsh/pkg-message ldapsh.new/pkg-message
--- ldapsh/pkg-message	Sun Dec 19 20:57:16 2004
+++ ldapsh.new/pkg-message	Thu Jan  1 01:00:00 1970
@@ -1,9 +0,0 @@
-*************************************************************
-Before using ldapsh, you'll probably want to :
-
-- Create the configuration file (an example is in
-  %%EXAMPLESDIR%%/LdapConfig.pl, modify it to
-  suit your needs and place it in %%PREFIX%%/etc/)
-- See %%DOCSDIR%%/COMMANDS for an overview of
-  the available commands.
-*************************************************************
diff -ruN ldapsh/pkg-plist ldapsh.new/pkg-plist
--- ldapsh/pkg-plist	Sun Dec 19 20:57:16 2004
+++ ldapsh.new/pkg-plist	Mon Dec 27 12:57:22 2004
@@ -1,19 +1,28 @@
 bin/ldapsh
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/ldapsh/.packlist
 %%SITE_PERL%%/Net/LDAP/Config.pm
 %%SITE_PERL%%/Net/LDAP/Shell.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/cat.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/clone.pm
+%%SITE_PERL%%/Net/LDAP/Shell/Commands/commands.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/edit.pm
+%%SITE_PERL%%/Net/LDAP/Shell/Commands/help.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/ls.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/new.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/rm.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/search.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Commands/stub.pm
+%%SITE_PERL%%/Net/LDAP/Shell/Complete.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Desc.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Schema.pm
+%%SITE_PERL%%/Net/LDAP/Shell/Parse.pm
+%%SITE_PERL%%/Net/LDAP/Shell/Parser.pm
 %%SITE_PERL%%/Net/LDAP/Shell/Util.pm
+%%SITE_PERL%%/Net/LDAP/Shell/grammar.yp
+%%SITE_PERL%%/Net/LDAP/Shell/makefile
 %%DOCSDIR%%/COMMANDS
-%%EXAMPLESDIR%%/LdapConfig.pl
+%%EXAMPLESDIR%%/ldapsh_config
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/ldapsh
 @dirrm %%SITE_PERL%%/Net/LDAP/Shell/Commands
 @dirrm %%SITE_PERL%%/Net/LDAP/Shell
 @dirrm %%DOCSDIR%%
--- ldapsh-2.00.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list