New package: runit 2.1.2

This commit is contained in:
Rickard Nilsson 2014-10-15 13:08:05 +02:00
parent 6d432d2164
commit 6960149b03
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -ur admin.orig/runit-2.1.2/src/Makefile admin/runit-2.1.2/src/Makefile
--- admin.orig/runit-2.1.2/src/Makefile 2014-08-10 20:22:35.000000000 +0200
+++ admin/runit-2.1.2/src/Makefile 2014-10-15 13:04:02.892937939 +0200
@@ -234,7 +234,6 @@
hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \
tryshsgr.c warn-shsgr
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c

View File

@ -0,0 +1,39 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "runit-${version}";
version = "2.1.2";
src = fetchurl {
url = "http://smarden.org/runit/${name}.tar.gz";
sha256 = "065s8w62r6chjjs6m9hapcagy33m75nlnxb69vg0f4ngn061dl3g";
};
phases = [ "unpackPhase" "patchPhase" "buildPhase" "checkPhase" "installPhase" ];
patches = [ ./Makefile.patch ];
buildPhase = ''
cd ${name}
make -C 'src'
'';
checkPhase = ''
make -C 'src' check
'';
installPhase = ''
mkdir -p $out/bin
for f in $(cat package/commands); do
mv src/$f $out/bin/
done
'';
meta = with stdenv.lib; {
description = "UNIX init scheme with service supervision";
license = licenses.bsd3;
homePage = "http://smarden.org/runit";
maintainers = with maintainers; [ rickynils ];
platforms = platforms.linux;
};
}

View File

@ -12060,6 +12060,8 @@ let
rssglx = callPackage ../misc/screensavers/rss-glx { };
runit = callPackage ../tools/system/runit { };
xlockmore = callPackage ../misc/screensavers/xlockmore { };
sails = callPackage ../misc/sails { };