From 99732461913a4c4818140898f2bc629d4de41322 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 5 Dec 2009 07:26:40 +0100 Subject: [PATCH] Added xfsprogs-3.0.3 build template. --HG-- extra : convert_revision : d852e58a2469fed1d4e891dd032c7434ade51037 --- srcpkgs/xfsprogs-devel | 1 + srcpkgs/xfsprogs-libs | 1 + srcpkgs/xfsprogs/depends | 2 ++ srcpkgs/xfsprogs/template | 32 ++++++++++++++++++++++++ srcpkgs/xfsprogs/xfsprogs-devel.template | 23 +++++++++++++++++ srcpkgs/xfsprogs/xfsprogs-libs.template | 14 +++++++++++ 6 files changed, 73 insertions(+) create mode 120000 srcpkgs/xfsprogs-devel create mode 120000 srcpkgs/xfsprogs-libs create mode 100644 srcpkgs/xfsprogs/depends create mode 100644 srcpkgs/xfsprogs/template create mode 100644 srcpkgs/xfsprogs/xfsprogs-devel.template create mode 100644 srcpkgs/xfsprogs/xfsprogs-libs.template diff --git a/srcpkgs/xfsprogs-devel b/srcpkgs/xfsprogs-devel new file mode 120000 index 0000000000..0dee61c0b8 --- /dev/null +++ b/srcpkgs/xfsprogs-devel @@ -0,0 +1 @@ +xfsprogs \ No newline at end of file diff --git a/srcpkgs/xfsprogs-libs b/srcpkgs/xfsprogs-libs new file mode 120000 index 0000000000..0dee61c0b8 --- /dev/null +++ b/srcpkgs/xfsprogs-libs @@ -0,0 +1 @@ +xfsprogs \ No newline at end of file diff --git a/srcpkgs/xfsprogs/depends b/srcpkgs/xfsprogs/depends new file mode 100644 index 0000000000..4bf0509c63 --- /dev/null +++ b/srcpkgs/xfsprogs/depends @@ -0,0 +1,2 @@ +abi_depends=">=3.0.3" +api_depends="${abi_depends}" diff --git a/srcpkgs/xfsprogs/template b/srcpkgs/xfsprogs/template new file mode 100644 index 0000000000..4d74e42cc6 --- /dev/null +++ b/srcpkgs/xfsprogs/template @@ -0,0 +1,32 @@ +# Template file for 'xfsprogs' +pkgname=xfsprogs +version=3.0.3 +distfiles="ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--sbindir=/sbin --enable-readline=yes" +make_install_target="DIST_ROOT=$XBPS_DESTDIR/$pkgname-$version + install install-dev" +short_desc="Utilities for managing the XFS filesystem" +maintainer="Juan RP " +checksum=58b33a4b19ee85eb14d5c3908fa60ce822d1eccc89f1a9b7839171ab576c0d95 +long_desc=" + A set of commands to use the XFS filesystem, including mkfs.xfs. + + XFS is a high performance journaling filesystem which originated on the + SGI IRIX platform. It is completely multi-threaded, can support large files + and large filesystems, extended attributes, variable block sizes, is extent + based, and makes extensive use of Btrees (directories, extents, free space) + to aid both performance and scalability." + +subpackages="$pkgname-libs $pkgname-devel" +Add_dependency full glibc +Add_dependency full libuuid +Add_dependency full readline +Add_dependency run xfsprogs-libs +Add_dependency build gettext + +pre_configure() +{ + export OPTIMIZER="-O1" + export DEBUG=-DNDEBUG +} diff --git a/srcpkgs/xfsprogs/xfsprogs-devel.template b/srcpkgs/xfsprogs/xfsprogs-devel.template new file mode 100644 index 0000000000..aa94bd3f57 --- /dev/null +++ b/srcpkgs/xfsprogs/xfsprogs-devel.template @@ -0,0 +1,23 @@ +# Template file for 'xfsprogs-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libuuid-devel +Add_dependency run xfsprogs-libs + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mkdir -p ${DESTDIR}/usr/share/man + + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/libexec/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/libexec/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man +} diff --git a/srcpkgs/xfsprogs/xfsprogs-libs.template b/srcpkgs/xfsprogs/xfsprogs-libs.template new file mode 100644 index 0000000000..865808ac72 --- /dev/null +++ b/srcpkgs/xfsprogs/xfsprogs-libs.template @@ -0,0 +1,14 @@ +# Template file for 'xfsprogs-libs'. +# +short_desc="${short_desc} (shared libraries)" +long_desc="${long_desc} + + This package contains the shared libraries." + +Add_dependency run glibc + +do_install() +{ + mkdir -p ${DESTDIR}/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so.* ${DESTDIR}/lib +}