]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
sudo: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Feb 2010 00:00:01 +0000 (01:00 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Feb 2010 00:00:01 +0000 (01:00 +0100)
pkgs/core/sudo/sudo.nm [new file with mode: 0644]
pkgs/core/sudo/sudo.pam [new file with mode: 0644]
pkgs/core/sudo/sudoers [moved from src/sudo/sudoers with 100% similarity]

diff --git a/pkgs/core/sudo/sudo.nm b/pkgs/core/sudo/sudo.nm
new file mode 100644 (file)
index 0000000..c5c6edd
--- /dev/null
@@ -0,0 +1,71 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME       = sudo
+PKG_VER        = 1.7.2p1
+PKG_REL        = 0
+
+PKG_MAINTAINER =
+PKG_GROUP      = Applications/System
+PKG_URL        =
+PKG_LICENSE    = BSD
+PKG_SUMMARY    = Allows restricted root access for specified users.
+
+PKG_DEPS      += cyrus-sasl openldap pam vim
+
+define PKG_DESCRIPTION
+       Sudo (superuser do) allows a system administrator to give certain \
+       users (or groups of users) the ability to run some (or all) commands \
+       as root while logging all commands and arguments. Sudo operates on a \
+       per-command basis.  It is not a replacement for the shell.  Features \
+       include: the ability to restrict what commands a user may run on a \
+       per-host basis, copious logging of each command (providing a clear \
+       audit trail of who did what), a configurable timeout of the sudo \
+       command, and the ability to use the same configuration file (sudoers) \
+       on many different machines.
+endef
+
+PKG_TARBALL    = $(THISAPP).tar.gz
+
+CONFIGURE_OPTIONS += \
+       --with-logging=syslog \
+       --with-logfac=authpriv \
+       --with-pam \
+       --with-pam-login \
+       --with-editor=/usr/bin/vi \
+       --with-env-editor \
+       --with-ignore-dot \
+       --with-tty-tickets \
+       --with-ldap \
+       --with-passprompt="[sudo] password for %p: "
+
+define STAGE_INSTALL_CMDS
+       -mkdir -pv $(BUILDROOT)/etc
+       cp -vf $(DIR_SOURCE)/sudoers $(BUILDROOT)/etc/sudoers
+
+       -mkdir -pv $(BUILDROOT)/etc/pam.d
+       cp -vf $(DIR_SOURCE)/sudo.pam $(BUILDROOT)/etc/pam.d/sudo
+endef
diff --git a/pkgs/core/sudo/sudo.pam b/pkgs/core/sudo/sudo.pam
new file mode 100644 (file)
index 0000000..3794e3f
--- /dev/null
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth       include     system-auth
+account    include     system-auth
+password   include     system-auth
+session    optional    pam_keyinit.so revoke
+session    required    pam_limits.so
similarity index 100%
rename from src/sudo/sudoers
rename to pkgs/core/sudo/sudoers