File: build-dep-reiserfs

package info (click to toggle)
btrfs-progs 6.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,244 kB
  • sloc: ansic: 114,376; sh: 9,576; python: 1,242; makefile: 820
file content (32 lines) | stat: -rwxr-xr-x 753 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# download, build and install reiserfs library

version=3.6.27
dir=tmp-cached-reiser
stamp="$dir/.last-build-reiser"
here=`pwd`

set -e

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"
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}
# Compilation fails as loff_t is not defined without the define
export CFLAGS
CFLAGS=-D_GNU_SOURCE
./configure --prefix=/usr
make all
sudo make install
date > "$here/$stamp"