1 |
darkside 08/09/26 18:44:53 |
2 |
|
3 |
Added: slim-1.3.1.ebuild |
4 |
Log: |
5 |
version bump, thanks to Daniel Pielmeier in bug #238801 |
6 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-misc/slim/slim-1.3.1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/slim-1.3.1.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/slim-1.3.1.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: slim-1.3.1.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.1.ebuild,v 1.1 2008/09/26 18:44:52 darkside Exp $ |
19 |
|
20 |
inherit toolchain-funcs pam |
21 |
|
22 |
DESCRIPTION="Simple Login Manager" |
23 |
HOMEPAGE="http://slim.berlios.de" |
24 |
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz" |
25 |
|
26 |
LICENSE="GPL-2" |
27 |
SLOT="0" |
28 |
KEYWORDS="~amd64 ~sparc ~x86" |
29 |
IUSE="pam" |
30 |
|
31 |
DEPEND="x11-proto/xproto |
32 |
x11-libs/libXmu |
33 |
x11-libs/libX11 |
34 |
x11-libs/libXpm |
35 |
x11-libs/libXft |
36 |
media-libs/libpng |
37 |
media-libs/jpeg |
38 |
pam? ( virtual/pam )" |
39 |
RDEPEND="${DEPEND} |
40 |
media-fonts/corefonts |
41 |
x11-apps/sessreg" |
42 |
|
43 |
src_unpack() { |
44 |
unpack ${A} |
45 |
cd "${S}" |
46 |
|
47 |
# respect C[XX]FLAGS, fix crosscompile, |
48 |
# fix linking order for --as-needed" |
49 |
sed -i -e "s:^CXX=.*:CXX=$(tc-getCXX) ${CXXFLAGS}:" \ |
50 |
-e "s:^CC=.*:CC=$(tc-getCC) ${CFLAGS}:" \ |
51 |
-e "s:^MANDIR=.*:MANDIR=/usr/share/man:" \ |
52 |
-e "s:^\t\(.*\)\ \$(LDFLAGS)\ \(.*\):\t\1\ \2\ \$(LDFLAGS):g" \ |
53 |
-r -e "s:^LDFLAGS=(.*):LDFLAGS=\1 ${LDFLAGS}:" \ |
54 |
Makefile || die 'sed failed in Makefile' |
55 |
|
56 |
# Set slim to daemon mode as default to stop xdm runscript from throwing errors on stop |
57 |
# Set the default logfile to /dev/null to avoid cluttering up the harddisk |
58 |
# as slim puts a lot of garbage in its logfile |
59 |
# Make slim honor XSESSION in /etc/rc.conf by default. |
60 |
sed -i -e 's/# daemon/daemon/' \ |
61 |
-e 's#/var/log/slim.log#/dev/null#g' \ |
62 |
-e '/^login_cmd.*/s#exec /bin/bash.*#exec /bin/bash -login /etc/X11/xinit/xinitrc#' \ |
63 |
slim.conf || die "sed failed in slim.conf" |
64 |
|
65 |
# This method of appending to the slim.conf file may change, but it |
66 |
# works for now. |
67 |
echo "# Needed so your login will show up in wtmp and utmp, etc" >> slim.conf || die |
68 |
echo "sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user" >> slim.conf || die |
69 |
echo "sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user" >> slim.conf || die |
70 |
} |
71 |
|
72 |
src_compile() { |
73 |
if use pam ; then |
74 |
emake USE_PAM=1 || die "emake failed." |
75 |
else |
76 |
emake || die "emake failed." |
77 |
fi |
78 |
} |
79 |
|
80 |
src_install() { |
81 |
if use pam ; then |
82 |
emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed." |
83 |
pamd_mimic_system slim auth account password session |
84 |
else |
85 |
emake DESTDIR="${D}" install || die "emake install failed." |
86 |
fi |
87 |
|
88 |
dodoc xinitrc.sample ChangeLog README TODO THEMES |
89 |
} |
90 |
|
91 |
pkg_postinst() { |
92 |
elog |
93 |
elog "The configuration file is located at /etc/slim.conf." |
94 |
elog |
95 |
elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" " |
96 |
elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"." |
97 |
elog "By default, ${PN} will use default XSESSION value set in /etc/rc.conf." |
98 |
elog |
99 |
elog "If you want to use .xinitrc in the user's home directory for session" |
100 |
elog "management instead, see README and xinitrc.sample in" |
101 |
elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf" |
102 |
elog "accordingly." |
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 |
fi |
109 |
} |