summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2008-08-10 05:02:23 +0000
committerobache <obache>2008-08-10 05:02:23 +0000
commitf07bd778918c491db90b02828b2d56c506254969 (patch)
tree66dd78bab72bba3956092a115b6b8a307d80a993
parent2b647478fa781593d0ecbdeea233bad842f6ff68 (diff)
downloadpkgsrc-f07bd778918c491db90b02828b2d56c506254969.tar.gz
Switch to use normal INSTALL_PROGRAM and SPECIAL_PERMS combination
instead of custom setuid root installation. Part of fixes PR 15107.
-rw-r--r--net/mtr/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 6b221bb9c4a..2803e8d3808 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -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 @@ INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin share/doc/mtr
# -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