From 3fbacca361c365ac746ce63ca710e74e31f7d7bd Mon Sep 17 00:00:00 2001 From: nalin Date: Feb 04 2002 23:51:30 +0000 Subject: install firstboot configs --- diff --git a/Makefile b/Makefile index a5d6cdd..cdab929 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,8 @@ install: install -m 644 $(DATA) $(DESTDIR)$(datadir)/$(PACKAGE)/ chmod 755 $(DESTDIR)$(datadir)/$(PACKAGE)/*.py python -c "import compileall; compileall.compile_dir(\""$(DESTDIR)$(datadir)/$(PACKAGE)"\", 2, \""$(datadir)/$(PACKAGE)"\", 1)" - cd $(DESTDIR)$(datadir)/firstboot/modules ; ln -s -f ../../$(PACKAGE)/*.py* . + cd $(DESTDIR)$(datadir)/firstboot/modules ; ln -s -f ../../$(PACKAGE)/$(PACKAGE)-gtk.py authentication.py + cd $(DESTDIR)$(datadir)/firstboot/modules ; ln -s -f ../../$(PACKAGE)/$(PACKAGE)-gtk.pyc authentication.pyc mkdir -p $(DESTDIR)$(mandir)/man8 for d in $(SUBDIRS); do \ diff --git a/authconfig-gtk.py b/authconfig-gtk.py index 4c4bcc1..74a800a 100755 --- a/authconfig-gtk.py +++ b/authconfig-gtk.py @@ -79,10 +79,18 @@ class childWindow: # Create a vbox with the right controls and return the vbox. */ def run_on_button(self, button, top = "vbox", mapname = "main_map"): box, events = self.launch(top, mapname) + events.destroy() box.show() return def launch(self, top = "vbox", mapname = "main_map"): + # Create a header. + eventbox = gtk.HBox() + image = None + try: + image = gtk.gdk.pixbuf_new_from_file("/usr/share/firstboot/pixmaps/authconfig.png") + image = gtk.gdk.pixbuf_new_from_file("/usr/share/authconfig/authconfig.png") + # Construct the XML object. xml = gtk.glade.XML("/usr/share/authconfig/authconfig.glade", top, "authconfig") box = xml.get_widget(top) @@ -119,7 +127,7 @@ class childWindow: map[entry][0])) widget.connect("toggled", self.toggleboolean, map[entry][0]) - return (box, box) + return box, eventbox # Save changes. def apply(self, button = None): diff --git a/authconfig.spec b/authconfig.spec index 3e2b7cc..70170a7 100644 --- a/authconfig.spec +++ b/authconfig.spec @@ -7,8 +7,8 @@ ExclusiveOS: Linux Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-root Source: %{name}-%{version}.tar.gz -Requires: glibc >= 2.1, pam >= 0.73, glib -BuildPrereq: pam-devel >= 0.73, newt-devel, gtk2-devel, libglade2-devel +Requires: glibc >= 2.1, pam >= 0.73, glib2 +BuildPrereq: pam-devel >= 0.73, newt-devel, gtk2-devel, libglade2-devel, python %description Authconfig is a terminal mode program which can configure a workstation @@ -70,6 +70,7 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/authconfig-gtk %{_datadir}/%{name}/*.py* %{_datadir}/%{name}/%{name}.glade +%{_datadir}/firstboot/modules/* %config(noreplace) %{_sysconfdir}/pam.d/authconfig-gtk %config(noreplace) %{_sysconfdir}/security/console.apps/authconfig-gtk