2018-02-08 00:49:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# download, build and install reiserfs library
|
|
|
|
|
|
|
|
version=3.6.27
|
2018-02-24 00:57:42 +00:00
|
|
|
dir=tmp-cached-reiser
|
|
|
|
stamp="$dir/.last-build-reiser"
|
|
|
|
here=`pwd`
|
2018-02-08 00:49:11 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-02-24 00:57:42 +00:00
|
|
|
if [ -d "$dir" -a -f "$stamp" ]; then
|
|
|
|
echo "Using valid cache for $dir, built" `cat "$stamp"`
|
|
|
|
cd "$dir"
|
|
|
|
cd reiserfsprogs-${version}
|
|
|
|
sudo make install
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "No or stale cache for $dir, rebuilding"
|
|
|
|
rm -rf "$dir"
|
|
|
|
mkdir "$dir"
|
|
|
|
cd "$dir"
|
2018-02-08 00:49:11 +00:00
|
|
|
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
|
|
|
|
tar xf reiserfsprogs-${version}.tar.xz
|
|
|
|
cd reiserfsprogs-${version}
|
2020-08-18 15:59:09 +00:00
|
|
|
# Compilation fails as loff_t is not defined without the define
|
|
|
|
export CFLAGS
|
|
|
|
CFLAGS=-D_GNU_SOURCE
|
2018-02-08 00:49:11 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make all
|
|
|
|
sudo make install
|
2018-02-24 00:57:42 +00:00
|
|
|
date > "$here/$stamp"
|