Author: eelco
Date: Mon Aug 22 15:24:24 2011
New Revision: 28739
URL: https://svn.nixos.org/websvn/nix/?rev=28739&sc=1
Log:
* Added super.
Added:
nixpkgs/trunk/pkgs/tools/security/super/
nixpkgs/trunk/pkgs/tools/security/super/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/tools/security/super/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/security/super/default.nix Mon Aug 22 15:24:24
2011 (r28739)
@@ -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.
+ '';
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Aug 22 12:20:31
2011 (r28738)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Aug 22 15:24:24
2011 (r28739)
@@ -1323,8 +1323,9 @@
sudo = callPackage ../tools/security/sudo { };
- suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) {
- };
+ suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) { };
+
+ super = callPackage ../tools/security/super { };
ssmtp = callPackage ../tools/networking/ssmtp {
tlsSupport = true;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits