/[gentoo-x86]/x11-misc/slim/slim-1.3.3.ebuild
Gentoo

Contents of /x11-misc/slim/slim-1.3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Jun 27 16:01:19 2012 UTC (10 months, 3 weeks ago) by axs
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
version bump; remove old

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.3.ebuild,v 1.6 2012/06/23 20:25:30 lu_zero Exp $
4
5 EAPI=4
6
7 CMAKE_MIN_VERSION="2.8.8"
8 inherit cmake-utils pam eutils
9
10 DESCRIPTION="Simple Login Manager"
11 HOMEPAGE="http://slim.berlios.de"
12 SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
17 IUSE="branding pam consolekit"
18 REQUIRED_USE="consolekit? ( pam )"
19
20 RDEPEND="x11-libs/libXmu
21 x11-libs/libX11
22 x11-libs/libXpm
23 x11-libs/libXft
24 media-libs/libpng
25 virtual/jpeg
26 x11-apps/sessreg
27 consolekit? ( sys-auth/consolekit
28 sys-apps/dbus )
29 pam? ( virtual/pam )"
30 DEPEND="${RDEPEND}
31 virtual/pkgconfig
32 x11-proto/xproto"
33 PDEPEND="branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )"
34
35 src_prepare() {
36 # Our Gentoo-specific config changes
37 epatch "${FILESDIR}"/${P}-config.diff
38 # Bug 414891
39 epatch "${FILESDIR}"/${P}-xmu-cmakelists.patch
40
41 if use elibc_FreeBSD; then
42 sed -i -e 's/"-DHAVE_SHADOW"/"-DNEEDS_BASENAME"/' CMakeLists.txt \
43 || die
44 fi
45
46 if use branding; then
47 sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die
48 fi
49
50 # Upstream bug #15287 (still not fixed in codebase)
51 epatch "${FILESDIR}"/15287-fix-pam-authentication-with-pam_unix2.patch
52 # Gentoo bug 405579, Upstream bug #18552
53 epatch "${FILESDIR}"/405579-fix-numlock.patch
54 }
55
56 src_configure() {
57 mycmakeargs=(
58 $(cmake-utils_use pam USE_PAM)
59 $(cmake-utils_use consolekit USE_CONSOLEKIT)
60 )
61
62 cmake-utils_src_configure
63 }
64
65 src_install() {
66 cmake-utils_src_install
67
68 if use pam ; then
69 pamd_mimic system-local-login slim auth account session
70 fi
71
72 insinto /usr/share/slim
73 newins "${FILESDIR}/Xsession-r3" Xsession
74
75 insinto /etc/logrotate.d
76 newins "${FILESDIR}/slim.logrotate" slim
77
78 dodoc xinitrc.sample ChangeLog README TODO THEMES
79 }
80
81 pkg_postinst() {
82 elog
83 elog "The configuration file is located at /etc/slim.conf."
84 elog
85 elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" "
86 elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"."
87 elog
88 elog "By default, ${PN} now does proper X session selection, including ~/.xsession"
89 elog "support, as well as selection between sessions available in"
90 elog "/etc/X11/Sessions/ at login by pressing [F1]."
91 elog
92 elog "The XSESSION environment variable is still supported as a default"
93 elog "if no session has been specified by the user."
94 elog
95 elog "If you want to use .xinitrc in the user's home directory for session"
96 elog "management instead, see README and xinitrc.sample in"
97 elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf"
98 elog "accordingly."
99 elog
100 ewarn "Please note that slim now supports consolekit directly. Please remove any "
101 ewarn "existing work-arounds (including all calls to 'ck-launch-session' in "
102 ewarn "xinitrc scripts) and enable USE=\"consolekit\""
103 elog
104 if ! use pam; then
105 elog "You have merged ${PN} without USE=pam, this will cause ${PN} to fall back to"
106 elog "the console when restarting your window manager. If this is not"
107 elog "desired, then please remerge ${PN} with USE=pam"
108 elog
109 fi
110 }

  ViewVC Help
Powered by ViewVC 1.1.13