mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
aa4e597344
Do not stop scanning if we see '$' as it does more harm than good. For $HOME/tm we should return $HOME/tm* Set license to BSD (not "public domain" due to sigact.[ch]). Submitted by: Simon Gerraty <sjg@juniper.net> Obtained from: NetBSD Approved by: skreuzer
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: pdksh
|
|
# Date created: 23 May 1995
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pdksh
|
|
PORTVERSION= 5.2.14p2
|
|
PORTREVISION= 4
|
|
CATEGORIES= shells
|
|
MASTER_SITES= http://gd.tuwien.ac.at/utils/shells/pdksh/ \
|
|
ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \
|
|
ftp://ftp.demon.net/pub/mirrors/pdksh/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/p.*//}
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCHFILES= ${DISTNAME}-patches.1 ${DISTNAME}-patches.2
|
|
PATCH_DIST_STRIP= -p2
|
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
|
COMMENT= The Public Domain Korn Shell
|
|
LICENSE= BSD
|
|
|
|
GNU_CONFIGURE= yes
|
|
MAN1= ksh.1
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_STATIC)
|
|
CONFIGURE_ENV+= LDSTATIC=-static
|
|
.endif
|
|
|
|
post-patch:
|
|
@(${ECHO_CMD} ",s/v${PORTVERSION:C/p.*//}/v${PORTVERSION:S/p/./}/"; \
|
|
${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c
|
|
|
|
post-install:
|
|
@${ECHO} "Updating /etc/shells"
|
|
@${CP} /etc/shells /etc/shells.bak
|
|
@(${GREP} -v "${PREFIX}/bin/ksh$$" /etc/shells.bak; \
|
|
${ECHO_CMD} ${PREFIX}/bin/ksh) > /etc/shells
|
|
@${RM} /etc/shells.bak
|
|
|
|
.include <bsd.port.mk>
|