summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-07 19:40:29 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-07 19:40:29 +0000
commita4b136081d94285ad2ab61d69bbbc41862d15bfc (patch)
treedb6c35663c25ede212f081ac6cf07c42b189618c /sysutils
parent- Change maintainer email to @FreeBSD.org (diff)
- Fix make package with setgid
- Bump PORTREVISION for package change PR: ports/183757 Submitted by: Larry Rosenman <ler@lerctr.org> (maintainer)
Notes
Notes: svn path=/head/; revision=333148
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lsof/Makefile12
-rw-r--r--sysutils/lsof/pkg-plist22
2 files changed, 24 insertions, 10 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index da00582a066b..349c3d557645 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -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>
diff --git a/sysutils/lsof/pkg-plist b/sysutils/lsof/pkg-plist
new file mode 100644
index 000000000000..7dbd1ae300ca
--- /dev/null
+++ b/sysutils/lsof/pkg-plist
@@ -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