diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-27 08:21:09 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-27 08:21:09 +0000 |
commit | eeeb0139e07411aeebb626de5f8ea547402b0cc1 (patch) | |
tree | dd2862a20460c5e93683e6e6eb59c20b93a59a97 /shells | |
parent | 5397ebb5e71ecefff32545875b73e19fe5ac0612 (diff) | |
download | ports-eeeb0139e07411aeebb626de5f8ea547402b0cc1.tar.gz ports-eeeb0139e07411aeebb626de5f8ea547402b0cc1.zip |
Notes
Diffstat (limited to 'shells')
-rw-r--r-- | shells/flash/Makefile | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/shells/flash/Makefile b/shells/flash/Makefile index 50132292057a..52bcbfa13ab1 100644 --- a/shells/flash/Makefile +++ b/shells/flash/Makefile @@ -9,15 +9,13 @@ MASTER_SITES= http://www.sourcefiles.org/Shells/ MAINTAINER= ports@FreeBSD.org COMMENT= A ncurses-based restriction shell -USE_GMAKE= yes +USES= gmake GNU_CONFIGURE= yes LDFLAGS+= -rdynamic CFLAGS+= -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 @@ -25,35 +23,26 @@ DATA= system.bg.Netsoc.3 system.bg.Netsoc.4 system.flashlogin \ system.maillogin system.module system.module.9798 system.rc \ system.rc.mailshell -NO_STAGE= yes 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 + ${INSTALL_PROGRAM} ${WRKSRC}/flash ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/flash.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/flash + ${INSTALL_DATA} ${WRKSRC}/Manual ${STAGEDIR}${PREFIX}/lib/flash .for file in ${PROGRAM} - ${INSTALL_PROGRAM} ${WRKSRC}/modules/${file} ${PREFIX}/lib/flash + ${INSTALL_PROGRAM} ${WRKSRC}/modules/${file} ${STAGEDIR}${PREFIX}/lib/flash .endfor .for file in ${SCRIPT} - ${INSTALL_SCRIPT} ${WRKSRC}/orcasetup/${file} ${PREFIX}/lib/flash + ${INSTALL_SCRIPT} ${WRKSRC}/orcasetup/${file} ${STAGEDIR}${PREFIX}/lib/flash .endfor .for file in ${DATA} - ${INSTALL_DATA} ${WRKSRC}/orcasetup/${file} ${PREFIX}/lib/flash + ${INSTALL_DATA} ${WRKSRC}/orcasetup/${file} ${STAGEDIR}${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} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/flash/flashdocs + ${INSTALL_DATA} ${WRKSRC}/orcasetup/flashdocs/* ${STAGEDIR}${PREFIX}/lib/flash/flashdocs .include <bsd.port.mk> |