Permalink
Browse files

Remove all aufs stuff

Now that unionfs-fuse is used, aufs is unneeded.

Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information...
shlevy committed Mar 25, 2013
1 parent 90c4fb5 commit 99c0cb0186bdf5a60e5581ff5746629512d47ac6
@@ -1,41 +0,0 @@
-{ stdenv, fetchurl, kernelDev, aufs }:
-
-assert aufs != null;
-
-let version = "20100506"; in
-
-stdenv.mkDerivation {
- name = "aufs2-util-${version}-${kernelDev.version}";
-
- src = fetchurl {
- url = "http://nixos.org/tarballs/aufs2-util-git-${version}.tar.bz2";
- sha256 = "0ly0c3p8fjxqbk8k5rmm1a91wg8wcrvhi1lv4aawalkkk8rqbnwk";
- };
-
- buildInputs = [ aufs ];
-
- makeFlags =
- [ "KDIR=${kernelDev}/lib/modules/${kernelDev.version}/build"
- "Install=install"
- "DESTDIR=$(out)"
- ];
-
- postInstall =
- ''
- mv $out/usr/* $out
- rmdir $out/usr
-
- cp aufs.shlib $out/lib/
-
- substituteInPlace $out/bin/aubrsync \
- --replace /sbin/mount $out/sbin/mount \
- --replace /usr/lib/aufs.shlib $out/lib/aufs.shlib
- '';
-
- meta = {
- description = "Utilities for AUFS2";
- homepage = http://aufs.sourceforge.net/;
- maintainers = [ stdenv.lib.maintainers.eelco ];
- platforms = stdenv.lib.platforms.linux;
- };
-}
@@ -1,40 +0,0 @@
-{ stdenv, fetchgit, kernelDev, aufs }:
-
-assert aufs != null;
-
-stdenv.mkDerivation {
- name = "aufs3-util-${aufs.patch.version}-${kernelDev.version}";
-
- src = fetchgit {
- url = git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;
- rev = aufs.patch.utilRev;
- sha256 = aufs.patch.utilHash;
- };
-
- buildInputs = [ aufs ];
-
- makeFlags =
- [ "KDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build"
- "Install=install"
- "DESTDIR=$(out)"
- ];
-
- postInstall =
- ''
- mv $out/usr/* $out
- rmdir $out/usr
-
- cp aufs.shlib $out/lib/
-
- substituteInPlace $out/bin/aubrsync \
- --replace /sbin/mount $out/sbin/mount \
- --replace /usr/lib/aufs.shlib $out/lib/aufs.shlib
- '';
-
- meta = {
- description = "Utilities for AUFS3";
- homepage = http://aufs.sourceforge.net/;
- maintainers = [ stdenv.lib.maintainers.eelco ];
- platforms = stdenv.lib.platforms.linux;
- };
-}
@@ -1,43 +0,0 @@
-{ stdenv, fetchurl, kernelDev, perl, fetchgit }:
-
-assert kernelDev.features ? aufsBase;
-
-let version = "20100522"; in
-
-stdenv.mkDerivation {
- name = "aufs2-${version}-${kernelDev.version}";
-
- src =
- if (builtins.lessThan (builtins.compareVersions kernelDev.version "2.6.35") 0) then
- fetchurl {
- url = "http://nixos.org/tarballs/aufs2-standalone-git-${version}.tar.bz2";
- sha256 = "1g4mw4qx2xzpygdwjiw36bkhfz1hi7wxx7w79n2h0lr5grzzdnd6";
- }
- else
- fetchgit {
- url = "http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git";
- rev = "d950eef373ff1e0448ad3945b734da6ab050571d";
- sha256 = "816145b0341bd7862df50c058144cf6ebc25c05d2976f781ff0fe10d4559b853";
- };
-
- buildInputs = [ perl ];
-
- makeFlags = "KDIR=${kernelDev}/lib/modules/${kernelDev.version}/build";
-
- installPhase =
- ''
- mkdir -p $out/lib/modules/${kernelDev.version}/misc
- cp aufs.ko $out/lib/modules/${kernelDev.version}/misc
-
- # Install the headers because aufs2-util requires them.
- cp -prvd include $out/
- '';
-
- meta = {
- description = "Another Unionfs implementation for Linux (second generation)";
- homepage = http://aufs.sourceforge.net/;
- maintainers = [ stdenv.lib.maintainers.eelco
- stdenv.lib.maintainers.raskin ];
- platforms = stdenv.lib.platforms.linux;
- };
-}
@@ -1,44 +0,0 @@
-{ stdenv, kernelDev, perl }:
-
-let
-
- aufsPredicate = x:
- if x ? features then
- (if x.features ? aufs3 then x.features.aufs3 else false)
- else false;
- featureAbort = abort "This kernel does not have aufs 3 support";
- patch = stdenv.lib.findFirst aufsPredicate featureAbort kernelDev.kernelPatches;
-
-in
-
-stdenv.mkDerivation {
- name = "aufs3-${patch.version}-${kernelDev.version}";
-
- src = patch.patch.src;
-
- buildInputs = [ perl ];
-
- makeFlags = "KDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build";
-
- NIX_CFLAGS_COMPILE="-I${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build/include/generated";
-
- installPhase =
- ''
- mkdir -p $out/lib/modules/${kernelDev.modDirVersion}/misc
- cp -v aufs.ko $out/lib/modules/${kernelDev.modDirVersion}/misc
-
- # Install the headers because aufs3-util requires them.
- mkdir -p $out/include/linux
- cp -v usr/include/linux/aufs_type.h $out/include/linux
- '';
-
- passthru = { inherit patch; };
-
- meta = {
- description = "Another Unionfs implementation for Linux (third generation)";
- homepage = http://aufs.sourceforge.net/;
- maintainers = [ stdenv.lib.maintainers.eelco
- stdenv.lib.maintainers.raskin ];
- platforms = stdenv.lib.platforms.linux;
- };
-}
Oops, something went wrong.

0 comments on commit 99c0cb0

Please sign in to comment.