]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pkgs/core/sudo/sudo.nm
sudo: New package.
[people/amarx/ipfire-3.x.git] / pkgs / core / sudo / sudo.nm
CommitLineData
957db558
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = sudo
28PKG_VER = 1.7.2p1
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Applications/System
33PKG_URL =
34PKG_LICENSE = BSD
35PKG_SUMMARY = Allows restricted root access for specified users.
36
37PKG_DEPS += cyrus-sasl openldap pam vim
38
39define PKG_DESCRIPTION
40 Sudo (superuser do) allows a system administrator to give certain \
41 users (or groups of users) the ability to run some (or all) commands \
42 as root while logging all commands and arguments. Sudo operates on a \
43 per-command basis. It is not a replacement for the shell. Features \
44 include: the ability to restrict what commands a user may run on a \
45 per-host basis, copious logging of each command (providing a clear \
46 audit trail of who did what), a configurable timeout of the sudo \
47 command, and the ability to use the same configuration file (sudoers) \
48 on many different machines.
49endef
50
51PKG_TARBALL = $(THISAPP).tar.gz
52
53CONFIGURE_OPTIONS += \
54 --with-logging=syslog \
55 --with-logfac=authpriv \
56 --with-pam \
57 --with-pam-login \
58 --with-editor=/usr/bin/vi \
59 --with-env-editor \
60 --with-ignore-dot \
61 --with-tty-tickets \
62 --with-ldap \
63 --with-passprompt="[sudo] password for %p: "
64
65define STAGE_INSTALL_CMDS
66 -mkdir -pv $(BUILDROOT)/etc
67 cp -vf $(DIR_SOURCE)/sudoers $(BUILDROOT)/etc/sudoers
68
69 -mkdir -pv $(BUILDROOT)/etc/pam.d
70 cp -vf $(DIR_SOURCE)/sudo.pam $(BUILDROOT)/etc/pam.d/sudo
71endef