|
|
|
@ -23,6 +23,9 @@
|
|
|
|
|
## SUCH DAMAGE. |
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%define with_pam yes |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: sudo |
|
|
|
|
Summary: Flexible Switch User Command |
|
|
|
@ -33,7 +36,7 @@ Distribution: OpenPKG [REL]
|
|
|
|
|
Group: System |
|
|
|
|
License: BSD |
|
|
|
|
Version: 1.6.5p2 |
|
|
|
|
Release: 20020221 |
|
|
|
|
Release: 20020311 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: ftp://ftp.courtesan.com/pub/sudo/sudo-%{version}.tar.gz |
|
|
|
@ -43,6 +46,10 @@ Prefix: %{l_prefix}
|
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, MTA |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, MTA |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
BuildPreReq: PAM |
|
|
|
|
PreReq: PAM |
|
|
|
|
%endif |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
|
|
|
|
@ -57,6 +64,10 @@ AutoReqProv: no
|
|
|
|
|
%build |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
CPPFLAGS="-I`%{l_prefix}/etc/rc --query pam_incdir`" \ |
|
|
|
|
LDFLAGS="-L`%{l_prefix}/etc/rc --query pam_libdir`" \ |
|
|
|
|
%endif |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--sysconfdir=%{l_prefix}/etc/sudo \ |
|
|
|
@ -67,7 +78,9 @@ AutoReqProv: no
|
|
|
|
|
--with-sudoers-gid=%{l_muid} \ |
|
|
|
|
--with-sendmail=%{l_prefix}/sbin/sendmail \ |
|
|
|
|
--with-ignore-dot \ |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
--with-pam \ |
|
|
|
|
%endif |
|
|
|
|
--enable-shell-sets-home \ |
|
|
|
|
--disable-root-sudo \ |
|
|
|
|
--with-env-editor \ |
|
|
|
|