From f6694db83e0f96dd284226b179ad9eebd32b8e51 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 10 Mar 2013 11:05:05 -0700 Subject: [PATCH] Add configuration file for tizen --- packaging/sudo.changes | 3 +++ packaging/sudo.spec | 7 ++++++- packaging/tizen.conf | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 packaging/tizen.conf diff --git a/packaging/sudo.changes b/packaging/sudo.changes index eb8915b..e8b7b53 100644 --- a/packaging/sudo.changes +++ b/packaging/sudo.changes @@ -1,3 +1,6 @@ +* Sun Mar 10 2013 Anas Nashif submit/trunk/20130221.155351@4a826c1 +- Add configuration file for tizen + * Thu Feb 21 2013 Anas Nashif upstream/1.8.6p6@919169c - Initial Packaging diff --git a/packaging/sudo.spec b/packaging/sudo.spec index 99cabb9..91ecc25 100644 --- a/packaging/sudo.spec +++ b/packaging/sudo.spec @@ -7,6 +7,7 @@ Group: System/Base Url: http://www.sudo.ws/ Source0: http://sudo.ws/sudo/dist/%{name}-%{version}.tar.gz Source1: sudo.pamd +Source2: tizen.conf BuildRequires: groff BuildRequires: pam-devel Requires(pre): coreutils @@ -56,6 +57,7 @@ make %{?_smp_mflags} %make_install install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/sudo +install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sudoers.d rm -f %{buildroot}%{_bindir}/sudoedit ln -sf %{_bindir}/sudo %{buildroot}%{_bindir}/sudoedit rm -f %{buildroot}%{_docdir}/%{name}/sample.pam @@ -70,10 +72,13 @@ cat sudoers.lang >> %{name}.lang chmod 0440 %{_sysconfdir}/sudoers -%files -f %{name}.lang +%lang_package + +%files %defattr(-,root,root) %config(noreplace) %attr(0440,root,root) %{_sysconfdir}/sudoers %dir %{_sysconfdir}/sudoers.d +%{_sysconfdir}/sudoers.d/* %config %{_sysconfdir}/pam.d/sudo %attr(4755,root,root) %{_bindir}/sudo %{_bindir}/sudoedit diff --git a/packaging/tizen.conf b/packaging/tizen.conf new file mode 100644 index 0000000..f10e99b --- /dev/null +++ b/packaging/tizen.conf @@ -0,0 +1,3 @@ + +## wheel is without a password +%wheel ALL=(ALL) NOPASSWD: ALL -- 2.7.4