# Partimage 0.6.4
# ===============
# Partimage can't be used on a partion that is in use (mounted). Check out
# SystemRescueCd if you want a boot-CD with Partimage on it:
# http://www.sysresccd.org/
cd
test -f installed/partimage-0.6.4.tar.bz2 &&
mv installed/partimage-0.6.4.tar.bz2 .
test ! -f partimage-0.6.4.tar.bz2 &&
wget http://download.sf.net/partimage/partimage-0.6.4.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "partimage-*" -exec rm -r {} \;
tar xjvf ~/partimage-0.6.4.tar.bz2
cd partimage-0.6.4
test $UID = 0 && chown -R root:root .
# If you use PAM, add --enable-pam below
# I specify --infodir=/usr/doc/partimage below because it doesn't try to
# put info files into /usr/local/info, it puts README, INSTALL, ChangeLog,
# etc. there. Slackware uses /usr/doc and /usr/share/doc is a symlink to
# it. Other distributions do it the other way around. Specify whatever
# the real directory is below.
# If you don't have OpenSSL installed or don't want/need SSL support for
# partimaged, pass --disable-ssl to configure
# I have OpenSSL installed in the typical source location, /usr/local/ssl.
# If you don't, leave those parts off below (just run ./configure ; make)
./configure --disable-nls --infodir=/usr/doc/partimage \
--with-ssl-headers=/usr/local/ssl/include/openssl \
--with-ssl-lib=/usr/local/ssl/lib
make
## If make fails with errors like this:
# structures.h:26:27: openssl/rsa.h: No such file or directory
# structures.h:27:30: openssl/crypto.h: No such file or directory
# structures.h:28:28: openssl/x509.h: No such file or directory
# structures.h:29:27: openssl/pem.h: No such file or directory
# structures.h:30:27: openssl/ssl.h: No such file or directory
# structures.h:31:27: openssl/err.h: No such file or directory
## re-run it like this:
# make CPPFLAGS=-I/usr/local/ssl/include
# Become root to install it
su
# Add a 'partimag' user, if you don't already have one
id partimag > /dev/null 2>&1 || useradd -d / -g root partimag
# Back up your existing partimagedusers file
test -f /usr/local/etc/partimaged/partimagedusers &&
( mkdir -p -m 0700 ~/backup
cp -a /usr/local/etc/partimaged/partimagedusers ~/backup/ )
# Install it
make install
# Read /usr/doc/partimage/README.partimaged for info about setting it
# up and running it
# If you ever want to uninstall partimage, this should do it:
cd
su
test -d src/partimage-* && ( cd src/partimage-* ; make uninstall )
( cd /usr/local/sbin ; rm -f partimage partimaged )
test -d /usr/local/etc/partimaged && rm -r /usr/local/etc/partimaged
test -d /usr/doc/partimage && rm -r /usr/doc/partimage
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "partimage-*" -exec rm -r {} \;
rm -f ~/installed/partimage-*.tar.*