summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-06-30 09:26:24 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-06-30 09:26:24 +0400
commitdcf5e85c2ff7a9f4c34c8a6af6f8482e0dd88436 (patch)
tree5e8b846e043f2f10cb3b67768b98e6eca3b13f24 /pkgs
parentd2d969f08a1a8d8b3177de9f426da2a8aaa2da94 (diff)
parentf75ea738eddeaba586e7f6749e9bf841598f37b5 (diff)
Merge pull request #2595 from wkennington/master.ecryptfs
ecryptfs: Update from 82 -> 104
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/keyutils/default.nix21
-rw-r--r--pkgs/tools/security/ecryptfs/default.nix35
2 files changed, 37 insertions, 19 deletions
diff --git a/pkgs/os-specific/linux/keyutils/default.nix b/pkgs/os-specific/linux/keyutils/default.nix
index 8673981ecd50..fc05fc234525 100644
--- a/pkgs/os-specific/linux/keyutils/default.nix
+++ b/pkgs/os-specific/linux/keyutils/default.nix
@@ -1,29 +1,28 @@
{ stdenv, fetchurl, gnumake, file }:
stdenv.mkDerivation rec {
- name = "keyutils-1.5.8";
+ name = "keyutils-1.5.9";
src = fetchurl {
url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2";
- sha256 = "17419fr7mph8wlhxpqb1bdrghz0db15bmjdgxg1anfgbf9ra6zbc";
+ sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd";
};
buildInputs = [ file ];
patchPhase = ''
- sed -i -e "s,/usr/bin/make,${gnumake}/bin/make," \
- -e "s, /etc, $out/etc," \
- -e "s, /bin, $out/bin," \
- -e "s, /sbin, $out/sbin," \
- -e "s, /lib, $out/lib," \
- -e "s, /lib64, $out/lib64," \
- -e "s,/usr,$out," \
+ sed -i -e "s, /usr/bin/make, ${gnumake}/bin/make," \
+ -e "s, /usr, ," \
+ -e "s,\$(LNS) \$(LIBDIR)/\$(SONAME),\$(LNS) \$(SONAME)," \
Makefile
'';
+
+ installPhase = "make install DESTDIR=$out";
- meta = {
+ meta = with stdenv.lib; {
homepage = http://people.redhat.com/dhowells/keyutils/;
description = "Tools used to control the Linux kernel key management system";
- license = "GPLv2+";
+ license = licenses.gpl2Plus;
+ platforms = platforms.linux;
};
}
diff --git a/pkgs/tools/security/ecryptfs/default.nix b/pkgs/tools/security/ecryptfs/default.nix
index d1ed6f420ec3..13046aa0b2d1 100644
--- a/pkgs/tools/security/ecryptfs/default.nix
+++ b/pkgs/tools/security/ecryptfs/default.nix
@@ -1,18 +1,37 @@
-{stdenv, fetchurl, fuse, python, perl, keyutils, pam, nss, nspr}:
+{ stdenv, fetchurl, pkgconfig, perl, keyutils, nss, nspr, python, pam
+, intltool, makeWrapper, coreutils, gettext, cryptsetup, lvm2, rsync, which }:
+
stdenv.mkDerivation {
- name = "ecryptfs-82";
+ name = "ecryptfs-104";
src = fetchurl {
- url = http://launchpad.net/ecryptfs/trunk/82/+download/ecryptfs-utils_82.orig.tar.gz;
- sha256 = "1w3swispgp71prz8h56hqby2wwnvam5vllqvc69rn8cf605i69a6";
+ url = http://launchpad.net/ecryptfs/trunk/104/+download/ecryptfs-utils_104.orig.tar.gz;
+ sha256 = "0f3lzpjw97vcdqzzgii03j3knd6pgwn1y0lpaaf46iidaiv0282a";
};
- NIX_CFLAGS_COMPILE = "-I${nspr}/include/nspr -I${nss}/include/nss";
+ buildInputs = [ pkgconfig perl nss nspr python pam intltool makeWrapper ];
+ propagatedBuildInputs = [ coreutils gettext cryptsetup lvm2 rsync keyutils which ];
- buildInputs = [ python perl keyutils pam nss nspr ];
+ postInstall = ''
+ FILES="$(grep -r '/bin/sh' $out/bin | sed 's,:.*,,' | uniq)"
+ for file in $FILES; do
+ sed -i $file -e "s,\(/sbin/u\?mount.ecryptfs\(_private\)\?\),$out\1," \
+ -e "s,\(/sbin/cryptsetup\),${cryptsetup}\1," \
+ -e "s,\(/sbin/dmsetup\),${lvm2}\1," \
+ -e 's,/sbin/\(unix_chkpwd\),\1,'
+ wrapProgram $file \
+ --prefix PATH ":" "${coreutils}/bin" \
+ --prefix PATH ":" "${gettext}/bin" \
+ --prefix PATH ":" "${rsync}/bin" \
+ --prefix PATH ":" "${keyutils}/bin" \
+ --prefix PATH ":" "${which}/bin" \
+ --prefix PATH ":" "$out/bin"
+ done
+ '';
- meta = {
+ meta = with stdenv.lib; {
description = "Enterprise-class stacked cryptographic filesystem";
- license = "GPLv2+";
+ license = licenses.gpl2Plus;
+ platforms = platforms.linux;
};
}