aboutsummaryrefslogtreecommitdiffstats
path: root/shells/flash/Makefile
blob: ec05707f1f1010f32f08b5cb8d3e66da72129224 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    flash
# Date created:     11 Dec 1999
# Whom:         Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   flash
PORTVERSION=    0.9.5
CATEGORIES= shells
MASTER_SITES=   http://www.netsoc.ucd.ie/flash/ \
        ftp://ftp.netsoc.ucd.ie/pub/computing/flash/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A ncurses-based restriction shell

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CFLAGS="${CFLAGS} -rdynamic" \
        LDFLAGS="${LDFLAGS} -rdynamic"
SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message

MAN1=       flash.1

PROGRAM=    alarms background countdown
SCRIPT=     mailshell system.menu system.menu.9798 system.menu.oldlast \
        system.menu.old
DATA=       system.bg.Netsoc.3 system.bg.Netsoc.4 system.flashlogin \
        system.maillogin system.module system.module.9798 system.rc \
        system.rc.mailshell

post-patch:
.for file in ${SCRIPT}
    @${REINPLACE_CMD} -e "s:/usr/slocal:${PREFIX}:g" ${WRKSRC}/orcasetup/${file}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/flash ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/flash.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${PREFIX}/lib/flash
    ${INSTALL_DATA} ${WRKSRC}/Manual ${PREFIX}/lib/flash
.for file in ${PROGRAM}
    ${INSTALL_PROGRAM} ${WRKSRC}/modules/${file} ${PREFIX}/lib/flash
.endfor
.for file in ${SCRIPT}
    ${INSTALL_SCRIPT} ${WRKSRC}/orcasetup/${file} ${PREFIX}/lib/flash
.endfor
.for file in ${DATA}
    ${INSTALL_DATA} ${WRKSRC}/orcasetup/${file} ${PREFIX}/lib/flash
.endfor
    @${MKDIR} ${PREFIX}/lib/flash/flashdocs
    ${INSTALL_DATA} ${WRKSRC}/orcasetup/flashdocs/* ${PREFIX}/lib/flash/flashdocs

post-install:
    @${ECHO_MSG} "Updating /etc/shells"
    @${CP} /etc/shells /etc/shells.bak
    @(${GREP} -v ${PREFIX}/bin/flash /etc/shells.bak; \
    ${ECHO_CMD} ${PREFIX}/bin/flash) > /etc/shells
    @${RM} /etc/shells.bak
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>