2009-10-08 14:07:56 +01:00
|
|
|
{ stdenv, fetchurl, libtool, gettext, libuuid }:
|
|
|
|
|
2009-12-08 16:58:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-13 22:46:44 +00:00
|
|
|
name = "xfsprogs-3.1.11";
|
2009-10-08 14:07:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-09-14 09:40:05 +01:00
|
|
|
urls = [ "ftp://oss.sgi.com/projects/xfs/cmd_tars/${name}.tar.gz" "ftp://oss.sgi.com/projects/xfs/previous/${name}.tar.gz" ];
|
2013-12-13 22:46:44 +00:00
|
|
|
sha256 = "1gnnyhy3khl08a24c5y0pyakz6nnwkiw1fc6rb0r1j5mfw0rix5d";
|
2009-10-08 14:07:56 +01:00
|
|
|
};
|
|
|
|
|
2012-06-10 15:41:22 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i s,/bin/bash,`type -P bash`, install-sh
|
|
|
|
'';
|
|
|
|
|
2014-04-16 22:41:50 +01:00
|
|
|
outputs = ["out" "lib"];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
(cd include; make install-dev)
|
|
|
|
# The make install-dev target is broken when --disable-shared
|
|
|
|
mkdir -p $lib/lib $lib/include
|
|
|
|
cp ./libhandle/.libs/libhandle.a \
|
|
|
|
./libxcmd/.libs/libxcmd.a \
|
|
|
|
./libxlog/.libs/libxlog.a \
|
|
|
|
./libxfs/.libs/libxfs.a $lib/lib
|
|
|
|
mv $out/include/* $lib/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-12-08 16:58:22 +00:00
|
|
|
buildInputs = [ libtool gettext libuuid ];
|
2009-10-08 14:07:56 +01:00
|
|
|
|
2009-12-08 16:58:22 +00:00
|
|
|
configureFlags = "MAKE=make MSGFMT=msgfmt MSGMERGE=msgmerge XGETTEXT=xgettext ZIP=gzip AWK=gawk --disable-shared";
|
2010-09-09 18:47:37 +01:00
|
|
|
preConfigure = ''
|
2014-04-16 22:41:50 +01:00
|
|
|
configureFlags="$configureFlags root_sbindir=$out/sbin root_libdir=$lib/lib"
|
2010-09-09 18:47:37 +01:00
|
|
|
'';
|
|
|
|
disableStatic = false;
|
2009-10-08 14:07:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SGI XFS utilities";
|
|
|
|
};
|
|
|
|
}
|