-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.bsd
62 lines (54 loc) · 2.06 KB
/
Makefile.bsd
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
# New ports collection makefile for: flash
# Version required: 0.9.4
# Date created: 11 Dec 1999
# Whom: Will Andrews <[email protected]>
#
# $FreeBSD$
#
DISTNAME= flash-0.9.4
CATEGORIES= shells
MASTER_SITES= ftp://ftp.netsoc.ucd.ie/pub/computing/flash/
MAINTAINER= [email protected]
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKE_ENV= prefix=${PREFIX}
WRKSRC= ${WRKDIR}/flash
MAN1= flash.1
pre-build:
@${RM} -rf ${WRKSRC}/modules/countdown ${WRKSRC}/modules/background
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/flash ${PREFIX}/bin
@${MKDIR} ${PREFIX}/lib/flash/flashdocs/
.for DOC in checkflash system.bg.Netsoc.3 system.bg.Netsoc.4 system.flashlogin
\
system.maillogin system.module system.module.9798 system.rc
system.rc.mailshell
@${INSTALL_DATA} ${WRKSRC}/orcasetup/${DOC} ${PREFIX}/lib/flash/
.endfor
.for PROG in background countdown
@${INSTALL_PROGRAM} ${WRKSRC}/modules/${PROG} ${PREFIX}/lib/flash/
.endfor
.for SCRIPT in mailshell system.menu system.menu.9798 system.menu.oldlast
system.menu~ \
system.menu.old
@${PERL} -pi -e "s:/usr/slocal:${PREFIX}:g"
${WRKSRC}/orcasetup/${SCRIPT}
@${INSTALL_SCRIPT} ${WRKSRC}/orcasetup/${SCRIPT} ${PREFIX}/lib/flash
.endfor
@${INSTALL_DATA} ${WRKSRC}/orcasetup/flashdocs/*
${PREFIX}/lib/flash/flashdocs/
@${INSTALL_MAN} ${WRKSRC}/flash.1 ${PREFIX}/man/man1
@${INSTALL_PROGRAM} ${WRKSRC}/flash ${PREFIX}/bin
post-install:
@${ECHO} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/flash /etc/shells.bak; \
${ECHO} ${PREFIX}/bin/flash) > /etc/shells
@${RM} /etc/shells.bak
@${ECHO}
@${ECHO} " -------------------- WARNING -------------------------- "
@${ECHO} "This software is not yet ready-to-go on your system. You "
@${ECHO} "need to configure flash in ${PREFIX}/lib/flash in order for"
@${ECHO} "it to work properly."
@${ECHO}
.include <bsd.port.mk>