3
0
Fork 0
forked from mirrors/nixpkgs

ntrack-016, add meta

svn path=/nixpkgs/trunk/; revision=31550
This commit is contained in:
Yury G. Kudryashov 2012-01-14 18:03:34 +00:00
parent bbee586d14
commit 51956f085d

View file

@ -1,8 +1,7 @@
{ stdenv, fetchurl, glib, qt4, pkgconfig, libnl, pygobject, python, automake { stdenv, fetchurl, glib, qt4, pkgconfig, libnl, pygobject, python }:
, autoconf }:
let let
version = "014"; version = "016";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -10,32 +9,21 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "http://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz"; url = "http://launchpad.net/ntrack/main/${version}/+download/${name}.tar.gz";
sha256 = "1aqn3q0dj2kk0j9rf02qgbfghlykaas7q0g8wxyz7nd6zg4qhyj2"; sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
}; };
buildInputs = [ libnl qt4 ]; buildInputs = [ libnl qt4 ];
buildNativeInputs = [ pkgconfig python automake autoconf ]; buildNativeInputs = [ pkgconfig python ];
configureFlags = "--without-gobject CFLAGS=--std=gnu99"; configureFlags = "--without-gobject CFLAGS=--std=gnu99";
patchP0 = fetchurl { patchPhase = ''sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c'';
url = http://bazaar.launchpad.net/~asac/ntrack/main/diff/312/309;
name = "ntrack-bzr-309-to-312.patch"; meta = {
sha256 = "1bpjpikln2i7nsmd2gl82g08yzaqac311sgsva7z7pqccxz0vsj5"; description = "Network Connectivity Tracking library for Desktop Applications";
homepage = https://launchpad.net/ntrack;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.urkud ];
}; };
patchP1 = fetchurl {
url = "https://bugs.launchpad.net/ntrack/+bug/750554/+attachment/2291609/+files/ntrack_libnl_link.diff";
sha256 = "1al6wfjph7nmck1q2q2z98cnzcrwpln2wwh45xynsxr6wgczwck6";
};
patchPhase =
''
patch -p0 < ${patchP0}
patch -p1 < ${patchP1}
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
'';
preConfigure = "automake"; # The second patch changes Makefile.am files
} }