diff options
author | tron <tron@pkgsrc.org> | 2001-12-17 14:47:02 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-12-17 14:47:02 +0000 |
commit | 38cd359ecd6121b45e9fd8bf5faf5cce318c9bf0 (patch) | |
tree | 614b5cd84fd6548dba5923b1b95b720bd184ae61 /x11/xterm | |
parent | 2509e3d1e1b66d55874cb3ee17655acfd79fd762 (diff) | |
download | pkgsrc-38cd359ecd6121b45e9fd8bf5faf5cce318c9bf0.tar.gz |
Move "terminfo" handling into installation script so that it works for
binary packages.
Diffstat (limited to 'x11/xterm')
-rw-r--r-- | x11/xterm/INSTALL | 6 | ||||
-rw-r--r-- | x11/xterm/Makefile | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/x11/xterm/INSTALL b/x11/xterm/INSTALL index 2ca600df921..36c63f64133 100644 --- a/x11/xterm/INSTALL +++ b/x11/xterm/INSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ +# $NetBSD: INSTALL,v 1.2 2001/12/17 14:47:02 tron Exp $ PKGNAME=$1 STAGE=$2 @@ -20,6 +20,10 @@ PRE-INSTALL) ;; POST-INSTALL) + cd @PREFIX@/lib/X11/etc + TERMINFO=@LOCALBASE@/share/lib/terminfo + export TERMINFO + /usr/5bin/tic xterm.terminfo ;; DEINSTALL) diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile index a65d2a5f582..82ad5eedcab 100644 --- a/x11/xterm/Makefile +++ b/x11/xterm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ +# $NetBSD: Makefile,v 1.2 2001/12/17 14:47:03 tron Exp $ DISTNAME= xterm-164 CATEGORIES= x11 @@ -21,14 +21,14 @@ post-extract: pre-build: @${SED} -e 's#@MV@#${MV}#g' \ - -e 's#@PREFIX@#${PREFIX}#g' ${PKGDIR}/INSTALL >${INSTALL_FILE} + -e 's#@LOCALBASE@#${LOCALBASE}#g' \ + -e 's#@PREFIX@#${PREFIX}#g' \ + ${PKGDIR}/INSTALL >${INSTALL_FILE} pre-install: ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL post-install: - cd ${PREFIX}/lib/X11/etc; \ - ${SETENV} TERMINFO=${LOCALBASE}/share/lib/terminfo \ - /usr/5bin/tic xterm.terminfo + ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../mk/bsd.pkg.mk" |