- Re-write the consolehelpher stuff to work with latest pam

epel8
Deji Akingunola 18 years ago
parent 06e2477bd8
commit 2327bf99f3

@ -1,7 +1,7 @@
Summary: Gnome Partition Editor Summary: Gnome Partition Editor
Name: gparted Name: gparted
Version: 0.3.3 Version: 0.3.3
Release: 3%{?dist} Release: 4%{?dist}
Group: Applications/System Group: Applications/System
License: GPL License: GPL
URL: http://gparted.sourceforge.net URL: http://gparted.sourceforge.net
@ -36,7 +36,7 @@ desktop-file-install --delete-original \
--add-category X-Fedora \ --add-category X-Fedora \
%{buildroot}%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
#### consolehelper stuff (stolen from extras' synaptic) #### consolehelper stuff
mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/gparted %{buildroot}%{_sbindir}/ mv %{buildroot}%{_bindir}/gparted %{buildroot}%{_sbindir}/
ln -s consolehelper %{buildroot}%{_bindir}/gparted ln -s consolehelper %{buildroot}%{_bindir}/gparted
@ -46,19 +46,18 @@ cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/gparted
USER=root USER=root
PROGRAM=%{_sbindir}/gparted PROGRAM=%{_sbindir}/gparted
SESSION=true SESSION=true
FALLBACK=false
EOF EOF
mkdir -p %{buildroot}%{_sysconfdir}/pam.d mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/gparted cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/gparted
#%PAM-1.0 #%PAM-1.0
auth sufficient /%{_lib}/security/pam_rootok.so auth sufficient pam_rootok.so
auth sufficient /%{_lib}/security/pam_timestamp.so auth sufficient pam_timestamp.so
auth required /%{_lib}/security/pam_stack.so service=system-auth auth include system-auth
session required /%{_lib}/security/pam_permit.so session required pam_permit.so
session optional /%{_lib}/security/pam_xauth.so session optional pam_xauth.so
session optional /%{_lib}/security/pam_timestamp.so session optional pam_timestamp.so
account required /%{_lib}/security/pam_permit.so account required pam_permit.so
EOF EOF
%find_lang %{name} %find_lang %{name}
@ -77,6 +76,9 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/security/console.apps/gparted %config(noreplace) %{_sysconfdir}/security/console.apps/gparted
%changelog %changelog
* Wed Jan 24 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-4
- Re-write the consolehelpher stuff to work with latest pam
* Tue Jan 16 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-3 * Tue Jan 16 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-3
- The new parted is back, rebuild again - The new parted is back, rebuild again

Loading…
Cancel
Save