git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8651 from ts468/upstream.sbsigntool
83083daArseniy Seroka
pkgs/tools/security/sbsigntool/autoconf.patchnew file+19
@@ -0,0 +1,19 @@
1+diff -uNr sbsigntool/configure.ac sbsigntool-new/configure.ac
2+--- sbsigntool/configure.ac 2015-07-05 12:18:18.932717136 +0200
3++++ sbsigntool-new/configure.ac 2015-07-05 14:51:39.659284938 +0200
4+@@ -65,7 +65,7 @@
5+
6+ dnl gnu-efi headers require extra include dirs
7+ EFI_ARCH=$(uname -m)
8+-EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
9++EFI_CPPFLAGS="-I@@NIX_GNUEFI@@/include/efi -I@@NIX_GNUEFI@@/include/efi/$EFI_ARCH \
10+ -DEFI_FUNCTION_WRAPPER"
11+ CPPFLAGS_save="$CPPFLAGS"
12+ CPPFLAGS="$CPPFLAGS $EFI_CPPFLAGS"
13+@@ -74,5 +74,5 @@
14+ AC_SUBST(EFI_CPPFLAGS, $EFI_CPPFLAGS)
15+
16+ AC_CONFIG_FILES([Makefile src/Makefile lib/ccan/Makefile]
17+- [docs/Makefile tests/Makefile])
18++ [docs/Makefile])
19+ AC_OUTPUT
pkgs/tools/security/sbsigntool/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchgit, autoconf, automake, utillinux, openssl, libuuid, gnu-efi
2+, binutils, pkgconfig, help2man }:
3+
4+stdenv.mkDerivation rec {
5+ name = "sbsigntool-${version}";
6+ version = "0.5";
7+
8+ src = fetchgit {
9+ url = "git://kernel.ubuntu.com/jk/sbsigntool";
10+ rev = "951ee95a301674c046f55330cd7460e1314deff2";
11+ sha256 = "09k8by0qq8j7ff812l1l9z9frsx5c4cmhj5in3g1sgyz3v55nfy7";
12+ };
13+
14+ patches = [ ./autoconf.patch ];
15+
16+ buildInputs = [ autoconf automake utillinux openssl libuuid gnu-efi binutils pkgconfig help2man ];
17+
18+ configurePhase = ''
19+ substituteInPlace configure.ac --replace "@@NIX_GNUEFI@@" "${gnu-efi}"
20+
21+ lib/ccan.git/tools/create-ccan-tree --build-type=automake lib/ccan "talloc read_write_all build_assert array_size"
22+ touch AUTHORS
23+ touch ChangeLog
24+
25+ echo "SUBDIRS = lib/ccan src docs" >> Makefile.am
26+
27+ aclocal
28+ autoheader
29+ autoconf
30+ automake --add-missing -Wno-portability
31+
32+ ./configure --prefix=$out
33+ '';
34+
35+ installPhase = ''
36+ mkdir -p $out
37+ make install
38+ '';
39+
40+ meta = with stdenv.lib; {
41+ description = "Tools for maintaining UEFI signature databases";
42+ homepage = http://jk.ozlabs.org/docs/sbkeysync-maintaing-uefi-key-databases;
43+ maintainers = [ maintainers.tstrobel ];
44+ platforms = platforms.linux;
45+ };
46+}
47+
pkgs/top-level/all-packages.nix+2
@@ -1726,6 +1726,8 @@ let
1726 zfsSupport = false;
1726 zfsSupport = false;
1727 };
1727 };
1728
1728
1729+ sbsigntool = callPackage ../tools/security/sbsigntool { };
1730+
1729 gsmartcontrol = callPackage ../tools/misc/gsmartcontrol {
1731 gsmartcontrol = callPackage ../tools/misc/gsmartcontrol {
1730 inherit (gnome) libglademm;
1732 inherit (gnome) libglademm;
1731 };
1733 };