aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-29 10:49:06 +0800
committermarcus <marcus@FreeBSD.org>2004-04-29 10:49:06 +0800
commit68e02d882e6f25b746177f700fbc72261b6deb4f (patch)
tree4d48039bba5e74252fb929c189443c96d6575b34 /x11
parentceafa4c1a5d9769d04e564e80b3a0520ecf0aba5 (diff)
downloadfreebsd-ports-gnome-68e02d882e6f25b746177f700fbc72261b6deb4f.tar.gz
freebsd-ports-gnome-68e02d882e6f25b746177f700fbc72261b6deb4f.tar.zst
freebsd-ports-gnome-68e02d882e6f25b746177f700fbc72261b6deb4f.zip
Speed up pre-configure step by caching the pkg_info output instead of
running it each time. Submitted by: thomas
Diffstat (limited to 'x11')
-rw-r--r--x11/gnome2/pkg-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/x11/gnome2/pkg-install b/x11/gnome2/pkg-install
index 870432d238a3..ca7543bb5e49 100644
--- a/x11/gnome2/pkg-install
+++ b/x11/gnome2/pkg-install
@@ -3,10 +3,15 @@
PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
export PATH
+tmp_pkg_info=`mktemp -t gnome_install_pkg_info`
+trap "rm -f ${tmp_pkg_info}" 0
+
+pkg_info > ${tmp_pkg_info}
+
if [ "$2" = "PRE-INSTALL" ]; then
GNOME_ONE_DESKTOP="gnomecore gnomeapplets gnomemedia gnomeutils gtop libgtop sawfish nautilus gedit xalf bugbuddy gnomegames gdm eog ggv gnomeaudio"
for package in ${GNOME_ONE_DESKTOP}; do
- if pkg_info | grep "^${package}-[0-9]" >/dev/null 2>&1; then
+ if grep "^${package}-[0-9]" ${tmp_pkg_info} >/dev/null 2>&1; then
echo "${package} was detected on the system. This package is part of the GNOME 1.x"
echo "desktop, and cannot coexist with the GNOME 2.2 desktop."
echo ""