diff options
-rw-r--r-- | x11-misc/mdm/Manifest | 2 | ||||
-rw-r--r-- | x11-misc/mdm/mdm-2.0.5.ebuild | 124 |
2 files changed, 126 insertions, 0 deletions
diff --git a/x11-misc/mdm/Manifest b/x11-misc/mdm/Manifest new file mode 100644 index 00000000..d93c295e --- /dev/null +++ b/x11-misc/mdm/Manifest @@ -0,0 +1,2 @@ +DIST gdm-2.8-gentoo-files-r2.tar.bz2 3101 SHA256 c9335d71ab0a2ceca6a5959947aabf3728031e86dcb5536b7b57c6115c4ce53e SHA512 785873f5ae702d3a49d51467f94cad77763f9379e9e2039b5229e9835410b11e517e2c490d73a1fd7237ceed4375964f6c21c20645d7f285fb1bf8543b9be85c WHIRLPOOL 869bede81425e6d23351d3b8c06a4ae2c9e9c27e01cf81213120c23b5b3ff21c76abbc83e2c74d46cf0b3468642c7bdedffb836e242d7126d5c2079edf0e88fc +DIST mdm-2.0.5.tar.gz 4307688 SHA256 e8936b772504895a5b9406ca7e23023be35c79040247d2181b8f0034808d551f SHA512 0e11e056553d1f6207834fd750324846614a00ad425b940399baf98f438611d145aa801325724010c0a3d0f1032b8ed8516d4aee76d4f37946b792fdb5f41827 WHIRLPOOL 1bbf3c30ab4ac552b993baeaa33f04742c5ede0d2a9dae6d5073562a26b56c2559ab98c52c62615e8dfb46761de11ec2a0fad84a57e2043bdecde2a6a475d378 diff --git a/x11-misc/mdm/mdm-2.0.5.ebuild b/x11-misc/mdm/mdm-2.0.5.ebuild new file mode 100644 index 00000000..8b5c1c74 --- /dev/null +++ b/x11-misc/mdm/mdm-2.0.5.ebuild @@ -0,0 +1,124 @@ +EAPI=5 + +inherit autotools eutils libtool gnome2 pam user +DESCRIPTION="Mate Display Manager" +HOMEPAGE="http://mate-desktop.org" +LICENSE="GPL-2 LGPL-2" +SLOT=0 +KEYWORDS="~amd64 ~x86" +GDM_EXTRA="gdm-2.8-gentoo-files-r2" +SRC_URI="https://github.com/linuxmint/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + http://mirror.yandex.ru/gentoo-distfiles/distfiles/${GDM_EXTRA}.tar.bz2" +IUSE="accessibility afs elibc_glibc remote gnome-keyring ipv6 xinerama pam tcpd dmx selinux +consolekit" + + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:2 + >=x11-libs/pango-1.36.8 + x11-libs/gdk-pixbuf + gnome-base/libglade:2.0 + gnome-base/libgnomecanvas + gnome-base/librsvg:2 + dev-libs/libxml2:2 + media-libs/libart_lgpl + net-libs/webkit-gtk:2 + x11-libs/gksu + x11-libs/libXi + x11-libs/libXau + x11-libs/libX11 + x11-libs/libXext + x11-apps/sessreg + x11-libs/libXdmcp + xinerama? ( x11-libs/libXinerama x11-proto/xineramaproto ) + consolekit? ( + sys-auth/consolekit + dev-libs/dbus-glib ) + accessibility? ( x11-libs/libXevie ) + afs? ( net-fs/openafs sys-libs/lwp ) + dmx? ( x11-libs/libdmx ) + gnome-keyring? ( gnome-base/gnome-keyring[pam] ) + pam? ( virtual/pam ) + !pam? ( elibc_glibc? ( sys-apps/shadow ) ) + remote? ( gnome-extra/zenity ) + selinux? ( sys-libs/libselinux ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + >=x11-misc/xdg-utils-1.0.2-r3 +" + +DEPEND="${RDEPEND} + dmx? ( x11-proto/dmxproto ) + app-text/docbook-xml-dtd:4.1.2 + sys-devel/gettext + x11-proto/inputproto + >=dev-util/intltool-0.35 + virtual/pkgconfig + >=app-text/scrollkeeper-0.1.4 + >=app-text/gnome-doc-utils-0.3.2" + +pkg_setup() { + DOCS="AUTHORS ChangeLog NEWS README TODO" + G2CONF="${G2CONF} + --with-prefetch + --sysconfdir=/etc/X11 + --localstatedir=/var + --with-pam-prefix=/etc + --disable-static + $(use_enable ipv6) + $(use_enable remote secureremote) + $(use_with accessibility xevie) + $(use_with consolekit console-kit) + $(use_with dmx) + $(use_with selinux) + $(use_with tcpd tcp-wrappers) + $(use_with xinerama)" + + if use pam; then + G2CONF="${G2CONF} --enable-authentication-scheme=pam" + else + G2CONF="${G2CONF} --enable-console-helper=no" + if use elibc_glibc ; then + G2CONF="${G2CONF} --enable-authentication-scheme=shadow" + else + G2CONF="${G2CONF} --enable-authentication-scheme=crypt" + fi + fi + + enewgroup mdm + enewuser mdm -1 -1 /var/lib/mdm mdm +} + +src_prepare() { + eautoreconf + + gnome2_src_prepare +} + +src_install() { + gnome2_src_install + + local gentoodir="${WORKDIR}/${GDM_EXTRA}" + + # install XDG_DATA_DIRS mdm changes + echo 'XDG_DATA_DIRS="/usr/share/mdm"' > 99xdg-mdm + doenvd 99xdg-mdm + + + # avoid file collision, bug #213118 + rm -f "${D}/usr/share/xsessions/gnome.desktop" + + # We replace the pam stuff by our own + rm -rf "${D}/etc/pam.d" + + if use pam ; then + use gnome-keyring && sed -i "s:#Keyring=::g" "${gentoodir}"/pam.d/* + + mv "${gentoodir}"/pam.d/{g,m}dm + mv "${gentoodir}"/pam.d/{g,m}dmsetup + mv "${gentoodir}"/pam.d/{g,m}dm-autologin + dopamd "${gentoodir}"/pam.d/* + sed s/gdmsetup/mdmsetup/ "${gentoodir}/security/console.apps/gdmsetup" > "${gentoodir}/security/console.apps/mdmsetup" + dopamsecurity console.apps "${gentoodir}/security/console.apps/mdmsetup" + fi + +} |