summaryrefslogtreecommitdiffstats
path: root/shells/pdksh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shells/pdksh/Makefile')
-rw-r--r--shells/pdksh/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/shells/pdksh/Makefile b/shells/pdksh/Makefile
index a38e18e..588036f 100644
--- a/shells/pdksh/Makefile
+++ b/shells/pdksh/Makefile
@@ -6,13 +6,18 @@
#
PORTNAME= pdksh
-PORTVERSION= 5.2.14
+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:N*p*}${PORTVERSION:M*p*:R}
+
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= ${DISTNAME}-patches.1 ${DISTNAME}-patches.2
+PATCH_DIST_STRIP= -p2
MAINTAINER= tg@FreeBSD.org
@@ -20,6 +25,10 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= LDSTATIC=-static
MAN1= ksh.1
+post-patch:
+ @(${ECHO_CMD} ",s/v${PORTVERSION:N*p*}${PORTVERSION:M*p*:R} /v${PORTVERSION:S/p//} /"; \
+ ${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c
+
post-install:
@${ECHO} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
OpenPOWER on IntegriCloud