Bug 183757 - [MAINTAINER] sysutils/lsof: fix SGID / Staging
Summary: [MAINTAINER] sysutils/lsof: fix SGID / 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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-07 16:40 UTC by Larry Rosenman
Modified: 2013-11-07 19:50 UTC (History)
0 users

See Also:


Attachments
lsof-4.88.e_1,8.patch (2.08 KB, patch)
2013-11-07 16:40 UTC, Larry Rosenman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer 2013-11-07 16:40:00 UTC
Fix SGID/Staging.
supercedes ports/183665
Generated with FreeBSD Port Tools 0.99_9 (mode: change, diff: ports)
Comment 1 Po-Chuan Hsieh freebsd_committer 2013-11-07 16:47:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I'll take it.
Comment 2 dfilter service freebsd_committer 2013-11-07 19:40:37 UTC
Author: sunpoet
Date: Thu Nov  7 19:40:29 2013
New Revision: 333148
URL: http://svnweb.freebsd.org/changeset/ports/333148

Log:
  - Fix make package with setgid
  - Bump PORTREVISION for package change
  
  PR:		ports/183757
  Submitted by:	Larry Rosenman <ler@lerctr.org> (maintainer)

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

Modified: head/sysutils/lsof/Makefile
==============================================================================
--- head/sysutils/lsof/Makefile	Thu Nov  7 19:14:47 2013	(r333147)
+++ head/sysutils/lsof/Makefile	Thu Nov  7 19:40:29 2013	(r333148)
@@ -3,6 +3,7 @@
 
 PORTNAME=	lsof
 DISTVERSION=	4.88E
+PORTREVISION=	1
 PORTEPOCH=	8
 CATEGORIES=	sysutils
 MASTER_SITES=	http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
@@ -39,7 +40,6 @@ HAS_CONFIGURE=	yes
 
 USES=		shebangfix
 SHEBANG_FILES=	scripts/sort_res.perl5
-NEED_ROOT=	yes
 
 .include <bsd.port.pre.mk>
 
@@ -50,8 +50,6 @@ BROKEN=		Does not compile on arm
 CONFIGURE_SCRIPT=	Configure
 CONFIGURE_ARGS=	-n freebsd
 CONFIGURE_ENV=	LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
-PLIST_FILES=	man/man8/lsof.8.gz \
-		sbin/lsof
 
 .if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
 IGNORE=		requires kernel sources
@@ -73,16 +71,10 @@ post-extract:
 .endif
 
 do-install:
-	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -m 2755 -g kmem ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
 	${INSTALL_MAN} ${WRKSRC}/lsof.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/lsof.8
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/lsof
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${PREFIX}/share/lsof
 	@${CHMOD} 0444 ${STAGEDIR}${PREFIX}/share/lsof/00*
 
-post-install:
-	cd ${STAGEDIR}${PREFIX} && \
-	    ${FIND} -s share/lsof -type f -o -type l >>${TMPPLIST} ;\
-	    ${FIND} -d share/lsof -type d \
-	        | ${SED} -e 's/^/@dirrm /g' >>${TMPPLIST}
-
 .include <bsd.port.post.mk>

Added: head/sysutils/lsof/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/lsof/pkg-plist	Thu Nov  7 19:40:29 2013	(r333148)
@@ -0,0 +1,22 @@
+man/man8/lsof.8.gz
+@group kmem
+@mode 2755
+sbin/lsof
+@mode
+@group wheel
+share/lsof/00MANIFEST
+share/lsof/00README
+share/lsof/big_brother.perl5
+share/lsof/count_pf.perl
+share/lsof/count_pf.perl5
+share/lsof/identd.perl5
+share/lsof/idrlogin.perl
+share/lsof/idrlogin.perl5
+share/lsof/list_NULf.perl5
+share/lsof/list_fields.awk
+share/lsof/list_fields.perl
+share/lsof/shared.perl5
+share/lsof/sort_res.perl5
+share/lsof/watch_a_file.perl
+share/lsof/xusers.awk
+@dirrm share/lsof
_______________________________________________
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 2013-11-07 19:45:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!