diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-10-31 20:59:00 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-10-31 20:59:00 +0000 |
commit | 273821c4d377411699fe450ab9d48f7e5933d9b6 (patch) | |
tree | b8174b07e5f6072d89e0ac6466ae83197944712f /pkgtools/xpkgwedge/INSTALL | |
parent | d8ed248248754208ebf0c3a07f7a0847af2e838a (diff) | |
download | pkgsrc-273821c4d377411699fe450ab9d48f7e5933d9b6.tar.gz |
Move pkg/ files into package's toplevel directory
Diffstat (limited to 'pkgtools/xpkgwedge/INSTALL')
-rw-r--r-- | pkgtools/xpkgwedge/INSTALL | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgtools/xpkgwedge/INSTALL b/pkgtools/xpkgwedge/INSTALL new file mode 100644 index 00000000000..18f67e7c226 --- /dev/null +++ b/pkgtools/xpkgwedge/INSTALL @@ -0,0 +1,46 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/10/31 21:19:17 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CP="@CP@" +GREP="@GREP@" +RM="@RM@" + +X11BASE=@X11BASE@ +X11_HOSTDEF=${X11BASE}/lib/X11/config/host.def +HOSTDEF=${PKG_PREFIX}/lib/X11/config/host.def + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + if [ ${PKG_PREFIX} = ${X11BASE} -o -f ${HOSTDEF} ] + then + echo -n "Updating ${HOSTDEF}..." + ${CP} -f ${HOSTDEF} ${HOSTDEF}.bak + else + echo -n "Creating ${HOSTDEF}..." + if [ -f ${X11_HOSTDEF} ] + then + ${CP} -f ${X11_HOSTDEF} ${HOSTDEF}.bak + else + ${CP} -f /dev/null ${HOSTDEF}.bak + fi + fi + ( echo '#include <xpkgwedge.def>'; \ + ${GREP} -v xpkgwedge ${HOSTDEF}.bak; \ + ) > ${HOSTDEF} + ${RM} -f ${HOSTDEF}.bak + echo "done." + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |