diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-10-23 08:19:12 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-10-23 08:19:12 +0000 |
commit | 1a05c93a9eb77e7d583a9026d2c232a7dbe5046a (patch) | |
tree | 39c60928456011653e86ffcc46fb1a33c9b10a1e /net-misc/xrdp | |
parent | adding as maintainer for now (diff) | |
download | historical-1a05c93a9eb77e7d583a9026d2c232a7dbe5046a.tar.gz historical-1a05c93a9eb77e7d583a9026d2c232a7dbe5046a.tar.bz2 historical-1a05c93a9eb77e7d583a9026d2c232a7dbe5046a.zip |
Initial commit of net-misc/xrdp, bug #352363.
Package-Manager: portage-2.2.14_rc1/cvs/Linux x86_64
Manifest-Sign-Key: 0xEFB4464E!
Diffstat (limited to 'net-misc/xrdp')
-rw-r--r-- | net-misc/xrdp/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/xrdp/Manifest | 31 | ||||
-rw-r--r-- | net-misc/xrdp/files/startwm.sh | 8 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-initd | 28 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-sesman.pamd | 4 | ||||
-rw-r--r-- | net-misc/xrdp/metadata.xml | 11 | ||||
-rw-r--r-- | net-misc/xrdp/xrdp-0.6.1.ebuild | 91 | ||||
-rw-r--r-- | net-misc/xrdp/xrdp-0.8.0.ebuild | 124 |
8 files changed, 308 insertions, 0 deletions
diff --git a/net-misc/xrdp/ChangeLog b/net-misc/xrdp/ChangeLog new file mode 100644 index 000000000000..218992d81df4 --- /dev/null +++ b/net-misc/xrdp/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/xrdp +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/ChangeLog,v 1.9 2014/10/23 08:19:10 mgorny Exp $ + +*xrdp-0.8.0 (23 Oct 2014) +*xrdp-0.6.1 (23 Oct 2014) + + 23 Oct 2014; Michał Górny <mgorny@gentoo.org> +files/startwm.sh, + +files/xrdp-initd, +files/xrdp-sesman.pamd, +metadata.xml, +xrdp-0.6.1.ebuild, + +xrdp-0.8.0.ebuild: + Initial commit of net-misc/xrdp, bug #352363. diff --git a/net-misc/xrdp/Manifest b/net-misc/xrdp/Manifest new file mode 100644 index 000000000000..c465ab173c7f --- /dev/null +++ b/net-misc/xrdp/Manifest @@ -0,0 +1,31 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX startwm.sh 147 SHA256 7db27cf7316384a1ef633c582d576f9ea2e19b82bccd0967c0910b44c6b0bb7b SHA512 486cc044ecb295e12b5b03f66ce2052b6c25beb47ed14b475be54fea4d637f6fe557467b03d7a6327a10b04f152f13aa7ec901c97ea034901e40fb76f0731f31 WHIRLPOOL fede06453d8f8015dd874bf9e8a9b71d9deb5412b33ec05bda18ae836df69c54657513835cdd78fe83b4754179cd60149f0c00faa9854b30bb07754a1a9107bc +AUX xrdp-initd 827 SHA256 7f5b8dabd335a6aff71036d0d13a6e38b7d9869911e68dcbbe9d3dcc3ebe9a77 SHA512 bd38ea5a4ebd310dafa83b3718c7754b8b0e522258b49df6f6d79162dfcd2a268ec32f54133a01516b685c60144bf187e874c75a4d68e4cdd293dfd66b7e9f05 WHIRLPOOL 29b0342d6175337681cf9cea1ee109f408e7a4494db84096387cef35b53b2ab150e63a8e94d090b1c7638bd7b53c1619913b0040dcdabcd671a05e0c1e304d52 +AUX xrdp-sesman.pamd 156 SHA256 a153eb2505131600f7e1664728c029fa0255a355dd93c758946a4fac42baedc6 SHA512 37e5b4557be51dfc25b041a553d0464854586d7a10f16740d335be16c9b677f38a08495ef05a01259c3f8d401eb44542bd939dd23d1afa8bac4d9d9e144cb1a4 WHIRLPOOL 49072d111265aadac2c6ab8792d18f1c7b4630d52e0968907ec149a539082335a66ac54b3856727f7045c030af5f81866d332428f42c9cd657816a5b866a7de3 +DIST xrdp-0.8.0.tar.xz 1671376 SHA256 433535039f8b8766d9c22f62de9599afa94dd553e72d9791cec85a5e2f436a60 SHA512 bb2afefce7f53b6c3bca30cb6913171211df63a700f7d70325c1722348d5d31981e1d417727e48fd14aad500d0454e4126e6e1f81f8c09da4928b02f4acff26b WHIRLPOOL 39c1d4852f6f927fd348d345a8d4f4a79824eca0d5682340908d28f3b6b497ae33bfed944294b061b118e4154ed7c5dce15878302145ffabc2ca6b3a2eb07818 +DIST xrdp-v0.6.1.tar.gz 1563654 SHA256 6880003b26799e4154a9486f671b6fc1b0487de0da2289573f46c090146e5a3b SHA512 d2aa5c300ed4c5e84137776f3d5f63736a8d674ef3a96eda271fd6d80ecc394a1148dd9d09b3acf3916c774fd15fe7400271ffb034a45ddae6b34ea30fb2465c WHIRLPOOL 34d51ad9976eff16b2ad68405b54e6d91345f57791f2a35a1676981416a83a0d13f0bb1442fafeb5ff2d74dc3c08610a7e01909181c358beb4770e677d36f833 +EBUILD xrdp-0.6.1.ebuild 2325 SHA256 3c18cb7e59047c8b8075f035e3ec9f76914cec1cc2c67176ebd6d31b12a8c11f SHA512 7830928485fb70b0866f3f8cc336d6e8f291588bc84c8282ed2675c7aed98721c3e91e715f47b8850f2c9bcf0b97c0f5337403332306493897bd0fc382dca489 WHIRLPOOL 4b84b30dd39f0535fef2182615db9692fc0831c9f21f00279ac974fed2b9cd8d384f008bdd353c709f4b31a4eaa55ec63f2885bcd152e0d1c43b6bd3eca27d80 +EBUILD xrdp-0.8.0.ebuild 3625 SHA256 169b54c4ef83585913e488e1948054365588d036d9a35c284662817e190fce44 SHA512 a0ed066b39c27fc56e2090230b8fdb8b0295269a09f106844a19b556cc9519f3ab2e72651f1dd556d356b764655fae59d036bf5837d3871616dc1ba49aefe6f0 WHIRLPOOL 8246f9a94ac6118403972fa2aff184376180367fabe6ac9e2bc0c24544d36471ca2b4ff4803c0a22fc928cbac1a4b35b5989a0b004b53861855a680cceeef94a +MISC ChangeLog 472 SHA256 c07edb24d80dbfa0e09916635e85c641a57a423a2200c3a9f45e4eb862016000 SHA512 ca27aacd0b4939eda8f690570032e5545cbe12bb1a5142afc65f608bcd9acbe52c71e5bcf34b155c0cfadfeedd3d265e7e9e23d1c8c2606234ff90deb167cf7a WHIRLPOOL 689ac86014d5ba35c8824ba443c837b14c9d8125c31a4b12802555e14b4b8f4b6ba894fd3fce2413e28b190e9e7f73001909f6f0e3991390828fea7d9c80a732 +MISC metadata.xml 345 SHA256 c31282487a5eb15b45e22867d2d88998390f96cd852505be88cda2fe0a44c172 SHA512 ac48599a59c2d3f303f31e564d3af5248a8ba27f63f2f50b5135bbfb3bc95c73fedf345c523862ba284aec161bd94ff21eb4f640071c61d2ed86685b39f698de WHIRLPOOL a5b0f439e70a6b18f3b5e2021878a69243508a1a9a27514d76a2da06883d7becbc84ad6553f8d39a9471e334268b8c93b378ae9856b7209b47c9793b6b7974c5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQJ8BAEBCABmBQJUSLn/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC +MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOeJYP/3d6L46Rwn+g3SjHho4afHlA +TKFe/I0F+glpqBboRY7YRdBwinBGrXpLYcHkXl4E3RrGorp2+KwXFb+zByHxtPB6 +gyg4FcnHsFAmxU7nLRgJKHZCnJ0UVsk9VxIOB/OYZGQvTsB399dUdOJ0EoQbE4Rn +4nsPpYUPka21J0rLZOM1E8oD6VNXHEnUCU8qhcMDIttgrWBM3zLvbs64e5C+1L55 +O5fpecev8igyQlvWIDtGVA7q4GUUfm1AGTOv5Jffm83qo5P+glRLYCf1F7NSk8t/ +sRExIOIJe0/79X/wviNCpWlQw+WA2NhvuAEbjebIjPtvnjgK7OW2wr0/QX8EcgJs +NbsySSHaPLt9k97jM+rV8/TgpXAWRSmBEq6LzdaNwp8fM3BqYMqkJu6QtCPLvjJo +2L57zun3SvdaXa/bghPZ9iiSJjPWjjnHOUI7S9Hrg8JNJoFzP+v8ikkba/u+pkev +TWM3Q+6sS+zjHNsiogxz4afilxPNA6f5rPmcvhhPmXPDMeiresLo2ZZKPP92Ydvs +lo7PBUmrJ7NeAaO22D/0JFlRkRt+62+zmPDkl0DnucafQifQTHV9SPQE4SuQYZBs +2USrpALgmnT+9DAWeb7gcIDuDXNFXwWpzxfImo3DFv1NrtDSMcgIiQYE0QEG1ida +OJYuB4Q1vo9bOYYV/I/K +=9gOd +-----END PGP SIGNATURE----- diff --git a/net-misc/xrdp/files/startwm.sh b/net-misc/xrdp/files/startwm.sh new file mode 100644 index 000000000000..df3dd787f2b5 --- /dev/null +++ b/net-misc/xrdp/files/startwm.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# try hard to respect Gentoo's wm choice +. /etc/profile +[ -f /etc/rc.conf ] && . /etc/rc.conf +export XSESSION + +. /etc/X11/xinit/xinitrc diff --git a/net-misc/xrdp/files/xrdp-initd b/net-misc/xrdp/files/xrdp-initd new file mode 100644 index 000000000000..a6fbce01896b --- /dev/null +++ b/net-misc/xrdp/files/xrdp-initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/files/xrdp-initd,v 1.3 2014/10/23 08:19:10 mgorny Exp $ + +depend() { + use net logger +} + +start() { + ebegin "Starting X remote desktop daemon" + start-stop-daemon --start --pidfile /var/run/xrdp.pid --exec /usr/bin/xrdp > /dev/null + eend $? || return $? + + ebegin "Starting remote desktop session manager" + start-stop-daemon --start --pidfile /var/run/xrdp-sesman.pid --exec /usr/bin/xrdp-sesman > /dev/null + eend $? +} + +stop() { + ebegin "Stopping X remote desktop daemon" + start-stop-daemon --stop --pidfile /var/run/xrdp.pid + eend $? + + ebegin "Stopping remote desktop session manager" + start-stop-daemon --stop --pidfile /var/run/xrdp-sesman.pid + eend $? +} diff --git a/net-misc/xrdp/files/xrdp-sesman.pamd b/net-misc/xrdp/files/xrdp-sesman.pamd new file mode 100644 index 000000000000..4712aa8aec0d --- /dev/null +++ b/net-misc/xrdp/files/xrdp-sesman.pamd @@ -0,0 +1,4 @@ +auth include system-remote-login +account include system-remote-login +password include system-remote-login +session include system-remote-login diff --git a/net-misc/xrdp/metadata.xml b/net-misc/xrdp/metadata.xml new file mode 100644 index 000000000000..7ad52bdd6edd --- /dev/null +++ b/net-misc/xrdp/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name='fuse'>Enable clipboard file / device redirection via <pkg>sys-fs/fuse</pkg></flag> + </use> +</pkgmetadata> diff --git a/net-misc/xrdp/xrdp-0.6.1.ebuild b/net-misc/xrdp/xrdp-0.6.1.ebuild new file mode 100644 index 000000000000..2a4aea071f63 --- /dev/null +++ b/net-misc/xrdp/xrdp-0.6.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/xrdp-0.6.1.ebuild,v 1.1 2014/10/23 08:19:10 mgorny Exp $ + +EAPI=5 + +inherit autotools eutils pam systemd + +MY_P="${PN}-v${PV}" + +DESCRIPTION="An open source Remote Desktop Protocol server" +HOMEPAGE="http://www.xrdp.org/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug kerberos pam" + +RDEPEND="dev-libs/openssl:0= + x11-libs/libX11:0= + x11-libs/libXfixes:0= + kerberos? ( virtual/krb5:0= ) + pam? ( virtual/pam:0= )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch_user + + # disallow root login by default + sed -i -e '/^AllowRootLogin/s/1/0/' sesman/sesman.ini || die + + eautoreconf + # part of ./bootstrap + ln -s ../config.c sesman/tools/config.c || die +} + +src_configure() { + use kerberos && use pam \ + && ewarn "Both kerberos & pam auth enabled, kerberos will take precedence." + + local myconf=( + # configure.ac is completed flawed + + # -- authentication backends -- + # kerberos is inside !SESMAN_NOPAM conditional for no reason + $(use pam || use kerberos || echo --enable-nopam) + $(usex kerberos --enable-kerberos '') + # pam_userpass is not in Gentoo at the moment + #--disable-pamuserpass + + # -- others -- + $(usex debug --enable-xrdpdebug '') + + # --enable-freerdp1 does not work with 1.1 in gentoo + ) + + econf "${myconf[@]}" +} + +src_install() { + default + prune_libtool_files --all + + # use our pam.d file + use pam && newpamd "${FILESDIR}"/xrdp-sesman.pamd xrdp-sesman + # and our startwm.sh + exeinto /etc/xrdp + doexe "${FILESDIR}"/startwm.sh + + # package empty /etc/xrdp/rsakeys.ini rather than bundled keys :) + : > rsakeys.ini + insinto /etc/xrdp + doins rsakeys.ini + + # contributed by Jan Psota <jasiupsota@gmail.com> + newinitd "${FILESDIR}/${PN}-initd" ${PN} +} + +pkg_preinst() { + # either copy existing keys over to avoid CONFIG_PROTECT whining + # or generate new keys (but don't include them in binpkg!) + if [[ -f ${EROOT}/etc/xrdp/rsakeys.ini ]]; then + cp {"${EROOT}","${ED}"}/etc/xrdp/rsakeys.ini || die + else + einfo "Running xrdp-keygen to generate new rsakeys.ini ..." + "${S}"/keygen/xrdp-keygen xrdp "${ED}"/etc/xrdp/rsakeys.ini \ + || die "xrdp-keygen failed to generate RSA keys" + fi +} diff --git a/net-misc/xrdp/xrdp-0.8.0.ebuild b/net-misc/xrdp/xrdp-0.8.0.ebuild new file mode 100644 index 000000000000..9ebcc74a70ba --- /dev/null +++ b/net-misc/xrdp/xrdp-0.8.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/xrdp-0.8.0.ebuild,v 1.1 2014/10/23 08:19:10 mgorny Exp $ + +EAPI=5 + +inherit autotools eutils pam systemd + +DESCRIPTION="An open source Remote Desktop Protocol server" +HOMEPAGE="http://www.xrdp.org/" +# mirrored from https://github.com/neutrinolabs/xrdp/releases +SRC_URI="http://dev.gentoo.org/~mgorny/dist/${P}.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug fuse kerberos jpeg pam pulseaudio" + +RDEPEND="dev-libs/openssl:0= + x11-libs/libX11:0= + x11-libs/libXfixes:0= + x11-libs/libXrandr:0= + fuse? ( sys-fs/fuse:0= ) + jpeg? ( virtual/jpeg:0= ) + kerberos? ( virtual/krb5:0= ) + pam? ( virtual/pam:0= ) + pulseaudio? ( media-sound/pulseaudio:0= )" +DEPEND="app-arch/xz-utils" + +# does not work with gentoo version of freerdp +# neutrinordp? ( net-misc/freerdp:0= ) +# incompatible with current ffmpeg/libav (surprising, isn't it?) +# xrdpvr? ( virtual/ffmpeg:0= ) + +src_prepare() { + epatch_user + + # don't let USE=debug adjust CFLAGS + sed -i -e 's:-g -O0::' configure.ac || die + # disallow root login by default + sed -i -e '/^AllowRootLogin/s/1/0/' sesman/sesman.ini || die + # Fedora files, not included here + sed -i -e '/EnvironmentFile=/d' instfiles/*.service || die + # reorder so that X11rdp comes last again since it's not supported + sed -i -e '/^\[xrdp1\]$/,/^$/{wxrdp.ini.tmp + ;d}' xrdp/xrdp.ini || die + # move newline to the beginning + sed -i -e 'x' xrdp.ini.tmp || die + cat xrdp.ini.tmp >> xrdp/xrdp.ini || die + rm -f xrdp.ini.tmp || die + + eautoreconf + # part of ./bootstrap + ln -s ../config.c sesman/tools/config.c || die +} + +src_configure() { + use kerberos && use pam \ + && ewarn "Both kerberos & pam auth enabled, kerberos will take precedence." + + local myconf=( + # configure.ac is completed flawed + + # -- authentication backends -- + # kerberos is inside !SESMAN_NOPAM conditional for no reason + $(use pam || use kerberos || echo --enable-nopam) + $(usex kerberos --enable-kerberos '') + # pam_userpass is not in Gentoo at the moment + #--disable-pamuserpass + + # -- jpeg support -- + $(usex jpeg --enable-jpeg '') + # the package supports explicit linking against libjpeg-turbo + # (no need for -ljpeg compat) + $(use jpeg && has_version 'media-libs/libjpeg-turbo:0' && echo --enable-tjpeg) + + # -- sound support -- + $(usex pulseaudio '--enable-simplesound --enable-loadpulsemodules' '') + + # -- others -- + $(usex debug --enable-xrdpdebug '') + $(usex fuse --enable-fuse '') + # $(usex neutrinordp --enable-neutrinordp '') + # $(usex xrdpvr --enable-xrdpvr '') + + "$(systemd_with_unitdir)" + ) + + econf "${myconf[@]}" +} + +src_install() { + default + prune_libtool_files --all + + # use our pam.d file since upstream's incompatible with Gentoo + use pam && newpamd "${FILESDIR}"/xrdp-sesman.pamd xrdp-sesman + # and our startwm.sh + exeinto /etc/xrdp + doexe "${FILESDIR}"/startwm.sh + + # Fedora stuff + rm -r "${ED}"/etc/default || die + + # own /etc/xrdp/rsakeys.ini + : > rsakeys.ini + insinto /etc/xrdp + doins rsakeys.ini + + # contributed by Jan Psota <jasiupsota@gmail.com> + newinitd "${FILESDIR}/${PN}-initd" ${PN} +} + +pkg_preinst() { + # either copy existing keys over to avoid CONFIG_PROTECT whining + # or generate new keys (but don't include them in binpkg!) + if [[ -f ${EROOT}/etc/xrdp/rsakeys.ini ]]; then + cp {"${EROOT}","${ED}"}/etc/xrdp/rsakeys.ini || die + else + einfo "Running xrdp-keygen to generate new rsakeys.ini ..." + "${S}"/keygen/xrdp-keygen xrdp "${ED}"/etc/xrdp/rsakeys.ini \ + || die "xrdp-keygen failed to generate RSA keys" + fi +} |