ERROR: Slooooow dooooown... this page load was delayed.


newt - Terminal-based window and widget library ChangeLog

HOWTO


# newt 0.51.6
# ===========
# newt is a prerequisite of mondo, partimage, and a few other apps that I
# use.  I couldn't find a newt home page anywhere.  Below we take the
# source from one of the places that I found it.  I could grab some source
# rpm somewhere and rpm2tgz that, but I don't know which one is the "best"
# to use, so I'll pass on that for now.

# If you don't feel like dealing with the source, and you use Slackware,
# you'll find newt packages here:
# http://www.nerdworks.org/download/slackware-packages/slackware-9.1/newt/
# http://www.slackware.com/~alien/slackbuilds/newt/pkg/
#
# If you use an RPM-based distribution, try here:
# http://rpmfind.net/linux/rpm2html/search.php?query=newt

# gnewt (a newt compatible library) is available from the mondorescue site
# (and used to be at http://www.oksid.ch/gnewt/).
# I tried it once a while back and couldn't get it to compile.

# Prerequisites:
# rpm2targz from Slackware's "bin" package (and rpm, tar, ...)
# grep
# gpm (if you pass --with-gpm-support to configure)
# slang
# Python (if you want Python bindings)

# If you had previously installed newt from my mondorescue howto:
cd
test -f installed/mondorescue/newt-0.51.6.tar.gz &&
mv installed/mondorescue/newt-0.51.6.tar.gz .
rm -f installed/mondorescue/newt-*.tgz

# Re-use the tarball if you've got it, otherwise download the
# newt source rpm from Fedora Core 4 and convert it into a gzipped
# tarball.
cd
test -f installed/newt-0.51.6.tar.gz &&
mv installed/newt-0.51.6.tar.gz .
test ! -f newt-0.51.6.tar.gz &&
( test ! -f newt-0.51.6-7.src.rpm &&
    wget ftp://download.fedora.redhat.com/pub/fedora/linux/core/4/SRPMS/\
newt-0.51.6-7.src.rpm
    test -s ./newt-0.51.6-7.src.rpm && rpm2targz newt-0.51.6-7.src.rpm &&
     rm -f newt-0.51.6-7.src.rpm
    test -s ./newt-0.51.6-7.src.tar.gz && tar xzvf newt-0.51.6-7.src.tar.gz
    test -d ./newt-0.51.6-7 &&
     ( rm -f newt-0.51.6-7/newt.spec
       mv -f newt-0.51.6-7/* .
       rm -f newt-0.51.6-7.src.tar.gz
       rm -r ./newt-0.51.6-7 ) )

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "newt-*" -exec rm -r {} \;
tar xzvf ~/newt-0.51.6.tar.gz
cd newt-0.51.6
test $UID = 0 && chown -R root:root .

# Apply a patch that came with it:
test -f ~/newt-0.51.6-if1close.patch && mv ~/newt-0.51.6-if1close.patch .
patch -p1 < ./newt-0.51.6-if1close.patch

# If you want to build it with gpm support, pass --with-gpm to configure

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg newt
rm -f /usr/lib/libnewt.so*
make install
ldconfig

# Become yourself again
exit

cd
rm -f installed/newt-*.tar.*
mv newt-0.51.6.tar.gz installed/


# If you ever want to uninstall newt, this should do it:
su
rm -f /usr/bin/whiptail /usr/include/newt.h /usr/lib/libnewt.*
( cd /usr/lib/python-2.4/site-packages ; rm -f _snackmodule.so snack.py )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "newt-*" -exec rm -r {} \;
rm -f ~/installed/newt-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2010-04-09 9:51am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]