diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-08-20 21:28:34 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-08-20 21:28:34 +0000 |
commit | 511ac7e19f19bd65c10164311f11b066a9e4103e (patch) | |
tree | cbbbdab56bd68660d9fad0c2d9e4af53632eb123 /x11-apps | |
parent | Stable for x86, wrt bug #431954 (diff) | |
download | gentoo-2-511ac7e19f19bd65c10164311f11b066a9e4103e.tar.gz gentoo-2-511ac7e19f19bd65c10164311f11b066a9e4103e.tar.bz2 gentoo-2-511ac7e19f19bd65c10164311f11b066a9e4103e.zip |
systemd: update the unit to install as display-manager.service.
(Portage version: 2.2.0_alpha120_p33/cvs/Linux x86_64)
Diffstat (limited to 'x11-apps')
-rw-r--r-- | x11-apps/xdm/ChangeLog | 6 | ||||
-rw-r--r-- | x11-apps/xdm/xdm-1.1.11-r1.ebuild | 26 |
2 files changed, 15 insertions, 17 deletions
diff --git a/x11-apps/xdm/ChangeLog b/x11-apps/xdm/ChangeLog index bb9f89276627..f54b41a518ac 100644 --- a/x11-apps/xdm/ChangeLog +++ b/x11-apps/xdm/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for x11-apps/xdm # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-apps/xdm/ChangeLog,v 1.144 2012/03/19 06:09:52 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-apps/xdm/ChangeLog,v 1.145 2012/08/20 21:28:34 mgorny Exp $ + + 20 Aug 2012; Michał Górny <mgorny@gentoo.org> xdm-1.1.11-r1.ebuild: + systemd: update the unit to install as display-manager.service. 19 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> -files/0001-Fix-missing-linking-dependency-on-ldl.patch, @@ -587,4 +590,3 @@ 08 Aug 2005; Donnie Berkholz <spyderous@gentoo.org>; +xdm-0.99.0.ebuild: Initial commit for modular X. - diff --git a/x11-apps/xdm/xdm-1.1.11-r1.ebuild b/x11-apps/xdm/xdm-1.1.11-r1.ebuild index afdb14e41b8e..c5a663102ece 100644 --- a/x11-apps/xdm/xdm-1.1.11-r1.ebuild +++ b/x11-apps/xdm/xdm-1.1.11-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-apps/xdm/xdm-1.1.11-r1.ebuild,v 1.10 2012/03/18 19:14:13 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-apps/xdm/xdm-1.1.11-r1.ebuild,v 1.11 2012/08/20 21:28:34 mgorny Exp $ EAPI=4 @@ -26,7 +26,8 @@ RDEPEND="x11-apps/xrdb x11-apps/sessreg x11-apps/xconsole consolekit? ( sys-auth/consolekit ) - pam? ( virtual/pam )" + pam? ( virtual/pam ) + !<sys-apps/systemd-187" DEPEND="${RDEPEND} consolekit? ( !=sys-auth/pambase-20101024-r1 ) x11-proto/xineramaproto @@ -45,6 +46,14 @@ pkg_setup() { ) } +src_prepare() { + # fedora invented that in -187... + sed -i -e 's:^Alias=.*$:Alias=display-manager.service:' \ + xdm.service.in || die + + xorg-2_src_prepare +} + src_install() { xorg-2_src_install @@ -56,16 +65,3 @@ src_install() { # Keep /var/lib/xdm. This is where authfiles are stored. See #286350. keepdir /var/lib/xdm } - -pkg_postinst() { - # Mea culpa, feel free to remove that after some time --mgorny. - if [[ -L "${ROOT}"/etc/systemd/system/graphical.target.wants/${PN}'@tty7'.service ]] - then - ebegin "Renaming ${PN}@tty7.service to ${PN}.service" - ln -s "${ROOT}"/lib/systemd/system/xdm.service \ - "${ROOT}"/etc/systemd/system/graphical.target.wants/${PN}.service && \ - rm -f "${ROOT}"/etc/systemd/system/graphical.target.wants/${PN}'@tty7'.service - eend ${?} \ - "Please try to re-enable xdm.service" - fi -} |