blob: b64566bde8ac055217e6224904cf91d940e6eee7 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=ocfs2-tools
pkgver=1.4.4
pkgrel=3
pkgdesc="Oracle Cluster File System 2 utilities"
url="http://oss.oracle.com/projects/ocfs2-tools"
arch="all"
license="GPL2"
depends=
depends_dev="e2fsprogs-dev glib-dev readline-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.4/$pkgname-$pkgver.tar.gz
gcc45-ftbfs.patch
build.patch
$pkgname.initd
$pkgname.confd"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in ../*.patch
do
msg "Applying patch $i"
patch -p1 -i $i || return 1
done
sed -i 's%sys/raw.h%linux/raw.h%' fswreck/include/main.h || return 1
sed -i 's%sys/raw.h%linux/raw.h%' debugfs.ocfs2/include/main.h || return 1
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-ocfs2console=no \
--enable-dynamic-fsck=yes \
--disable-glibtest || return 1
make -j1 || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
# remove the 2 lines below (and this) if there is no init.d script
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/o2cb
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/o2cb
}
md5sums="f7ae245e8baa499aa56d7af25a7885d5 ocfs2-tools-1.4.4.tar.gz
5dba18ca5596b1de0f2eeb30f5ed1656 gcc45-ftbfs.patch
c938040f0e77a4bb23e952c8f99b6cc5 build.patch
601fbd79acdc52a9046293aa977b1547 ocfs2-tools.initd
d81b6ab068ec92a137b58c9ad56c4637 ocfs2-tools.confd"
|