diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2006-08-02 00:58:36 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2006-08-02 00:58:36 +0000 |
commit | 49159c0b36cb07eb45842a556380f5f0db28b4db (patch) | |
tree | 8f2185f1a0e129327b35452d515866aa5a6d5ab3 /net-misc/xrdp | |
parent | Stable on x86, bug #105020. (diff) | |
download | gentoo-2-49159c0b36cb07eb45842a556380f5f0db28b4db.tar.gz gentoo-2-49159c0b36cb07eb45842a556380f5f0db28b4db.tar.bz2 gentoo-2-49159c0b36cb07eb45842a556380f5f0db28b4db.zip |
New package, requested in bug #141753
(Portage version: 2.1.1_pre4-r1)
Diffstat (limited to 'net-misc/xrdp')
-rw-r--r-- | net-misc/xrdp/ChangeLog | 12 | ||||
-rw-r--r-- | net-misc/xrdp/Manifest | 36 | ||||
-rw-r--r-- | net-misc/xrdp/files/digest-xrdp-0.3.1 | 3 | ||||
-rw-r--r-- | net-misc/xrdp/files/startwm.sh | 8 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-0.3.1-curdir.patch | 50 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-0.3.1-respect-cflags.patch | 72 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-confd | 5 | ||||
-rw-r--r-- | net-misc/xrdp/files/xrdp-initd | 36 | ||||
-rw-r--r-- | net-misc/xrdp/metadata.xml | 10 | ||||
-rw-r--r-- | net-misc/xrdp/xrdp-0.3.1.ebuild | 60 |
10 files changed, 292 insertions, 0 deletions
diff --git a/net-misc/xrdp/ChangeLog b/net-misc/xrdp/ChangeLog new file mode 100644 index 000000000000..928056b77fe3 --- /dev/null +++ b/net-misc/xrdp/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-misc/xrdp +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/ChangeLog,v 1.1 2006/08/02 00:58:36 chutzpah Exp $ + +*xrdp-0.3.1 (02 Aug 2006) + + 02 Aug 2006; Patrick McLean <chutzpah@gentoo.org> + +files/xrdp-0.3.1-curdir.patch, +files/xrdp-0.3.1-respect-cflags.patch, + +files/startwm.sh, +files/xrdp-confd, +files/xrdp-initd, +metadata.xml, + +xrdp-0.3.1.ebuild: + Initial commit. New package, requested in bug #141753 + diff --git a/net-misc/xrdp/Manifest b/net-misc/xrdp/Manifest new file mode 100644 index 000000000000..7342c66412a1 --- /dev/null +++ b/net-misc/xrdp/Manifest @@ -0,0 +1,36 @@ +AUX startwm.sh 203 RMD160 6258cb60cb90913a77268657e8427348034b885b SHA1 4bdd9f00fc3c3fb32068b4b50e3e372366801285 SHA256 436cef06a851176e18011dc67549c232d1edf865e1380e31f65ad62f2ae95b5d +MD5 cc0fc2bd3c7f7637df505aba54fb2ddc files/startwm.sh 203 +RMD160 6258cb60cb90913a77268657e8427348034b885b files/startwm.sh 203 +SHA256 436cef06a851176e18011dc67549c232d1edf865e1380e31f65ad62f2ae95b5d files/startwm.sh 203 +AUX xrdp-0.3.1-curdir.patch 1802 RMD160 b1726e31b289897635d6272c03f67ca66ef7d686 SHA1 5ea79e39c55228f3375952e1c1af3da28f61adf2 SHA256 01daf21be042c10a1df9ba88d6b54c5b9de4755f0cb876be887c0a804e70edfa +MD5 6677684588af1966566afca5ab98caa7 files/xrdp-0.3.1-curdir.patch 1802 +RMD160 b1726e31b289897635d6272c03f67ca66ef7d686 files/xrdp-0.3.1-curdir.patch 1802 +SHA256 01daf21be042c10a1df9ba88d6b54c5b9de4755f0cb876be887c0a804e70edfa files/xrdp-0.3.1-curdir.patch 1802 +AUX xrdp-0.3.1-respect-cflags.patch 2727 RMD160 fd9ac0b99d619c01eb3f311dd5e3dcd2f9b7c350 SHA1 c314dadbe7e92ba13e4c770bab83d40732400e8b SHA256 205f491018875666f7b44bce241d9a37308a947c2336bb73102a50fb4c44f2f7 +MD5 b8115715dafb18220d794195c3c665b1 files/xrdp-0.3.1-respect-cflags.patch 2727 +RMD160 fd9ac0b99d619c01eb3f311dd5e3dcd2f9b7c350 files/xrdp-0.3.1-respect-cflags.patch 2727 +SHA256 205f491018875666f7b44bce241d9a37308a947c2336bb73102a50fb4c44f2f7 files/xrdp-0.3.1-respect-cflags.patch 2727 +AUX xrdp-confd 140 RMD160 c04cd60eff7d3f5de1427ce87bc1f34b4befefe3 SHA1 e0c4a8b089f1e556c3fcd42c5c42327c24bc3634 SHA256 f25c9c409096f71ab2d66d8ee2de47702456367d7a25efeb8ec3b3a84ff7cf4f +MD5 b26db0f95ea15a89da4f92b0a7a5a771 files/xrdp-confd 140 +RMD160 c04cd60eff7d3f5de1427ce87bc1f34b4befefe3 files/xrdp-confd 140 +SHA256 f25c9c409096f71ab2d66d8ee2de47702456367d7a25efeb8ec3b3a84ff7cf4f files/xrdp-confd 140 +AUX xrdp-initd 885 RMD160 e7b30f8f76d622f5d6f0c7672f6cf16eb7a281da SHA1 b7317ddd3c65ea26aac48d6f3f4724a9648347e1 SHA256 42aef981f2b79232ef6d84d4df7f996c145a4ad7d59b0c01cf2fa09fa455826d +MD5 4ca063843807eb19e12f9ab096804b13 files/xrdp-initd 885 +RMD160 e7b30f8f76d622f5d6f0c7672f6cf16eb7a281da files/xrdp-initd 885 +SHA256 42aef981f2b79232ef6d84d4df7f996c145a4ad7d59b0c01cf2fa09fa455826d files/xrdp-initd 885 +DIST xrdp-0.3.1.tar.gz 163622 RMD160 3b780bc84d4aa903c30fabc6a4e0026c3c4c6b71 SHA1 b5e4a52653e99f88da9c23f32ca1cbd7ca59fefe SHA256 e1d48bef8d26ff4383df4455ef1d0e3e284b45cb07421b44d374011c71e13f11 +EBUILD xrdp-0.3.1.ebuild 1546 RMD160 0795d64b2bf788f40bb6e294ff56795a2cdbfd9b SHA1 b68b980503ff5d6ca4816e7573ee7cc88b700015 SHA256 a15823942f5001478ffbebf051870fff46590d499792424e429a629c4ca9c267 +MD5 ddd1abcbfc3bcf243bec29890cbcaa23 xrdp-0.3.1.ebuild 1546 +RMD160 0795d64b2bf788f40bb6e294ff56795a2cdbfd9b xrdp-0.3.1.ebuild 1546 +SHA256 a15823942f5001478ffbebf051870fff46590d499792424e429a629c4ca9c267 xrdp-0.3.1.ebuild 1546 +MISC ChangeLog 420 RMD160 9a3e08d2fb0105ea36f30c144904badd41b7d050 SHA1 60866c454ca21d19618e24f6e72a32dff1c097e8 SHA256 c47e3d6b2cae582b6a5a19ef569c824a8599c53de3792c2214c45cdc08ee3d91 +MD5 fea9ab6241089487bb157aa10c176e6c ChangeLog 420 +RMD160 9a3e08d2fb0105ea36f30c144904badd41b7d050 ChangeLog 420 +SHA256 c47e3d6b2cae582b6a5a19ef569c824a8599c53de3792c2214c45cdc08ee3d91 ChangeLog 420 +MISC metadata.xml 251 RMD160 9f6c5022895c245c7b1fdbaa24ae19cab04502c8 SHA1 4f7b27e3a8043f87fea8d4bc308e4b947f0e8675 SHA256 fd85d2faaf1d0c0eab6a4d2ab9eaa493e087a6108aafd0a5db6436bfc181783b +MD5 f115572f9475ea98b22ceeb627ba07f0 metadata.xml 251 +RMD160 9f6c5022895c245c7b1fdbaa24ae19cab04502c8 metadata.xml 251 +SHA256 fd85d2faaf1d0c0eab6a4d2ab9eaa493e087a6108aafd0a5db6436bfc181783b metadata.xml 251 +MD5 ead5fbfa128a50c476dba5cf1aaba730 files/digest-xrdp-0.3.1 232 +RMD160 ed36cf42609e714fa69b16ad138f6374e06ca038 files/digest-xrdp-0.3.1 232 +SHA256 0899bba85b3548fbd204e442d582e38add7798e34bbe2c7ed27087e5bc52c5ae files/digest-xrdp-0.3.1 232 diff --git a/net-misc/xrdp/files/digest-xrdp-0.3.1 b/net-misc/xrdp/files/digest-xrdp-0.3.1 new file mode 100644 index 000000000000..a37fb8cdbebb --- /dev/null +++ b/net-misc/xrdp/files/digest-xrdp-0.3.1 @@ -0,0 +1,3 @@ +MD5 aa780f83007b849efc0e4ed0a8e07201 xrdp-0.3.1.tar.gz 163622 +RMD160 3b780bc84d4aa903c30fabc6a4e0026c3c4c6b71 xrdp-0.3.1.tar.gz 163622 +SHA256 e1d48bef8d26ff4383df4455ef1d0e3e284b45cb07421b44d374011c71e13f11 xrdp-0.3.1.tar.gz 163622 diff --git a/net-misc/xrdp/files/startwm.sh b/net-misc/xrdp/files/startwm.sh new file mode 100644 index 000000000000..21d0a08fd2a6 --- /dev/null +++ b/net-misc/xrdp/files/startwm.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# use the gentoo startDM to start the default WM +# +# see /usr/share/doc/xrdp-version/startwm.sh for the factory version of this +# script. +source /etc/rc.conf + +/etc/X11/Sessions/"${XSESSION}" diff --git a/net-misc/xrdp/files/xrdp-0.3.1-curdir.patch b/net-misc/xrdp/files/xrdp-0.3.1-curdir.patch new file mode 100644 index 000000000000..23879b9a9c09 --- /dev/null +++ b/net-misc/xrdp/files/xrdp-0.3.1-curdir.patch @@ -0,0 +1,50 @@ +diff -ur xrdp-0.3.1.orig/sesman/Makefile xrdp-0.3.1/sesman/Makefile +--- xrdp-0.3.1.orig/sesman/Makefile 2006-08-01 19:35:48.000000000 -0400 ++++ xrdp-0.3.1/sesman/Makefile 2006-08-01 20:48:52.000000000 -0400 +@@ -13,7 +13,8 @@ + DOCDIR = /usr/doc/xrdp + + DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \ +- -DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" ++ -DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" \ ++ -DSESMAN_DESTDIR=\"$(DESTDIR)\" + + CFLAGS = $(MYCFLAGS) -I../common $(DEFINES) + LDFLAGS = -L /usr/gnu/lib $(DEFINES) +diff -ur xrdp-0.3.1.orig/sesman/sesman.c xrdp-0.3.1/sesman/sesman.c +--- xrdp-0.3.1.orig/sesman/sesman.c 2006-08-01 19:35:48.000000000 -0400 ++++ xrdp-0.3.1/sesman/sesman.c 2006-08-01 20:48:15.000000000 -0400 +@@ -137,6 +137,8 @@ + int pid; + char pid_s[8]; + ++ chdir(SESMAN_DESTDIR); ++ + if (1 == argc) + { + /* no options on command line. normal startup */ +diff -ur xrdp-0.3.1.orig/xrdp/Makefile xrdp-0.3.1/xrdp/Makefile +--- xrdp-0.3.1.orig/xrdp/Makefile 2006-08-01 19:35:48.000000000 -0400 ++++ xrdp-0.3.1/xrdp/Makefile 2006-08-01 19:56:15.000000000 -0400 +@@ -12,7 +12,8 @@ + DOCDIR = /usr/doc/xrdp + + DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \ +- -DXRDP_PID_FILE=\"$(PIDDIR)/xrdp.pid\" ++ -DXRDP_PID_FILE=\"$(PIDDIR)/xrdp.pid\" \ ++ -DXRDP_DESTDIR=\"$(DESTDIR)\" + + CFLAGS = $(MYCFLAGS) -I../common -I../libxrdp $(DEFINES) + #CFLAGS += -DXRDP_DEBUG +diff -ur xrdp-0.3.1.orig/xrdp/xrdp.c xrdp-0.3.1/xrdp/xrdp.c +--- xrdp-0.3.1.orig/xrdp/xrdp.c 2006-08-01 19:35:48.000000000 -0400 ++++ xrdp-0.3.1/xrdp/xrdp.c 2006-08-01 19:55:45.000000000 -0400 +@@ -291,6 +291,8 @@ + char text[32]; + #endif + ++ chdir(XRDP_DESTDIR); ++ + /* check compiled endian with actual endian */ + test = 1; + host_be = !((int)(*(unsigned char*)(&test))); diff --git a/net-misc/xrdp/files/xrdp-0.3.1-respect-cflags.patch b/net-misc/xrdp/files/xrdp-0.3.1-respect-cflags.patch new file mode 100644 index 000000000000..4ed127180dc6 --- /dev/null +++ b/net-misc/xrdp/files/xrdp-0.3.1-respect-cflags.patch @@ -0,0 +1,72 @@ +diff -ur xrdp-0.3.1.orig/libxrdp/Makefile xrdp-0.3.1/libxrdp/Makefile +--- xrdp-0.3.1.orig/libxrdp/Makefile 2006-03-12 19:58:12.000000000 -0500 ++++ xrdp-0.3.1/libxrdp/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -13,7 +13,7 @@ + DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \ + -DXRDP_KEY_FILE=\"$(CFGDIR)/rsakeys.ini\" + +-CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common -fPIC $(DEFINES) + #CFLAGS += -DXRDP_DEBUG + C_OS_FLAGS = $(CFLAGS) -c + LDFLAGS = -shared +diff -ur xrdp-0.3.1.orig/rdp/Makefile xrdp-0.3.1/rdp/Makefile +--- xrdp-0.3.1.orig/rdp/Makefile 2006-03-03 20:02:04.000000000 -0500 ++++ xrdp-0.3.1/rdp/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -10,7 +10,7 @@ + + DEFINES = + +-CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common -fPIC $(DEFINES) + #CFLAGS += -DXRDP_DEBUG + C_OS_FLAGS = $(CFLAGS) -c + LDFLAGS = -shared +diff -ur xrdp-0.3.1.orig/sesman/Makefile xrdp-0.3.1/sesman/Makefile +--- xrdp-0.3.1.orig/sesman/Makefile 2006-05-26 09:10:14.000000000 -0400 ++++ xrdp-0.3.1/sesman/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -15,7 +15,7 @@ + DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \ + -DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" + +-CFLAGS = -Wall -O2 -I../common $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common $(DEFINES) + LDFLAGS = -L /usr/gnu/lib $(DEFINES) + C_OS_FLAGS = $(CFLAGS) -c + CC = gcc +diff -ur xrdp-0.3.1.orig/vnc/Makefile xrdp-0.3.1/vnc/Makefile +--- xrdp-0.3.1.orig/vnc/Makefile 2006-03-03 20:02:06.000000000 -0500 ++++ xrdp-0.3.1/vnc/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -9,7 +9,7 @@ + + DEFINES = + +-CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common -fPIC $(DEFINES) + C_OS_FLAGS = $(CFLAGS) -c + LDFLAGS = -shared + LIBS = -ldl +diff -ur xrdp-0.3.1.orig/xrdp/Makefile xrdp-0.3.1/xrdp/Makefile +--- xrdp-0.3.1.orig/xrdp/Makefile 2006-03-03 20:02:08.000000000 -0500 ++++ xrdp-0.3.1/xrdp/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -14,7 +14,7 @@ + DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \ + -DXRDP_PID_FILE=\"$(PIDDIR)/xrdp.pid\" + +-CFLAGS = -Wall -O2 -I../common -I../libxrdp $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common -I../libxrdp $(DEFINES) + #CFLAGS += -DXRDP_DEBUG + C_OS_FLAGS = $(CFLAGS) -c + LDFLAGS = -L/usr/gnu/lib -L../libxrdp -Wl,-rpath,. +diff -ur xrdp-0.3.1.orig/xup/Makefile xrdp-0.3.1/xup/Makefile +--- xrdp-0.3.1.orig/xup/Makefile 2006-03-03 20:02:09.000000000 -0500 ++++ xrdp-0.3.1/xup/Makefile 2006-08-01 16:44:51.000000000 -0400 +@@ -9,7 +9,7 @@ + + DEFINES = + +-CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES) ++CFLAGS = $(MYCFLAGS) -I../common -fPIC $(DEFINES) + #CFLAGS += -DXRDP_DEBUG + C_OS_FLAGS = $(CFLAGS) -c + LDFLAGS = -shared diff --git a/net-misc/xrdp/files/xrdp-confd b/net-misc/xrdp/files/xrdp-confd new file mode 100644 index 000000000000..a1b7f1420538 --- /dev/null +++ b/net-misc/xrdp/files/xrdp-confd @@ -0,0 +1,5 @@ +# /etc/conf.d/xrdp + +# logfile locations for xrdp and sesman +XRDP_LOGFILE="/var/log/xrdp/xrdp.log" +SESMAN_LOGFILE="/var/log/xrdp/sesman.log" diff --git a/net-misc/xrdp/files/xrdp-initd b/net-misc/xrdp/files/xrdp-initd new file mode 100644 index 000000000000..20b25358a509 --- /dev/null +++ b/net-misc/xrdp/files/xrdp-initd @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2006 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.1 2006/08/02 00:58:36 chutzpah Exp $ + +depend() { + use net logger +} + +start() { + cd /usr/LIBDIR/xrdp + ebegin "Starting X remote desktop daemon" + start-stop-daemon --start --pidfile /var/run/xrdp.pid --exec /usr/LIBDIR/xrdp/xrdp -- >> ${XRDP_LOGFILE} + ret=${?} + eend ${ret} + [[ ${ret} != 0 ]] && return ${ret} + + ebegin "Starting remote desktop session manager" + start-stop-daemon --start --pidfile /var/run/sesman.pid --exec /usr/LIBDIR/xrdp/sesman >> ${SESMAN_LOGFILE} + ret=${?} + eend ${ret} + return ${ret} +} + +stop() { + ebegin "Stopping X remote desktop daemon" + start-stop-daemon --stop --pidfile /var/run/xrdp.pid + ret=${?} + eend ${ret} + + ebegin "Stopping remote desktop session manager" + start-stop-daemon --stop --pidfile /var/run/sesman.pid + ret=${?} + eend ${ret} + return ${ret} +} diff --git a/net-misc/xrdp/metadata.xml b/net-misc/xrdp/metadata.xml new file mode 100644 index 000000000000..a44072a3883b --- /dev/null +++ b/net-misc/xrdp/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>chutzpah@gentoo.org</email> +<name>Patrick McLean</name> +</maintainer> +</pkgmetadata> + diff --git a/net-misc/xrdp/xrdp-0.3.1.ebuild b/net-misc/xrdp/xrdp-0.3.1.ebuild new file mode 100644 index 000000000000..95bdfc94e0d2 --- /dev/null +++ b/net-misc/xrdp/xrdp-0.3.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/xrdp/xrdp-0.3.1.ebuild,v 1.1 2006/08/02 00:58:36 chutzpah Exp $ + +inherit eutils multilib + +DESCRIPTION="An open source remote desktop protocol(rdp) server." +HOMEPAGE="http://xrdp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="net-misc/vnc" + +DESTDIR="/usr/$(get_libdir)/${PN}" + +pkg_setup() { + if ! built_with_use net-misc/vnc server; then + eerror + eerror "You must have your VNC implementation (currently net-misc/vnc) built" + eerror "with the \"server\" USE flag to use ${PN}." + eerror + die "Please rebuild net-misc/vnc with USE=server" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-respect-cflags.patch" + epatch "${FILESDIR}/${P}-curdir.patch" + + sed -ie '/instfiles\/xrdp_control1.sh/ d' Makefile + sed -ie "s:/usr/xrdp:${DESTDIR}:g" Makefile */Makefile + # fix insecure rpath + sed -ie "s:rpath,.:rpath,${DESTDIR}:" xrdp/Makefile +} + + +src_compile() { + emake MYCFLAGS="${CFLAGS}" DESTDIR="${DESTDIR}" || die "emake failed" +} + +src_install() { + emake DESTDIRDEB="${D}" installdeb || die "emake installdeb failed" + dodoc design.txt readme.txt "${D}${DESTDIR}/startwm.sh" + doman "${D}/usr/man/"*/* + keepdir /var/log/${PN} + rm -rf "${D}${DESTDIR}/startwm.sh" "${D}/usr/man" + exeinto "${DESTDIR}" + doexe "${FILESDIR}/startwm.sh" + newinitd "${FILESDIR}/${PN}-initd" ${PN} + newconfd ${FILESDIR}/${PN}-confd ${PN} + sed -i "s:LIBDIR:$(get_libdir):" "${D}/etc/init.d/${PN}" +} |