diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2008-12-23 04:50:31 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2008-12-23 04:50:31 +0000 |
commit | 627d2494731f933d756ebfe50d851aadbe6dcf07 (patch) | |
tree | 571c0de6a2912768742780bf2f7d81b59380b132 /x11-misc | |
parent | Version bump #246494 by Nico Schlömer. (diff) | |
download | gentoo-2-627d2494731f933d756ebfe50d851aadbe6dcf07.tar.gz gentoo-2-627d2494731f933d756ebfe50d851aadbe6dcf07.tar.bz2 gentoo-2-627d2494731f933d756ebfe50d851aadbe6dcf07.zip |
New slim.conf patch (bug 250722) by Nico R. Wohlgemuth. Converted to EAPI-2 since portage-2.1.6.2 will be stable any day now. add screenshot use flag to dep on imagemagick
(Portage version: 2.2_rc18/cvs/Linux 2.6.27.10 x86_64)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/slim/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/slim/files/slim-1.3.1-config.diff | 38 | ||||
-rw-r--r-- | x11-misc/slim/metadata.xml | 3 | ||||
-rw-r--r-- | x11-misc/slim/slim-1.3.1-r2.ebuild (renamed from x11-misc/slim/slim-1.3.0-r2.ebuild) | 41 |
4 files changed, 62 insertions, 31 deletions
diff --git a/x11-misc/slim/ChangeLog b/x11-misc/slim/ChangeLog index 0fb2d68734de..1cb14a7a4ae2 100644 --- a/x11-misc/slim/ChangeLog +++ b/x11-misc/slim/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for x11-misc/slim # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.28 2008/12/12 09:53:11 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.29 2008/12/23 04:50:31 darkside Exp $ + +*slim-1.3.1-r2 (23 Dec 2008) + + 23 Dec 2008; Jeremy Olexa <darkside@gentoo.org> + +files/slim-1.3.1-config.diff, metadata.xml, -slim-1.3.0-r2.ebuild, + +slim-1.3.1-r2.ebuild: + New slim.conf patch (bug 250722) by Nico R. Wohlgemuth. Converted to EAPI-2 + since portage-2.1.6.2 will be stable any day now. add screenshot use flag to + dep on imagemagick 12 Dec 2008; Raúl Porcel <armin76@gentoo.org> slim-1.3.1-r1.ebuild: sparc/x86 stable wrt #248448 diff --git a/x11-misc/slim/files/slim-1.3.1-config.diff b/x11-misc/slim/files/slim-1.3.1-config.diff new file mode 100644 index 000000000000..1415d3d24d77 --- /dev/null +++ b/x11-misc/slim/files/slim-1.3.1-config.diff @@ -0,0 +1,38 @@ +--- slim.conf.orig 2008-12-22 22:31:25.073293331 -0600 ++++ slim.conf 2008-12-22 22:36:14.271006503 -0600 +@@ -2,7 +2,7 @@ + # Note: -xauth $authfile is automatically appended + default_path ./:/bin:/usr/bin:/usr/local/bin + default_xserver /usr/bin/X +-#xserver_arguments -dpi 75 ++xserver_arguments -nolisten tcp -br -deferglyphs 16 + + # Commands for halt, login, etc. + halt_cmd /sbin/shutdown -h now +@@ -18,7 +18,7 @@ + + + # Activate numlock when slim starts. Valid values: on|off +-# numlock on ++numlock on + + # Hide the mouse cursor (note: does not work with some WMs). + # Valid values: true|false +@@ -33,7 +33,8 @@ + # to adjust the command according to your preferred shell, + # i.e. for freebsd use: + # login_cmd exec /bin/sh - ~/.xinitrc %session +-login_cmd exec /bin/bash -login ~/.xinitrc %session ++# login_cmd exec /bin/bash -login ~/.xinitrc %session ++login_cmd exec /bin/bash -login /etc/X11/xinit/xinitrc + + # Commands executed when starting and exiting a session. + # They can be used for registering a X11 session with +@@ -41,6 +42,7 @@ + # + # sessionstart_cmd some command + # sessionstop_cmd some command ++sessionstart_cmd /usr/bin/sessreg -a -l :0.0 %user + + # Start in daemon mode. Valid values: yes | no + # Note that this can be overriden by the command line diff --git a/x11-misc/slim/metadata.xml b/x11-misc/slim/metadata.xml index c164cdae1bb7..8f20e7cca7da 100644 --- a/x11-misc/slim/metadata.xml +++ b/x11-misc/slim/metadata.xml @@ -5,5 +5,8 @@ <maintainer> <email>darkside@gentoo.org</email> </maintainer> + <use> + <flag name="screenshot">Enable screenshot support (using <pkg>media-gfx/imagemagick</pkg>)</flag> + </use> </pkgmetadata> diff --git a/x11-misc/slim/slim-1.3.0-r2.ebuild b/x11-misc/slim/slim-1.3.1-r2.ebuild index 366866713bc2..107d16e244b4 100644 --- a/x11-misc/slim/slim-1.3.0-r2.ebuild +++ b/x11-misc/slim/slim-1.3.1-r2.ebuild @@ -1,8 +1,10 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.0-r2.ebuild,v 1.5 2008/09/26 10:42:41 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.1-r2.ebuild,v 1.1 2008/12/23 04:50:31 darkside Exp $ -inherit eutils toolchain-funcs pam +EAPI=2 + +inherit toolchain-funcs pam eutils DESCRIPTION="Simple Login Manager" HOMEPAGE="http://slim.berlios.de" @@ -10,8 +12,8 @@ SRC_URI="mirror://berlios/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~sparc ~x86" -IUSE="pam" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="screenshot pam" DEPEND="x11-proto/xproto x11-libs/libXmu @@ -22,40 +24,19 @@ DEPEND="x11-proto/xproto media-libs/jpeg pam? ( virtual/pam )" RDEPEND="${DEPEND} - media-fonts/corefonts - x11-apps/sessreg" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-gcc43.patch + x11-apps/sessreg + screenshot? ( media-gfx/imagemagick )" +src_prepare() { # respect C[XX]FLAGS, fix crosscompile, # fix linking order for --as-needed" sed -i -e "s:^CXX=.*:CXX=$(tc-getCXX) ${CXXFLAGS}:" \ -e "s:^CC=.*:CC=$(tc-getCC) ${CFLAGS}:" \ -e "s:^MANDIR=.*:MANDIR=/usr/share/man:" \ - -e "s:/usr/X11R6:/usr:" \ -e "s:^\t\(.*\)\ \$(LDFLAGS)\ \(.*\):\t\1\ \2\ \$(LDFLAGS):g" \ -r -e "s:^LDFLAGS=(.*):LDFLAGS=\1 ${LDFLAGS}:" \ - Makefile || die 'sed failed in Makefile' - - # Remove all X11R6 references from slim.conf - # Set slim to daemon mode as default to stop xdm runscript from throwing errors on stop - # Set the default logfile to /dev/null to avoid cluttering up the harddisk - # as slim puts a lot of garbage in its logfile - # Make slim honor XSESSION in /etc/rc.conf by default. - sed -i -e 's#X11R6/##g' -e 's#/usr/bin:##' \ - -e 's/# daemon/daemon/' \ - -e 's#/var/log/slim.log#/dev/null#g' \ - -e '/^login_cmd.*/s#exec /bin/bash.*#exec /bin/bash -login /etc/X11/xinit/xinitrc#' \ - slim.conf || die "sed failed in slim.conf" - - # This method of appending to the slim.conf file may change, but it - # works for now. - echo "# Needed so your login will show up in wtmp and utmp, etc" >> slim.conf || die - echo "sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user" >> slim.conf || die - echo "sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user" >> slim.conf || die + Makefile || die "sed failed in Makefile" + epatch "${FILESDIR}/${P}-config.diff" } src_compile() { |