1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = https://fedorahosted.org/authconfig
13 summary = Command line tool for setting up authentication from network services.
16 Authconfig is a command line utility which can configure a workstation
17 to use shadow (more secure) passwords. Authconfig can also configure a
18 system to be a client for certain networked user information and
19 authentication schemes.
22 source_dl = https://fedorahosted.org/releases/a/u/authconfig/
23 sources = %{thisapp}.tar.bz2
31 # Manually link against libresolv.
32 export LDFLAGS += -lresolv
34 configure_options += \
36 --localstatedir=/var \
39 # Hack to allow installation of the desktop file
41 ln -s /bin/true /usr/bin/desktop-file-install
45 # Remove useless symlinks in /usr/bin
46 rm -rf %{BUILDROOT}/usr/bin
48 # Replace absolute symlinks by relative ones
49 cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig.py authconfig
50 cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig-tui.py authconfig-tui
52 # Remove symlinks for gtk
53 rm -rf %{BUILDROOT}/usr/sbin/authconfig-gtk
54 rm -rf %{BUILDROOT}/usr/sbin/system-config-authentication
56 # Remove files for authconfig-gtk and system-config-authentication
57 rm -rf %{BUILDROOT}/etc/pam.d/authconfig-gtk
58 rm -rf %{BUILDROOT}/etc/pam.d/system-config-authentication
59 rm -rf %{BUILDROOT}/etc/security/console.apps/authconfig-gtk
60 rm -rf %{BUILDROOT}/etc/security/console.apps/system-config-authentication
61 rm -rf %{BUILDROOT}/usr/share/authconfig/authconfig-gtk.*
62 rm -rf %{BUILDROOT}/usr/share/man/man8/authconfig-gtk.8
63 rm -rf %{BUILDROOT}/usr/share/man/man8/system-config-authentication.8
65 # Remove app icons for authconfig
66 rm -rf %{BUILDROOT}/usr/share/icons
68 # Remove unneded stuff for X11
69 rm -rf %{BUILDROOT}/etc/X11
81 %{sysconfdir}/sysconfig/authconfig
90 package %{name}-debuginfo