Gentoo Archives: gentoo-commits

From: "gecos missing (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/slim: ChangeLog slim-1.3.2-r1.ebuild
Date: Tue, 24 Aug 2010 15:30:23
Message-Id: 20100824153018.E56CC2004E@flycatcher.gentoo.org
1 darkside 10/08/24 15:30:18
2
3 Modified: ChangeLog
4 Added: slim-1.3.2-r1.ebuild
5 Log:
6 Revision bump which should improve shutdown behavior by patching a SIGTERM issue and changing the pid file to slim.pid instead of slim.lock. Thanks to Grygoriy I. Fuchedzhy and others in bug 261359
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.52 x11-misc/slim/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/ChangeLog?rev=1.52&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/ChangeLog?rev=1.52&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/ChangeLog?r1=1.51&r2=1.52
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v
19 retrieving revision 1.51
20 retrieving revision 1.52
21 diff -u -r1.51 -r1.52
22 --- ChangeLog 31 Jul 2010 02:58:39 -0000 1.51
23 +++ ChangeLog 24 Aug 2010 15:30:18 -0000 1.52
24 @@ -1,6 +1,15 @@
25 # ChangeLog for x11-misc/slim
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.51 2010/07/31 02:58:39 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.52 2010/08/24 15:30:18 darkside Exp $
29 +
30 +*slim-1.3.2-r1 (24 Aug 2010)
31 +
32 + 24 Aug 2010; Jeremy Olexa <darkside@g.o>
33 + +files/261359-fix-SIGTERM-freeze.patch, +slim-1.3.2-r1.ebuild,
34 + +files/slim-1.3.2-r1-config.diff:
35 + Revision bump which should improve shutdown behavior by patching a SIGTERM
36 + issue and changing the pid file to slim.pid instead of slim.lock. Thanks
37 + to Grygoriy I. Fuchedzhy and others in bug 261359
38
39 *slim-1.3.2 (31 Jul 2010)
40
41
42
43
44 1.1 x11-misc/slim/slim-1.3.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/slim-1.3.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/slim-1.3.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: slim-1.3.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.2-r1.ebuild,v 1.1 2010/08/24 15:30:18 darkside Exp $
54
55 EAPI=2
56
57 inherit toolchain-funcs pam eutils
58
59 DESCRIPTION="Simple Login Manager"
60 HOMEPAGE="http://slim.berlios.de"
61 SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="branding screenshot pam"
67
68 RDEPEND="x11-libs/libXmu
69 x11-libs/libX11
70 x11-libs/libXpm
71 x11-libs/libXft
72 media-libs/libpng
73 media-libs/jpeg
74 x11-apps/sessreg
75 pam? ( virtual/pam )"
76 DEPEND="${RDEPEND}
77 dev-util/pkgconfig
78 x11-proto/xproto"
79 PDEPEND="branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )"
80
81 src_prepare() {
82 # respect C[XX]FLAGS, fix crosscompile,
83 # fix linking order for --as-needed"
84 sed -i -e "s:^CXX=.*:CXX=$(tc-getCXX) ${CXXFLAGS}:" \
85 -e "s:^CC=.*:CC=$(tc-getCC) ${CFLAGS}:" \
86 -e "s:^MANDIR=.*:MANDIR=/usr/share/man:" \
87 -e "s:^\t\(.*\)\ \$(LDFLAGS)\ \(.*\):\t\1\ \2\ \$(LDFLAGS):g" \
88 -e "s:-I/usr/include/libpng12:$(pkg-config --cflags-only-I libpng):" \
89 -e "s:-lpng12:$(pkg-config --libs-only-l libpng):" \
90 -r -e "s:^LDFLAGS=(.*):LDFLAGS=\1 ${LDFLAGS}:" \
91 Makefile || die "sed failed in Makefile"
92 # Our Gentoo-specific config changes
93 epatch "${FILESDIR}/${PN}-1.3.2-r1-config.diff"
94
95 if use branding; then
96 sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die
97 fi
98
99 # Gentoo bug 297655
100 epatch "${FILESDIR}/14509-fix-keyboard-in-tty-from-which-${PN}-is-lauched.patch"
101 # Upstream bug #15287
102 epatch "${FILESDIR}/15287-fix-pam-authentication-with-pam_unix2.patch"
103 # Gentoo Bug 261713
104 epatch "${FILESDIR}/261713-restart-xserver-if-killed.patch"
105 # Gentoo bug 261359, upstream 15326
106 epatch "${FILESDIR}/261359-fix-SIGTERM-freeze.patch"
107 }
108
109 src_compile() {
110 if use pam ; then
111 emake USE_PAM=1 || die "emake failed."
112 else
113 emake || die "emake failed."
114 fi
115 }
116
117 src_install() {
118 if use pam ; then
119 emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed."
120 pamd_mimic_system slim auth account password session
121 else
122 emake DESTDIR="${D}" install || die "emake install failed."
123 fi
124
125 insinto /etc/logrotate.d
126 newins "${FILESDIR}/slim.logrotate" slim || die "newins failed"
127
128 dodoc xinitrc.sample ChangeLog README TODO THEMES
129 }
130
131 pkg_postinst() {
132 elog
133 elog "The configuration file is located at /etc/slim.conf."
134 elog
135 elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" "
136 elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"."
137 elog "By default, ${PN} will use default XSESSION value set in /etc/rc.conf."
138 elog
139 elog "If you want to use .xinitrc in the user's home directory for session"
140 elog "management instead, see README and xinitrc.sample in"
141 elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf"
142 elog "accordingly."
143 elog
144 if ! use pam; then
145 elog "You have merged ${PN} without USE=pam, this will cause ${PN} to fall back to"
146 elog "the console when restarting your window manager. If this is not"
147 elog "desired, then please remerge ${PN} with USE=pam"
148 fi
149 }