]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/authconfig/authconfig.nm
avahi: Update to 0.6.30.
[people/arne_f/ipfire-3.x.git] / pkgs / authconfig / authconfig.nm
CommitLineData
0db4896e
SS
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = authconfig
28PKG_VER = 6.1.14
21a2d943 29PKG_REL = 2
0db4896e
SS
30
31PKG_MAINTAINER =
32PKG_GROUPS = System/Base
33PKG_URL = https://fedorahosted.org/authconfig
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = Command line tool for setting up authentication from network services.
36
37PKG_BUILD_DEPS+= intltool python-devel
21a2d943 38PKG_DEPS += newt-python
0db4896e
SS
39
40define PKG_DESCRIPTION
41 Authconfig is a command line utility which can configure a workstation\
42 to use shadow (more secure) passwords. Authconfig can also configure a \
43 system to be a client for certain networked user information and \
44 authentication schemes.
45endef
46
47PKG_TARBALL = $(THISAPP).tar.bz2
48
49PKG_PACKAGES += $(PKG_NAME)-devel
50
51CONFIGURE_OPTIONS += \
52 --sysconfdir=/etc \
53 --localstatedir=/var \
54 --disable-static
55
56# Hack to allow installation of the desktop file
57define STAGE_PREPARE_CMDS
58 ln -s /bin/true /usr/bin/desktop-file-install
59endef
60
61define STAGE_INSTALL_CMDS
62 # Remove useless symlinks in /usr/bin
63 rm -rf $(BUILDROOT)/usr/bin
64
65 # Replace absolute symlinks by relative ones
66 cd $(BUILDROOT)/usr/sbin && ln -sf ../share/authconfig/authconfig.py authconfig
67 cd $(BUILDROOT)/usr/sbin && ln -sf ../share/authconfig/authconfig-tui.py authconfig-tui
68
69 # Remove symlinks for gtk
70 rm -rf $(BUILDROOT)/usr/sbin/authconfig-gtk
71 rm -rf $(BUILDROOT)/usr/sbin/system-config-authentication
72
73 # Remove files for authconfig-gtk and system-config-authentication
74 rm -rf $(BUILDROOT)/etc/pam.d/authconfig-gtk
75 rm -rf $(BUILDROOT)/etc/pam.d/system-config-authentication
76 rm -rf $(BUILDROOT)/etc/security/console.apps/authconfig-gtk
77 rm -rf $(BUILDROOT)/etc/security/console.apps/system-config-authentication
78 rm -rf $(BUILDROOT)/usr/share/authconfig/authconfig-gtk.*
79 rm -rf $(BUILDROOT)/usr/share/man/man8/authconfig-gtk.8
80 rm -rf $(BUILDROOT)/usr/share/man/man8/system-config-authentication.8
81
82 # Remove app icons for authconfig
83 rm -rf $(BUILDROOT)/usr/share/icons
84endef