diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-08-03 10:00:17 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-08-03 13:04:59 +0200 |
commit | 89e78b5211b902d0a241c67c2331d57bd8d9b3b1 (patch) | |
tree | 1527484b6b66431389ebd56a18818c39e796b2c9 /pkgs/tools/security | |
parent | df038c93cc823fef9ceb547e3d635317bdd7d39e (diff) | |
download | nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar.gz nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar.bz2 nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar.lz nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar.xz nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.tar.zst nixlib-89e78b5211b902d0a241c67c2331d57bd8d9b3b1.zip |
omapd: init at 0.9.2
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/omapd/default.nix | 39 | ||||
-rw-r--r-- | pkgs/tools/security/omapd/zlib.patch | 9 |
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/security/omapd/default.nix b/pkgs/tools/security/omapd/default.nix new file mode 100644 index 000000000000..ae1c2c05f147 --- /dev/null +++ b/pkgs/tools/security/omapd/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, cmake, qt4, gdb, zlib }: +stdenv.mkDerivation rec { + + name = "omapd-${version}"; + version = "0.9.2"; + + src = fetchurl { + url = "http://omapd.googlecode.com/files/${name}.tgz"; + sha256 = "0d7lgv957jhbsav60j50jhdy3rpcqgql74qsniwnnpm3yqj9p0xc"; + }; + + patches = [ ./zlib.patch ]; + + buildInputs = [ cmake qt4 zlib gdb ]; + + phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ]; + + buildPhase = '' + (cd plugins/RAMHashTables; qmake; make) + qmake + make + ''; + + installPhase = '' + mkdir -p $out $out/bin $out/etc $out/usr/lib/omapd/plugins + cp omapd $out/bin/. + cp omapd.conf $out/etc/. + cp plugins/libRAMHashTables.so $out/usr/lib/omapd/plugins/. + ln -s $out/usr/lib/omapd/plugins $out/bin/plugins + ''; + + meta = with stdenv.lib; { + homepage = http://code.google.com/p/omapd; + description = "IF-MAP Server that implements the IF-MAP v1.1 and v2.0 specifications published by the Trusted Computing Group (TCG)"; + license = licenses.gpl3; + maintainers = [ maintainers.tstrobel ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/security/omapd/zlib.patch b/pkgs/tools/security/omapd/zlib.patch new file mode 100644 index 000000000000..dc0644f2a016 --- /dev/null +++ b/pkgs/tools/security/omapd/zlib.patch @@ -0,0 +1,9 @@ +diff -uNr omapd-0.9.2-old/omapd.pro omapd-0.9.2/omapd.pro +--- omapd-0.9.2-old/omapd.pro 2015-08-03 09:46:47.463420480 +0200 ++++ omapd-0.9.2/omapd.pro 2015-08-03 09:48:32.238657105 +0200 +@@ -37,4 +37,4 @@ + clientconfiguration.h \ + managementserver.h \ + json.h +-INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib ++LIBS += -lz |