ports/51791: Change-request: shell/pdksh (pdksh-5.2.14p2 -> pdksh-5.2.14.p2)

Cyrille Lefevre cyrille.lefevre at laposte.net
Mon May 5 13:00:27 UTC 2003


>Number:         51791
>Category:       ports
>Synopsis:       Change-request: shell/pdksh (pdksh-5.2.14p2 -> pdksh-5.2.14.p2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 06:00:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 5.0-RELEASE-p4 i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 5.0-RELEASE-p4 FreeBSD 5.0-RELEASE-p4 #8: Thu Apr 24 19:09:07 CEST 2003 root at gits:/disk3/freebsd/current/obj/disk3/freebsd/current/src/sys/CUSTOM i386
>Description:
	regarding the porters handbook, this port should be named
	pdksh-5.2.14.p2 and not pdksh-5.2.14p2. see the following
	URL for details :

	http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-naming.html#PORTING-PKGNAME

	Makefile
		PORTVERSION and DISTNAME changed
		USE_REINPLACE added
		"ed" changed to REINPLACE_CMD
>How-To-Repeat:
	n/a
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/shells/pdksh/Makefile,v
retrieving revision 1.28
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.28 Makefile
--- Makefile	7 Mar 2003 06:10:39 -0000	1.28
+++ Makefile	29 Apr 2003 06:23:06 -0000
@@ -6,14 +6,14 @@
 #
 
 PORTNAME=	pdksh
-PORTVERSION=	5.2.14p2
+PORTVERSION=	5.2.14.p2
 CATEGORIES=	shells
 MASTER_SITES=	ftp://ftp.cs.mun.ca/pub/pdksh/ \
 		http://gd.tuwien.ac.at/utils/shells/pdksh/ \
 		ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \
 		ftp://ftp.demon.net/pub/mirrors/pdksh/ \
 		ftp://ftp.rge.com/pub/shells/pdksh/
-DISTNAME=	${PORTNAME}-${PORTVERSION:C/p.*//}
+DISTNAME=	${PORTNAME}-${PORTVERSION:R}
 
 PATCH_SITES=	${MASTER_SITES}
 PATCHFILES=	${DISTNAME}-patches.1 ${DISTNAME}-patches.2
@@ -22,13 +22,17 @@
 MAINTAINER=	tg at FreeBSD.org
 COMMENT=	The Public Domain Korn Shell
 
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	LDSTATIC=-static
 MAN1=		ksh.1
 
 post-patch:
-	@(${ECHO_CMD} ",s/v${PORTVERSION:C/p.*//}/v${PORTVERSION:S/p/./}/"; \
-		${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c
+.for file in ksh.Man version.c
+	@${REINPLACE_CMD} -e \
+	"s/v${PORTVERSION:N*p*}${PORTVERSION:M*p*:R} /v${PORTVERSION:S/p//} /"\
+		${WRKSRC}/${file}
+.endfor
 
 post-install:
 	@${ECHO} "Updating /etc/shells"
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list