Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 08:21:10 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337648 - head/shells/flash
Message-ID:  <201312270821.rBR8LAMR027834@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 27 08:21:09 2013
New Revision: 337648
URL: http://svnweb.freebsd.org/changeset/ports/337648

Log:
  Support stage

Modified:
  head/shells/flash/Makefile

Modified: head/shells/flash/Makefile
==============================================================================
--- head/shells/flash/Makefile	Fri Dec 27 08:16:03 2013	(r337647)
+++ head/shells/flash/Makefile	Fri Dec 27 08:21:09 2013	(r337648)
@@ -9,15 +9,13 @@ MASTER_SITES=	http://www.sourcefiles.org
 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.Nets
 		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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312270821.rBR8LAMR027834>