summaryrefslogtreecommitdiff
path: root/x11/eterm
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-02-16 10:35:56 +0000
committeragc <agc@pkgsrc.org>2000-02-16 10:35:56 +0000
commitc3d33bece97811ef98b7e462bd38eb84598fa72b (patch)
tree24e1f5c7da4ed80724df58fc85871b2f10397b32 /x11/eterm
parenta4f8db5d53af56584e9c1c35866ddeb4358b6998 (diff)
downloadpkgsrc-c3d33bece97811ef98b7e462bd38eb84598fa72b.tar.gz
+ Solaris pax(1) doesn't have -z support - so use gzcat to de-compress
the files first. + Eterm-0.8.9 won't build properly if an older version of Eterm's libraries are installed, so add a check at the pre-build stage. + On Solaris, don't install eterm as setuid - if it is, then the pseudo-tty is owned by root, and it's not possible to resume a screen session as a normal user.
Diffstat (limited to 'x11/eterm')
-rw-r--r--x11/eterm/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/x11/eterm/Makefile b/x11/eterm/Makefile
index ae273fb60ef..20fe49a56eb 100644
--- a/x11/eterm/Makefile
+++ b/x11/eterm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1999/10/28 00:31:57 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2000/02/16 10:35:56 agc Exp $
DISTNAME= Eterm-0.8.9
PKGNAME= eterm-0.8.9
@@ -23,16 +23,30 @@ USE_X11BASE= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+pre-build:
+ @if ${PKG_INFO} -qe 'eterm<0.8.9'; then \
+ ${ECHO} "**** An older version of Eterm is installed"; \
+ ${ECHO} "**** ${PKGNAME} cannot be built with it installed."; \
+ ${ECHO} "**** Please delete it before building"; \
+ ${ECHO} "**** or use \"${MAKE} update\"."; \
+ ${FALSE}; \
+ fi
+
post-extract:
${LN} -sf ${WRKSRC} ${WRKDIR}/Eterm
-.for FILE in ${PIXMAP_FILES}
- cd ${WRKDIR}; ${PAX} -zrf ${DISTDIR}/${FILE}
-.endfor
+ cd ${WRKDIR}; \
+ for f in ${PIXMAP_FILES}; do \
+ ${GZCAT} ${DISTDIR}/$$f | ${PAX} -r; \
+ done
+.if ${OPSYS} == "NetBSD"
post-install:
# Make Eterm setuid root so that utmp logging functions correctly.
#
${CHOWN} 0 ${PREFIX}/bin/Eterm
${CHMOD} 4711 ${PREFIX}/bin/Eterm
+.endif
.include "../../mk/bsd.pkg.mk"