diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-08-22 15:24:24 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-08-22 15:24:24 +0000 |
commit | 62049ecfb13969531baf087170e4d95c3c37d1f0 (patch) | |
tree | 45483d737ab6b9249d25d611cdea30e7b1dc0282 /pkgs/tools/security/super | |
parent | b14a795d8fc0b3d61a2e2c8a412c1e9b4a1d77eb (diff) |
* Added super.
svn path=/nixpkgs/trunk/; revision=28739
Diffstat (limited to 'pkgs/tools/security/super')
-rw-r--r-- | pkgs/tools/security/super/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/security/super/default.nix b/pkgs/tools/security/super/default.nix new file mode 100644 index 0000000000000..02f3694cb4a47 --- /dev/null +++ b/pkgs/tools/security/super/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, groff }: + +stdenv.mkDerivation rec { + name = "super-3.30.0"; + + src = fetchurl { + name = "${name}.tar.gz"; + url = "http://ftp.ucolick.org/pub/users/will/${name}-tar.gz"; + sha256 = "1sxgixx1yg7h8g9799v79rk15gb39gn7p7fx032c078wxx38qwq4"; + }; + + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; + + configureFlags = "--sysconfdir=/etc --localstatedir=/var"; + + installFlags = "sysconfdir=$(out)/etc localstatedir=$(TMPDIR)"; + + meta = { + homepage = http://ftp.ucolick.org/pub/users/will/; + description = "Allows users to execute scripts as if they were root"; + longDescription = + '' + This package provides two commands: 1) “super”, which allows + users to execute commands under a different uid/gid (specified + in /etc/super.tab); and 2) “setuid”, which allows root to + execute a command under a different uid. + ''; + }; +} |