]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/sudo/sudo.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / sudo / sudo.nm
index a10bea6a3d0b577d9b8b3a9bfbc5896953b9bf54..a85f6119d4ffb6642cb4fa93dab4fc01037a93f6 100644 (file)
@@ -1,72 +1,62 @@
 ###############################################################################
-#                                                                             #
-# 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/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sudo
-PKG_VER        = 1.7.4p3
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://www.sudo.ws/sudo/download.html
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Allows restricted root access for specified users.
-
-PKG_BUILD_DEPS+= audit-devel cyrus-sasl-devel libselinux-devel openldap-devel\
-       pam-devel
-
-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) \
+name       = sudo
+version    = 1.7.4p3
+release    = 1
+
+groups     = Base Applications/System
+url        = http://www.sudo.ws/sudo/download.html
+license    = BSD
+summary    = Allows restricted root access for specified users.
+
+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 += \
-       --libexecdir=/usr/lib \
-       --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: " \
-       --with-selinux \
-       --with-linux-audit
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/sudoers $(BUILDROOT)/etc/sudoers
-endef
+end
+
+source_dl  = http://www.sudo.ws/sudo/dist/
+
+build
+       requires
+               audit-devel
+               cyrus-sasl-devel
+               libselinux-devel
+               openldap-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --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: " \
+               --with-selinux \
+               --with-linux-audit
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}/etc/sudoers
+       end
+end
+
+packages
+       package %{name}
+       end
+end