|
Lines 2-8
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.0-r1.ebuild,v 1.1 2007/10/27 18:02:37 angelos Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.0-r1.ebuild,v 1.1 2007/10/27 18:02:37 angelos Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit toolchain-funcs |
5 |
inherit toolchain-funcs pam |
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="Simple Login Manager" |
7 |
DESCRIPTION="Simple Login Manager" |
| 8 |
HOMEPAGE="http://slim.berlios.de" |
8 |
HOMEPAGE="http://slim.berlios.de" |
|
Lines 41-49
Link Here
|
| 41 |
# Set slim to daemon mode as default to stop xdm runscript from throwing errors on stop |
41 |
# Set slim to daemon mode as default to stop xdm runscript from throwing errors on stop |
| 42 |
# Set the default logfile to /dev/null to avoid cluttering up the harddisk |
42 |
# Set the default logfile to /dev/null to avoid cluttering up the harddisk |
| 43 |
# as slim puts a lot of garbage in its logfile |
43 |
# as slim puts a lot of garbage in its logfile |
|
|
44 |
# Make slim honor XSESSION in /etc/rc.conf by default. |
| 44 |
sed -i -e 's#X11R6/##g' -e 's#/usr/bin:##' \ |
45 |
sed -i -e 's#X11R6/##g' -e 's#/usr/bin:##' \ |
| 45 |
-e 's/# daemon/daemon/' \ |
46 |
-e 's/# daemon/daemon/' \ |
| 46 |
-e 's#/var/log/slim.log#/dev/null#g' \ |
47 |
-e 's#/var/log/slim.log#/dev/null#g' \ |
|
|
48 |
-e '/^login_cmd.*/s#exec /bin/bash.*#exec /bin/bash -login /etc/X11/xinit/xinitrc#' \ |
| 47 |
slim.conf || die "sed failed in slim.conf" |
49 |
slim.conf || die "sed failed in slim.conf" |
| 48 |
} |
50 |
} |
| 49 |
|
51 |
|
|
Lines 58-63
Link Here
|
| 58 |
src_install() { |
60 |
src_install() { |
| 59 |
if use pam ; then |
61 |
if use pam ; then |
| 60 |
emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed." |
62 |
emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed." |
|
|
63 |
pamd_mimic_system slim auth account password session |
| 61 |
else |
64 |
else |
| 62 |
emake DESTDIR="${D}" install || die "emake install failed." |
65 |
emake DESTDIR="${D}" install || die "emake install failed." |
| 63 |
fi |
66 |
fi |
|
Lines 68-84
Link Here
|
| 68 |
pkg_postinst() { |
71 |
pkg_postinst() { |
| 69 |
elog |
72 |
elog |
| 70 |
elog "The configuration file is located at /etc/slim.conf." |
73 |
elog "The configuration file is located at /etc/slim.conf." |
|
|
74 |
elog |
| 71 |
elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" " |
75 |
elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" " |
| 72 |
elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"." |
76 |
elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"." |
|
|
77 |
elog "By default, ${PN} will use default XSESSION value set in /etc/rc.conf." |
| 73 |
elog |
78 |
elog |
| 74 |
elog "${PN} uses .xinitrc in the user's home directory and /etc/slim.conf" |
79 |
elog "If you want to use .xinitrc in the user's home directory for session management" |
| 75 |
elog "for session management. For further information, see README and" |
80 |
elog "instead, see README and xinitrc.sample in /usr/share/doc/${PF}." |
| 76 |
elog "xinitrc.sample in /usr/share/doc/${PF}." |
81 |
elog "and change your login_cmd in /etc/slim.conf accordingly." |
| 77 |
elog |
82 |
elog |
| 78 |
if use pam ; then |
|
|
| 79 |
elog "You need to create /etc/pam.d/slim for SLiM to work." |
| 80 |
elog "A simple symlink to /etc/pam.d/system-auth is enough," |
| 81 |
elog "if you don't need any extra configuration" |
| 82 |
elog |
| 83 |
fi |
| 84 |
} |
83 |
} |