From b09b0f31cf082a02cfd56d4e95672c23f14d1344 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 7 Oct 2002 09:06:35 +0000 Subject: Use bsd.pkg.install.mk and SPECIAL_PERMS to note the setuid-root programs that need to have their permissions changed at post-install time to be owned by ${ROOT_USER}:${ROOT_GROUP} and have mode 4755. --- x11/kdebase3/Makefile | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'x11/kdebase3') diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile index de68ce96f36..2b86ad20e7b 100644 --- a/x11/kdebase3/Makefile +++ b/x11/kdebase3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2002/10/02 02:11:19 markd Exp $ +# $NetBSD: Makefile,v 1.9 2002/10/07 09:06:35 jlam Exp $ DISTNAME= kdebase-3.0.3 CATEGORIES= x11 @@ -55,12 +55,20 @@ PLIST_SRC+= ${PKGDIR}/PLIST ICONDIR= share/kde/icons +# Several programs need to be setuid-root, but due to the way that KDE3 +# finds executables, the files must have their read bit set so that +# KStandardDir::findResource() will find them. +# +_KDE_SETUID_ROOT= ${ROOT_USER} ${ROOT_GROUP} 4755 +SPECIAL_PERMS+= ${PREFIX}/bin/konsole_grantpty ${_KDE_SETUID_ROOT} +SPECIAL_PERMS+= ${PREFIX}/bin/kcheckpass ${_KDE_SETUID_ROOT} +SPECIAL_PERMS+= ${PREFIX}/bin/ksysguardd ${_KDE_SETUID_ROOT} + post-build: cd ${WRKSRC}; \ files="kioslave/info/kde-info2html.conf"; \ for file in $${files}; do \ - ${SED} -e "s|@LOCALBASE@|${LOCALBASE}|" \ - $${file} > $${file}.new; \ + ${SED} ${FILES_SUBST_SED} $${file} > $${file}.new; \ ${MV} -f $${file}.new $${file}; \ done @@ -70,19 +78,6 @@ post-install: ${INSTALL_DATA} ${DISTDIR}/Daemon.README \ ${PREFIX}/share/doc/kde/HTML/en/kdm - @# Several programs need to be setuid-root, but due to the way that - @# KDE3 finds executables, the files must have their read bit set - @# so that KStandardDir::findResource() will find them - @# - suid_progs=" \ - bin/konsole_grantpty \ - bin/kcheckpass \ - bin/ksysguardd \ - "; \ - for prog in $${suid_progs}; do \ - ${CHMOD} 4755 ${PREFIX}/$${prog}; \ - done - @# The global desktop template files need to be user-writeable, or @# else users won't be able to alter them after copying them to @# their local directories. @@ -116,4 +111,6 @@ post-install: .include "../../x11/qt3-tools/buildlink2.mk" .include "../../x11/kde3/buildlink2.mk" .include "../../x11/kdelibs3/buildlink2.mk" + +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3