diff options
Diffstat (limited to 'testing/ocfs2-tools/APKBUILD')
-rw-r--r-- | testing/ocfs2-tools/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/ocfs2-tools/APKBUILD b/testing/ocfs2-tools/APKBUILD new file mode 100644 index 0000000000..9f9624da30 --- /dev/null +++ b/testing/ocfs2-tools/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=ocfs2-tools +pkgver=1.4.4 +pkgrel=0 +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" + +_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" + export LDFLAGS="$LDFLAGS -L/usr/include/linux" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-ocfs2console=no \ + --enable-dynamic-fsck=yes \ + --disable-glibtest + 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/$pkgname + # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="f7ae245e8baa499aa56d7af25a7885d5 ocfs2-tools-1.4.4.tar.gz +5dba18ca5596b1de0f2eeb30f5ed1656 gcc45-ftbfs.patch +c938040f0e77a4bb23e952c8f99b6cc5 build.patch" |