summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2003-03-27 16:15:13 +0000
committersalo <salo@pkgsrc.org>2003-03-27 16:15:13 +0000
commit8ffd4472e22d5b22aa5da22f2f6672b7d04b5ff2 (patch)
treee0be53bb0db732da190708e8eb2f4147bdce7258
parentc78630f8aa81b622da72f8a358f89c93fa0c139d (diff)
downloadpkgsrc-8ffd4472e22d5b22aa5da22f2f6672b7d04b5ff2.tar.gz
Bump PKGREVISION: Don't install rxvt as setuid root on NetBSD. Setgid utmp is
enough for writing into utmp.
-rw-r--r--x11/rxvt/Makefile30
1 files changed, 15 insertions, 15 deletions
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"