Bug 184275 - Update port: sysutils/psmisc Add STAGE support
Summary: Update port: sysutils/psmisc Add STAGE support
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 07:50 UTC by Douglas Thrift
Modified: 2013-11-26 15:10 UTC (History)
1 user (show)

See Also:


Attachments
psmisc.2013-11-25T042121Z.diff (1.07 KB, patch)
2013-11-25 07:50 UTC, Douglas Thrift
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Thrift 2013-11-25 07:50:00 UTC
Add STAGE support to sysutils/psmisc.

https://redports.org/buildarchive/20131125064400-8867/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-25 07:50:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-11-26 15:07:37 UTC
Author: sunpoet
Date: Tue Nov 26 15:07:23 2013
New Revision: 334943
URL: http://svnweb.freebsd.org/changeset/ports/334943

Log:
  - Support STAGEDIR
  - While I'm here:
    - Convert to new options helper
    - Use USES=gmake
  
  PR:		ports/184275
  Submitted by:	Douglas William Thrift <douglas@douglasthrift.net> (maintainer)

Modified:
  head/sysutils/psmisc/Makefile
  head/sysutils/psmisc/pkg-plist   (contents, props changed)

Modified: head/sysutils/psmisc/Makefile
==============================================================================
--- head/sysutils/psmisc/Makefile	Tue Nov 26 15:07:16 2013	(r334942)
+++ head/sysutils/psmisc/Makefile	Tue Nov 26 15:07:23 2013	(r334943)
@@ -16,28 +16,17 @@ BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc
 CONFLICTS=	pidof-[0-9]* pstree-2.[0-9]*
 
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
+USES=		gmake
 
 OPTIONS_DEFINE=	NLS
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-MAN1=		killall.1 pstree.1
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-CONFIGURE_ARGS=	--enable-nls
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+OPTIONS_SUB=	yes
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=		gettext
 
 post-patch:
 	@${REINPLACE_CMD} -e '/^#define COMM_LEN / s|16|254|' ${WRKSRC}/src/comm.h
 
 post-install:
-	@${LN} -fs ${PREFIX}/bin/killall ${PREFIX}/bin/pidof
+	@${LN} -fs killall ${STAGEDIR}${PREFIX}/bin/pidof
 
 .include <bsd.port.mk>

Modified: head/sysutils/psmisc/pkg-plist
==============================================================================
--- head/sysutils/psmisc/pkg-plist	Tue Nov 26 15:07:16 2013	(r334942)
+++ head/sysutils/psmisc/pkg-plist	Tue Nov 26 15:07:23 2013	(r334943)
@@ -1,8 +1,9 @@
-@comment $FreeBSD$
 bin/killall
 bin/pidof
 bin/pstree
 bin/pstree.x11
+man/man1/killall.1.gz
+man/man1/pstree.1.gz
 %%NLS%%share/locale/bg/LC_MESSAGES/psmisc.mo
 %%NLS%%share/locale/ca/LC_MESSAGES/psmisc.mo
 %%NLS%%share/locale/cs/LC_MESSAGES/psmisc.mo
_______________________________________________
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 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-11-26 15:09:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!