* Upstart 1.4. Of particular interest is the "log" stanza to redirect

a job's stdout/stderr to a file, and "setuid" / "setgid" to execute
  a job as a different user/group.

svn path=/nixpkgs/trunk/; revision=32744
This commit is contained in:
Eelco Dolstra 2012-03-02 14:46:58 +00:00
parent 55fb51c2d1
commit 15e5aead3d

View File

@ -1,11 +1,13 @@
{ stdenv, fetchurl, pkgconfig, dbus, libnih }: { stdenv, fetchurl, pkgconfig, dbus, libnih }:
let version = "1.4"; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "upstart-1.3"; name = "upstart-${version}";
src = fetchurl { src = fetchurl {
url = "http://upstart.ubuntu.com/download/1.3/${name}.tar.gz"; url = "http://upstart.ubuntu.com/download/${version}/${name}.tar.gz";
md5 = "7820797b64878c27115fff6a7398a6a9"; md5 = "3aa9ddf8459b56547a6238aa77c61815";
}; };
buildInputs = [ pkgconfig dbus libnih ]; buildInputs = [ pkgconfig dbus libnih ];
@ -29,7 +31,7 @@ stdenv.mkDerivation rec {
postInstall = postInstall =
'' ''
t=$out/etc/bash_completion.d t=$out/etc/bash_completion.d
ensureDir $t mkdir -p $t
cp ${./upstart-bash-completion} $t/upstart cp ${./upstart-bash-completion} $t/upstart
''; '';