summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorEelco Dolstra2010-06-09 21:48:51 +0000
committerEelco Dolstra2010-06-09 21:48:51 +0000
commitf7d0e3ac63f6c0b63f4eade9c11b05f34b890f43 (patch)
treeb46d971839cf6bf0b9c82b844b6e23a8c3aa5e13 /pkgs/os-specific
parent151c01959c274435b4aa86f7d6978fad2abfc362 (diff)
* Updated sysvinit to 2.88dsf.
svn path=/nixpkgs/trunk/; revision=22203
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/sysvinit/builder.sh31
-rw-r--r--pkgs/os-specific/linux/sysvinit/default.nix38
2 files changed, 31 insertions, 38 deletions
diff --git a/pkgs/os-specific/linux/sysvinit/builder.sh b/pkgs/os-specific/linux/sysvinit/builder.sh
deleted file mode 100644
index bd0f820f21bc..000000000000
--- a/pkgs/os-specific/linux/sysvinit/builder.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-source $stdenv/setup
-
-makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out)
-
-preBuild="cd src"
-
-preInstall() {
-    substituteInPlace Makefile --replace /usr /
-    mkdir $out
-    mkdir $out/bin
-    mkdir $out/sbin
-    mkdir $out/include
-    mkdir $out/share
-    mkdir $out/share/man
-    mkdir $out/share/man/man1
-    mkdir $out/share/man/man5
-    mkdir $out/share/man/man8
-}
-
-postInstall() {
-    if test -n "$withoutInitTools"; then
-	mv $out/sbin/killall5 $out/bin
-	ln -sf killall5 $out/bin/pidof
-	rm -rf $out/sbin
-	rm -rf $out/include
-	rm -rf $out/share/man/man5
-	rm $(for i in $out/share/man/man8/*; do echo $i; done | grep -v 'pidof\|killall5')
-    fi
-}
-
-genericBuild
diff --git a/pkgs/os-specific/linux/sysvinit/default.nix b/pkgs/os-specific/linux/sysvinit/default.nix
index 8d71daf07416..8315ee4835d3 100644
--- a/pkgs/os-specific/linux/sysvinit/default.nix
+++ b/pkgs/os-specific/linux/sysvinit/default.nix
@@ -1,12 +1,36 @@
-{stdenv, fetchurl, withoutInitTools ? false}:
+{ stdenv, fetchurl, withoutInitTools ? false }:
+
+let version = "2.88dsf"; in
 
 stdenv.mkDerivation {
-  name = if withoutInitTools then "sysvtools-2.86" else "sysvinit-2.86";
-  builder = ./builder.sh;
+  name = (if withoutInitTools then "sysvtools" else "sysvinit") + "-" + version;
+  
   src = fetchurl {
-    url = ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz;
-    sha256 = "1n3rnsynlaw7zyp2q5r7c49yvi1xr3669ick540gz73xw7x9hpq3";
+    url = "http://www.very-clever.com/download/nongnu/sysvinit/sysvinit-${version}.tar.bz2";
+    sha256 = "068mvzaz808a673zigyaqb63xc8bndh2klk16zi5c83rw70wifv0";
+  };
+  
+  patches = [ ./sysvinit-2.85-exec.patch ];
+
+  makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";
+
+  preInstall =
+    ''
+      substituteInPlace src/Makefile --replace /usr /
+    '';
+
+  postInstall = stdenv.lib.optionalString withoutInitTools
+    ''  
+      mv $out/sbin/killall5 $out/bin
+      ln -sf killall5 $out/bin/pidof
+      rm -rf $out/sbin
+      rm -rf $out/include
+      rm -rf $out/share/man/man5
+      rm $(for i in $out/share/man/man8/*; do echo $i; done | grep -v 'pidof\|killall5')
+    '';
+    
+  meta = {
+    homepage = http://www.nongnu.org/sysvinit/;
+    description = "Utilities related to booting and shutdown";
   };
-  patches = [./sysvinit-2.85-exec.patch];
-  inherit withoutInitTools;
 }