From 380e92b78e2e9f2cfc3d4254a0c25ea845d9b515 Mon Sep 17 00:00:00 2001 From: salo Date: Thu, 27 Mar 2003 16:15:13 +0000 Subject: Bump PKGREVISION: Don't install rxvt as setuid root on NetBSD. Setgid utmp is enough for writing into utmp. --- x11/rxvt/Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'x11') diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile index 60bd0ddd804..a2547d6ca06 100644 --- a/x11/rxvt/Makefile +++ b/x11/rxvt/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.36 2003/03/27 07:37:42 wiz Exp $ +# $NetBSD: Makefile,v 1.37 2003/03/27 16:15:13 salo Exp $ # FreeBSD Id: Makefile,v 1.13 1997/03/07 12:29:49 obrien Exp # DISTNAME= rxvt-2.7.10 +PKGREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/ \ ftp://mason.primenet.com.au/pub/rxvt/ @@ -13,6 +14,7 @@ HOMEPAGE= http://www.rxvt.org/ COMMENT= Low memory usage xterm replacement that supports color USE_BUILDLINK2= YES +USE_PKGINSTALL= YES USE_X11BASE= YES GNU_CONFIGURE= YES @@ -41,6 +43,18 @@ CONFIGURE_ARGS+= --enable-utmp \ CONFIGURE_ARGS+= --with-xpm-includes=${BUILDLINK_PREFIX.xpm}/include/X11 CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.xpm}/lib +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +# Make rxvt setgid utmp so that utmp logging functions correctly. +# +SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${ROOT_USER} utmp 2511 +.endif + +.if ${OPSYS} == "SunOS" +CFLAGS+= -DSunOS +.endif + post-patch: ${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig ${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \ @@ -51,19 +65,5 @@ pre-install: ${INSTALL_DATA} ${FILESDIR}/Rxvt ${X11PREFIX}/lib/X11/app-defaults; \ fi -.include "../../mk/bsd.prefs.mk" - -post-install: -.if ${OPSYS} == "NetBSD" - # Make rxvt setuid root so that utmp logging functions correctly. - # - ${CHOWN} 0 ${PREFIX}/bin/rxvt - ${CHMOD} 4711 ${PREFIX}/bin/rxvt -.endif - -.if ${OPSYS} == "SunOS" -CFLAGS+= -DSunOS -.endif - .include "../../graphics/xpm/buildlink2.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3