Commit 67e70097 authored by Lee Mallabone's avatar Lee Mallabone

Added an option to 'configure' to --enable-console-helper for gdmconfig.

Turned on by default in the spec file to support priviledged non-root users
running gdmconfig.
parent 02dd1223
Web Feb 28 18:47:14 2001 Lee Mallabone <lee0@callnetuk.com>
* gdmconfig-pam, gdmconfig-security: New files to support
priviledged non-root users running gdmconfig.
* Makefile.am, configure.in, gdm.spec.in: Add option to configure
to --enable-console-helper for gdmconfig.
Tue Feb 27 16:44:34 2001 George Lebl <jirka@5z.com>
* config/gdm.conf.in: apply patch from Vlad Harchev <hvv@hippo.ru>
......
SUBDIRS = config macros pixmaps daemon gui docs intl po
EXTRA_DIST = ChangeLog README.install RELEASENOTES gdm.spec gdm.spec.in
EXTRA_DIST = ChangeLog README.install RELEASENOTES gdm.spec gdm.spec.in \
gdmconfig-pam gdmconfig-security
install-data-local:
if CONSOLE_HELPER
$(INSTALL_DATA) -D gdmconfig-pam $(sysconfdir)/pam.d/gdmconfig
$(INSTALL_DATA) -D gdmconfig-security $(sysconfdir)/security/console.apps/gdmconfig
$(INSTALL_DATA) -m 755 -d $(sbindir)
mv $(bindir)/gdmconfig $(sbindir)
$(LN_S) @bindir@/consolehelper $(bindir)/gdmconfig
endif
......@@ -17,6 +17,18 @@ GNOME_X_CHECKS
AM_PATH_LIBGLADE(,,gnome)
dnl Allow users to run gdmconfig using the console helper PAM stuff.
AC_ARG_ENABLE(console-helper,
[ --enable-console-helper=[no/yes]],,
enable_console_helper=no)
if test "x$enable_console_helper" = "xyes"; then
AM_CONDITIONAL(CONSOLE_HELPER, true)
else
AM_CONDITIONAL(CONSOLE_HELPER, false)
fi
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
......
......@@ -35,7 +35,7 @@ several different X sessions on your local machine at the same time.
%setup -q
%build
CFLAGS="-g $RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=/etc/X11 --localstatedir=/var
CFLAGS="-g $RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=/etc/X11 --localstatedir=/var --enable-console-helper
make
%install
......@@ -82,7 +82,10 @@ exit 0
%doc AUTHORS COPYING ChangeLog NEWS README
%{prefix}/bin/*
${prefix}/sbin/gdmconfig
%config /etc/pam.d/gdm
%config /etc/pam.d/gdmconfig
%config /etc/security/console.apps/gdmconfig
%config /etc/X11/gdm/gnomerc
%config /etc/X11/gdm/gdm.conf
%config /etc/X11/gdm/locale.alias
......@@ -94,9 +97,13 @@ exit 0
%{prefix}/share/gnome/apps/System/gdmconfig.desktop
%{prefix}/share/locale/*/*/*
%{prefix}/share/pixmaps/*
%attr(750, gdm, gdm) %dir /var/gdm
%changelog
* Wed Feb 28 2001 Lee Mallabone <lee0@callnetuk.com>
- Add necessary paths/flags to use console-helper for gdmconfig.
* Fri Feb 03 2001 George Lebl <jirka@5z.com>
- Add gdmconfig files
......
#%PAM-1.0
auth sufficient /lib/security/pam_rootok.so
auth required /lib/security/pam_pwdb.so
session optional /lib/security/pam_xauth.so
account required /lib/security/pam_permit.so
USER=root
PROGRAM=/usr/sbin/gdmconfig
SESSION=false
FALLBACK=true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment