pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mtr Switch to use normal INSTALL_PROGRAM and SPECI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ec6ddfdad61
branches:  trunk
changeset: 545686:7ec6ddfdad61
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Aug 10 05:02:23 2008 +0000

description:
Switch to use normal INSTALL_PROGRAM and SPECIAL_PERMS combination
instead of custom setuid root installation.

Part of fixes PR 15107.

diffstat:

 net/mtr/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r b873f4868080 -r 7ec6ddfdad61 net/mtr/Makefile
--- a/net/mtr/Makefile  Sun Aug 10 04:42:52 2008 +0000
+++ b/net/mtr/Makefile  Sun Aug 10 05:02:23 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2008/05/22 12:10:49 tron Exp $
+# $NetBSD: Makefile,v 1.50 2008/08/10 05:02:23 obache Exp $
 
 DISTNAME=      mtr-0.72
 PKGREVISION=   1
@@ -23,8 +23,10 @@
 # -lcurses on the appropriate platforms).
 BUILDLINK_TRANSFORM+=  l:termcap:ncurses
 
+SPECIAL_PERMS= sbin/mtr ${SETUID_ROOT_PERMS}
+
 do-install:
-       ${INSTALL} -c -s -m 4755 -o ${ROOT_USER} -g ${ROOT_GROUP} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin
+       ${INSTALL_PROGRAM} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin
        ${INSTALL_DATA} ${WRKSRC}/mtr.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
        ${INSTALL_DATA} ${WRKSRC}/SECURITY ${DESTDIR}${PREFIX}/share/doc/mtr
 



Home | Main Index | Thread Index | Old Index