|
|
|
@ -24,7 +24,9 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%ifndef with_pam |
|
|
|
|
%define with_pam yes |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: sudo |
|
|
|
@ -36,7 +38,7 @@ Distribution: OpenPKG [REL]
|
|
|
|
|
Group: System |
|
|
|
|
License: BSD |
|
|
|
|
Version: 1.6.5p2 |
|
|
|
|
Release: 20020311 |
|
|
|
|
Release: 20020312 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: ftp://ftp.courtesan.com/pub/sudo/sudo-%{version}.tar.gz |
|
|
|
@ -58,6 +60,8 @@ AutoReqProv: no
|
|
|
|
|
users (or groups of users) the ability to run some (or all) commands |
|
|
|
|
as root or another user while logging the commands and arguments. |
|
|
|
|
|
|
|
|
|
Options: with_pam=%{with_pam} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q |
|
|
|
|
|
|
|
|
@ -115,3 +119,15 @@ AutoReqProv: no
|
|
|
|
|
%clean |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
# add PAM configuration entry |
|
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "sudo" |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%preun |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
# remove PAM configuration entry |
|
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "sudo" |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|