aboutsummaryrefslogtreecommitdiffstats
path: root/shells/pdksh/Makefile
blob: 374d8870ddfcc37cc388ee91d0d23b277ec04cb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:    pdksh
# Date created:     23 May 1995
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pdksh
PORTVERSION=    5.2.14p2
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.*//}

PATCH_SITES=    ${MASTER_SITES}
PATCHFILES= ${DISTNAME}-patches.1 ${DISTNAME}-patches.2
PATCH_DIST_STRIP= -p2

MAINTAINER= tg@FreeBSD.org
COMMENT=    The Public Domain Korn Shell

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

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>