Bug 182535 - [PATCH] games/qstat: support staging
Summary: [PATCH] games/qstat: support staging
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-01 06:50 UTC by Dmitry Marakasov
Modified: 2013-10-20 17:30 UTC (History)
1 user (show)

See Also:


Attachments
qstat-2.11.patch (936 bytes, patch)
2013-10-01 06:50 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2013-10-01 06:50:00 UTC
Support staging

Port maintainer (danfe@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-01 06:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danfe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-20 17:24:11 UTC
Author: danfe
Date: Sun Oct 20 16:24:04 2013
New Revision: 331034
URL: http://svnweb.freebsd.org/changeset/ports/331034

Log:
  Stagify; simplify one regex; do not hardcode operating system name.
  
  PR:		ports/182535
  Submitted by:	amdmi3

Modified:
  head/games/qstat/Makefile

Modified: head/games/qstat/Makefile
==============================================================================
--- head/games/qstat/Makefile	Sun Oct 20 16:07:22 2013	(r331033)
+++ head/games/qstat/Makefile	Sun Oct 20 16:24:04 2013	(r331034)
@@ -15,26 +15,18 @@ CONFLICTS_INSTALL=	torque-[0-9]*
 
 OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-extract:
 	@${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.default
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|\(qstat\.cfg\)|\1\.default|' \
-		${WRKSRC}/Makefile.in
-	@${REINPLACE_CMD} -e 's|OpenBSD|FreeBSD|' ${WRKSRC}/qstat.c
+	@${REINPLACE_CMD} -e 's|qstat\.cfg|&.default|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|' ${WRKSRC}/qstat.c
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}/info ${DOCSDIR}/template
-	${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template
+	${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \
-		${DOCSDIR}/template
-	${INSTALL_DATA} ${WRKSRC}/info/*.txt ${DOCSDIR}/info
-.endif
-	@[ -f ${PREFIX}/etc/qstat.cfg ] || \
-		${CP} ${PREFIX}/etc/qstat.cfg.default ${PREFIX}/etc/qstat.cfg
+		${STAGEDIR}${DOCSDIR}/template
+	${INSTALL_DATA} ${WRKSRC}/info/*.txt ${STAGEDIR}${DOCSDIR}/info
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2013-10-20 17:24:34 UTC
State Changed
From-To: open->closed

Committed along with other modifications, thanks!