pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/lsof Convert to user destdir (use SPECIAL_PERMS)
details: https://anonhg.NetBSD.org/pkgsrc/rev/a4d985ccf4da
branches: trunk
changeset: 542904:a4d985ccf4da
user: tnn <tnn%pkgsrc.org@localhost>
date: Thu May 29 16:52:59 2008 +0000
description:
Convert to user destdir (use SPECIAL_PERMS)
diffstat:
sysutils/lsof/Makefile | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diffs (50 lines):
diff -r 258813505266 -r a4d985ccf4da sysutils/lsof/Makefile
--- a/sysutils/lsof/Makefile Thu May 29 16:51:09 2008 +0000
+++ b/sysutils/lsof/Makefile Thu May 29 16:52:59 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.97 2008/05/26 02:13:23 joerg Exp $
+# $NetBSD: Makefile,v 1.98 2008/05/29 16:52:59 tnn Exp $
DISTNAME= lsof_4.78
PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION}
@@ -15,6 +15,8 @@
HOMEPAGE= http://people.freebsd.org/~abe/
COMMENT= Lists information about open files
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}/${SRCBALL_NAME}
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./Configure
@@ -40,8 +42,9 @@
.include "../../mk/bsd.prefs.mk"
+REAL_GROUP= ${REAL_ROOT_GROUP}
.if ${OPSYS} == "NetBSD"
-REAL_GROUP= -g kmem
+REAL_GROUP= kmem
CONFIGURE_ENV+= NETBSD_SYS="${NETBSDSRCDIR}/sys"
.elif ${OPSYS} == "SunOS"
MAKE_ENV+= CPPFLAGS=
@@ -66,12 +69,14 @@
fi)
@( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
+INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man8 share/lsof
+SPECIAL_PERMS+= ${PREFIX}/sbin/lsof ${REAL_ROOT_USER} ${REAL_GROUP} 2755
+
do-install:
- ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
- ${WRKSRC}/lsof ${PREFIX}/sbin
- ${INSTALL_MAN} ${WRKSRC}/lsof.8 ${PREFIX}/${PKGMANDIR}/man8/lsof.8
- @${INSTALL_DATA_DIR} ${PREFIX}/share/lsof
- ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/share/lsof
- @${CHMOD} 0444 ${PREFIX}/share/lsof/00*
+ ${INSTALL_PROGRAM} ${WRKSRC}/lsof ${DESTDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/lsof.8 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/lsof.8
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${DESTDIR}${PREFIX}/share/lsof
+ @${CHMOD} 0444 ${DESTDIR}${PREFIX}/share/lsof/00*
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index