]>
Commit | Line | Data |
---|---|---|
0db4896e | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
0db4896e SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = authconfig |
68d1d93d SS |
7 | version = 6.2.5 |
8 | release = 1 | |
0db4896e | 9 | |
802ea3af MT |
10 | groups = System/Base |
11 | url = https://fedorahosted.org/authconfig | |
12 | license = GPLv2+ | |
13 | summary = Command line tool for setting up authentication from network services. | |
0db4896e | 14 | |
802ea3af | 15 | description |
90ee35c3 SS |
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 | |
802ea3af MT |
19 | authentication schemes. |
20 | end | |
21 | ||
22 | source_dl = https://fedorahosted.org/releases/a/u/authconfig/ | |
23 | sources = %{thisapp}.tar.bz2 | |
0db4896e | 24 | |
802ea3af MT |
25 | build |
26 | requires | |
27 | intltool | |
28 | python-devel | |
29 | end | |
0db4896e | 30 | |
3d794248 SS |
31 | # Manually link against libresolv. |
32 | export LDFLAGS += -lresolv | |
33 | ||
802ea3af MT |
34 | configure_options += \ |
35 | --sysconfdir=/etc \ | |
36 | --localstatedir=/var \ | |
37 | --disable-static | |
0db4896e | 38 | |
802ea3af MT |
39 | # Hack to allow installation of the desktop file |
40 | prepare_cmds | |
41 | ln -s /bin/true /usr/bin/desktop-file-install | |
42 | end | |
0db4896e | 43 | |
802ea3af MT |
44 | install_cmds |
45 | # Remove useless symlinks in /usr/bin | |
46 | rm -rf %{BUILDROOT}/usr/bin | |
0db4896e | 47 | |
802ea3af MT |
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 | |
0db4896e | 51 | |
802ea3af MT |
52 | # Remove symlinks for gtk |
53 | rm -rf %{BUILDROOT}/usr/sbin/authconfig-gtk | |
54 | rm -rf %{BUILDROOT}/usr/sbin/system-config-authentication | |
0db4896e | 55 | |
802ea3af MT |
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 | |
0db4896e | 64 | |
802ea3af MT |
65 | # Remove app icons for authconfig |
66 | rm -rf %{BUILDROOT}/usr/share/icons | |
90ee35c3 SS |
67 | |
68 | # Remove unneded stuff for X11 | |
69 | rm -rf %{BUILDROOT}/etc/X11 | |
802ea3af MT |
70 | end |
71 | end | |
0db4896e | 72 | |
802ea3af MT |
73 | packages |
74 | package %{name} | |
b1544ced CS |
75 | requires |
76 | libpwquality | |
77 | newt-python | |
78 | end | |
513adfb6 MT |
79 | |
80 | configfiles | |
81 | %{sysconfdir}/sysconfig/authconfig | |
82 | %{sysconfdir}/pam.d | |
83 | end | |
802ea3af | 84 | end |
1f9bc2f0 | 85 | |
802ea3af MT |
86 | package %{name}-devel |
87 | template DEVEL | |
88 | end | |
1f9bc2f0 MT |
89 | |
90 | package %{name}-debuginfo | |
91 | template DEBUGINFO | |
92 | end | |
802ea3af | 93 | end |