OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 25-Oct-2007 19:04:06
Branch: HEAD Handle: 2007102518040400
Added files:
openpkg-src/op op.conf op.spec
Log:
new package: op 1.32 (Controlled Operator Privilege Escalation)
Summary:
Revision Changes Path
1.1 +17 -0 openpkg-src/op/op.conf
1.1 +119 -0 openpkg-src/op/op.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/op/op.conf
============================================================================
$ cvs diff -u -r0 -r1.1 op.conf
--- /dev/null 2007-10-25 19:01:35 +0200
+++ op.conf 2007-10-25 19:04:05 +0200
@@ -0,0 +1,17 @@
+##
+## op.conf -- op(1) configuration
+##
+
+PRIVILEGED=(user1|user2|user3)
+
+shell @l_su@ -;
+ users=PRIVILEGED
+ password
+ environment
+
+shutdown @l_shutdown@;
+ users=PRIVILEGED
+
+reboot @l_reboot@;
+ users=PRIVILEGED
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/op/op.spec
============================================================================
$ cvs diff -u -r0 -r1.1 op.spec
--- /dev/null 2007-10-25 19:01:35 +0200
+++ op.spec 2007-10-25 19:04:05 +0200
@@ -0,0 +1,119 @@
+##
+## op.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: op
+Summary: Controlled Operator Privilege Escalation
+URL: http://swapoff.org/wiki/op
+Vendor: T. Christiansen, D. Koblas, H. Owen, A. Thomas.
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: ShellUtils
+License: MIT-style
+Version: 1.32
+Release: 20071025
+
+# list of sources
+Source0: http://swapoff.org/files/op/op-%{version}.tar.gz
+Source1: op.conf
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823
+PreReq: OpenPKG, openpkg >= 20060823
+AutoReq: no
+AutoReqProv: no
+
+%description
+ The op(1) tool provides a flexible means for system administrators
+ to grant access to certain root operations without having to give
+ them full superuser privileges. Different sets of users may access
+ different operations, and the security-related aspects of each
+ operation can be carefully controlled.
+
+%track
+ prog op = {
+ version = %{version}
+ url = http://swapoff.org/wiki/op
+ regex = op-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --sysconfdir=%{l_prefix}/etc/op
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ case "%{l_platform -t}" in
+ *-freebsd* )
+ l_su="/bin/su"
+ l_shutdown="/usr/bin/shutdown -h now"
+ l_reboot="/usr/bin/shutdown -r now"
+ ;;
+ *-linux* )
+ l_su="/bin/su"
+ l_shutdown="/bin/shutdown -h now"
+ l_reboot="/bin/shutdown -r now"
+ ;;
+ *-sunos* )
+ l_su="/usr/bin/su"
+ l_shutdown="/usr/bin/shutdown -i0 -g0 -y"
+ l_reboot="/usr/bin/shutdown -i6 -g0 -y"
+ ;;
+ * )
+ l_su="`%{l_shtool} path su`"
+ l_shutdown="`%{l_shtool} path shutdown` -h now"
+ l_reboot="`%{l_shtool} path shutdown` -r now"
+ ;;
+ esac
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/op/op.d
+ %{l_shtool} install -c -m 644 \
+ -e "s;@l_su@;$l_su;g" \
+ -e "s;@l_shutdown@;$l_shutdown;g" \
+ -e "s;@l_reboot@;$l_reboot;g" \
+ %{SOURCE op.conf} \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/op/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/op/op.conf'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]