summaryrefslogtreecommitdiff
path: root/dev-dotnet/xsp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-dotnet/xsp
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-dotnet/xsp')
-rw-r--r--dev-dotnet/xsp/Manifest11
-rw-r--r--dev-dotnet/xsp/files/2.2/mod-mono-server-r1.initd82
-rw-r--r--dev-dotnet/xsp/files/2.2/mod-mono-server.confd33
-rw-r--r--dev-dotnet/xsp/files/2.2/mod-mono-server.initd80
-rw-r--r--dev-dotnet/xsp/files/2.2/xsp.confd11
-rw-r--r--dev-dotnet/xsp/files/2.2/xsp.initd37
-rw-r--r--dev-dotnet/xsp/files/xsp-2.10.2-endrequest.patch35
-rw-r--r--dev-dotnet/xsp/metadata.xml12
-rw-r--r--dev-dotnet/xsp/xsp-2.10.2-r2.ebuild50
9 files changed, 351 insertions, 0 deletions
diff --git a/dev-dotnet/xsp/Manifest b/dev-dotnet/xsp/Manifest
new file mode 100644
index 000000000000..45bec8892556
--- /dev/null
+++ b/dev-dotnet/xsp/Manifest
@@ -0,0 +1,11 @@
+AUX 2.2/mod-mono-server-r1.initd 2002 SHA256 9d3e0c627c2411b48cc1cb5731b2992037cdb9ad3573bf7cfa6705b73f64eec5 SHA512 570daa64eb7ade8281f2d874cb7ac24afb52f385360a8a49a9a43141f4c9ea18b87cc897e4daf4c53d2a1b8c0cf45f3e0a06f2908f63cf80c17b26cce5e4df14 WHIRLPOOL 7b5e5e405ce67aa18389662faf58e20e900c6132b21c68660c019315a6d087aa43a5ca48f62def50f763c4174d62c11c3ce55c89a9fd7d4ee1ce4654f001cfb3
+AUX 2.2/mod-mono-server.confd 1214 SHA256 982fff00b95c5231d51cd9df9fe4f9c01860956c4ac092b039e27566365407ff SHA512 1dfffca9e07e9bc0af779be37683beafe40e436d51f80c0b5d5ea0f00e5726b85a9f1265c660799ff76a6ec0261fc0749bb3f94cd5d158b606a55e5d98cc54ce WHIRLPOOL 17b6876335fdaa6fb1190ac7545af2df304ef801121c58984581b3971de8a8359f2b28d35c3e039c682534e841249eb03aa75f8422bbae540e39bf49622c04e2
+AUX 2.2/mod-mono-server.initd 1906 SHA256 b4596d5cca1b58802bee9e71f3e904ce174fd0edba193ffb6e58938c0084451d SHA512 15922bb445f97f084295185a1211692197dda58e8d794fb6c20e44801db4a802547253814d70608a10540bb340e7ac71294c8be58689f7700b9c9faa424b0eb5 WHIRLPOOL 4a644f3b52109ec3e9ae91fece9900c0efc1ccf15cf44a3b4bc23828b71a980c37c9be062902919de1b2b8b02b3493c34b192ff373d76b5f0de003064133f288
+AUX 2.2/xsp.confd 306 SHA256 2e38b8556ffb236ac72c0dcae2c12f42320bdf0639c6c85815cb8b3d6a4eaf1b SHA512 4c82a22b3da305e7b73dde941e30058e7a717c032980ebfd4a99c5be3fd84aec77fd3d6f3787d165503790e07bfde4193c72ed4d2bfb3c08033b964ac933ec9a WHIRLPOOL 7854047539189f99715c65ea610ca3e194fe5f98a3840fa397b19b54a1949c6ccaeeb32efd1c17b89bba5691d486a6e7305d929f9afb40064fd33848aab4d35d
+AUX 2.2/xsp.initd 796 SHA256 c758a0bae688f49c3e9323980ce5201274d892e7ded9fae6692d272f1ec66102 SHA512 d28fbce8838c6796362ec7bedcedfedee5e60524758b16ff6a24952ff20acfea658b824f070ffc59b9df381895a0e0346177a7aa1129de59f67543102c581f44 WHIRLPOOL bdf8b3f100b22f27947034297fac4ff885f14e88b9dd39329c0f0083f34cac7f81d7df07c9f4dd4d0e84e11760f6727268354dfda92ecaa086162f04486100f2
+AUX xsp-2.10.2-endrequest.patch 1132 SHA256 59ab59447b2f41f50d891cc27cc25851b9f4f4fd9d66f5068d2127e45f81a386 SHA512 36a1ec8f2b934ececbadc79917b0c7e239797f0dd9a409132acaf79e95ab4fa2c22c525f01d681f74b38113d7d01ee46a53cceb342a5e97bc5fbdd3937a7f43a WHIRLPOOL 122dea34c8f87ae3f778080c18d0e8382231389a92cb71fefe403498ad2ed4d3996f3e9ea4fae84447c943fb0e479e33be815c1b2cc6e6940ecc8d46b3457d2d
+DIST xsp-2.10.2.tar.bz2 284801 SHA256 f4657f724167244d9baedf94e1d5747b8f1f53c339c7a11897154c1eb1289d4e SHA512 9b49e3a712e062b9a272e72609eda3cb8139127bc9780d6374a3567f51f15f38233f92252c2e4c22778b1841de66855dfe6a8cf81c97c6ebbf84f71dda0d43dd WHIRLPOOL fce613fedf164f7cd4cf0bae622884a4f7b6747e249d965c4ea23997586371b6a588ad96d66bcc5c6e74f98b76de3f374cd676de164ba1f3a889e4b00b8b6dcc
+EBUILD xsp-2.10.2-r2.ebuild 1073 SHA256 236cbc28ff6155eaddc7d0b5c913a60e03a8a794f747b28affaa071e77dee8c0 SHA512 0fd73faad8b6be04b92b299d403c0f3b7a41fe632494b57fd20938651811adf96f11b7672e2e280df99d2d3a30630872a67ca86230aa3712f004d7444555606c WHIRLPOOL e2e0a9cb654353cb4e8e1f7676569d484755c7b475b91de6b0c80f779914a2cca04613b77c4f48ea30568dea55820ed16931433491d66a222017c35548227afc
+MISC ChangeLog 4469 SHA256 7384845e90dffddbb493baeeafe99215cae8383f4dca25275802ae93a96117f8 SHA512 3f1d902fbbbc83306cc5f4ed54973000021207e8cd1f190d69e22ac14bac115debfb1664df242215b03f18e76486823db75a4599612814406603517bcf8ad4fa WHIRLPOOL b701fd407b3743f50c90ac84545235c49a5a7548d192b279d3050d9f291cc4a6e8ec2419e048524782a1f7e414c1645ed66faefc352c7c2b98ef9c282e7e31e9
+MISC ChangeLog-2015 18231 SHA256 5f9068378f1905ffe969a0e0a4085ba09737f1eb3b13cf814fe6e8730ae3ae24 SHA512 3ca85be0bfd50fbfb8438f20688830d25251285af458f959f04fa70a7211cb6520861e82a870f1e374dad3ea1f7198abf105621519b63c8e73d6be91774a35a8 WHIRLPOOL c1b49ef1191d5d61a46535eb9a318fd6e64a496a9700fa72d7707df06a18dfa08a6eeb797d8383fa488406af8ec9bb729bc0d2b6d94c2189bf2c0a4c066ac82b
+MISC metadata.xml 404 SHA256 d80d44e57b8566fbbcb95a0ead6f21db14605a0e4f2c0d77dc60bc05a0d91965 SHA512 0bea44cf8558aa90e56275030f232f134aacd38ef7083c8b9c383f5332cb12b978dd7f6d4ae41d233a3be6a17a9279638c6bbd1226058ac64d87f679991ccd76 WHIRLPOOL 3b4515f9b1216c4102685137093caef23d63ad2beafe28784ebdb7c31dd71aa11c4871ebb8cc224cf0c09a39819760935eca1ad1683bb8bfe6e3ff5e5f5e1b5e
diff --git a/dev-dotnet/xsp/files/2.2/mod-mono-server-r1.initd b/dev-dotnet/xsp/files/2.2/mod-mono-server-r1.initd
new file mode 100644
index 000000000000..22d7ba9af428
--- /dev/null
+++ b/dev-dotnet/xsp/files/2.2/mod-mono-server-r1.initd
@@ -0,0 +1,82 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ after dotnet
+}
+
+start() {
+ [ -z "$MonoServerRootDir" ] && \
+ MonoServerRootDir="/usr/lib/xsp/test"
+ [ -z "$MonoApplications" ] && \
+ MonoApplications="/mono:/usr/lib/xsp/test,/:."
+ [ -z "$UnixSocketFileName" ] && \
+ UnixSocketFileName="/tmp/mod_mono_server"
+ [ -z "$MonoServerAddress" ] && \
+ MonoServerAddress=127.0.0.1
+ [ -z "$MonoServerPort" ] && \
+ MonoServerPort=8080
+ [ -z "$MonoServerVersion" ] && \
+ MonoServerVersion=1
+
+ MONO_SERVER_OPTS="--root ${MonoServerRootDir} \
+--applications ${MonoApplications} --nonstop"
+
+ [ -n "$MonoApplicationsConfigDir" ] && \
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--appconfigdir ${MonoApplicationsConfigDir}"
+
+ case "$MonoServerChannel" in
+ "tcp" )
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--address ${MonoServerAddress} --port ${MonoServerPort}"
+ ;;
+
+ "unix" )
+ [ -f "$UnixSocketFileName" ] && rm -f $UnixSocketFileName
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--filename ${UnixSocketFileName}"
+ ;;
+
+ * )
+ eerror "Please set a valid value for MonoServerChannel"
+ return 1
+ ;;
+ esac
+
+ if [ ${MonoServerVersion} -eq 1 ]; then
+ modmonoserverpath=1.0/mod-mono-server.exe
+ elif [ ${MonoServerVersion} -eq 2 ]; then
+ modmonoserverpath=2.0/mod-mono-server2.exe
+ elif [ ${MonoServerVersion} -eq 4 ]; then
+ modmonoserverpath=4.0/mod-mono-server4.exe
+ else
+ eerror "MonoServerVersion was not properly set. Check your /etc/conf.d/mod-mono-server"
+ return 1
+ fi
+
+ export MONO_SHARED_DIR=/tmp
+
+ ebegin "Starting mod-mono-server"
+
+ start-stop-daemon --quiet --start \
+ --background \
+ --make-pidfile \
+ --pidfile /var/run/aspnet/mod-mono-server.pid \
+ --user aspnet \
+ --exec /usr/bin/mono /usr/lib/mono/${modmonoserverpath} \
+ -- $MONO_SERVER_OPTS
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mod-mono-server"
+
+ start-stop-daemon --quiet --stop \
+ --pidfile /var/run/aspnet/mod-mono-server.pid
+
+ eend $?
+}
diff --git a/dev-dotnet/xsp/files/2.2/mod-mono-server.confd b/dev-dotnet/xsp/files/2.2/mod-mono-server.confd
new file mode 100644
index 000000000000..6c6836b9561b
--- /dev/null
+++ b/dev-dotnet/xsp/files/2.2/mod-mono-server.confd
@@ -0,0 +1,33 @@
+# Config file for /etc/init.d/mod-mono-server
+
+# Configuration directives for mod-mono-server.exe. For more information on
+# these variables, see the man page for xsp(1).
+
+# This is the document root; trailing slash is not necessary
+#MonoServerRootDir="/usr/lib/xsp/test"
+
+# Directory to search for files with an `.webapp' extension.
+#MonoApplicationsConfigDir="/usr/lib/xsp/test"
+
+# Comma separated list of directories (in the form virtual:real) for all
+# applications managed by the server. For example:
+# /app1:/var/www/localhost/htdocs/app1,/app2:/var/www/localhost/htdocs/app2
+MonoApplications="/mono:/usr/lib/xsp/test"
+
+# The communication channel used between mod-mono-server and mod_mono.
+# unix - A unix socket
+# tcp - A TCP connection
+MonoServerChannel="unix"
+
+# When the comm. channel is "unix", the local filename used by the socket.
+UnixSocketFileName="/tmp/mod_mono_server"
+
+# When the comm. channel is "tcp", IP address for the server to listen on.
+#MonoServerAddress=127.0.0.1
+
+# When the comm. channel is "tcp", port for the server to listen on.
+#MonoServerPort=8080
+
+# If you want to host .NET 2.0 applications you have to set this to 2.
+# Otherwise, leave it unchaged
+MonoServerVersion=1
diff --git a/dev-dotnet/xsp/files/2.2/mod-mono-server.initd b/dev-dotnet/xsp/files/2.2/mod-mono-server.initd
new file mode 100644
index 000000000000..fb1c44935e09
--- /dev/null
+++ b/dev-dotnet/xsp/files/2.2/mod-mono-server.initd
@@ -0,0 +1,80 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ after dotnet
+}
+
+start() {
+ [ -z "$MonoServerRootDir" ] && \
+ MonoServerRootDir="/usr/lib/xsp/test"
+ [ -z "$MonoApplications" ] && \
+ MonoApplications="/mono:/usr/lib/xsp/test,/:."
+ [ -z "$UnixSocketFileName" ] && \
+ UnixSocketFileName="/tmp/mod_mono_server"
+ [ -z "$MonoServerAddress" ] && \
+ MonoServerAddress=127.0.0.1
+ [ -z "$MonoServerPort" ] && \
+ MonoServerPort=8080
+ [ -z "$MonoServerVersion" ] && \
+ MonoServerVersion=1
+
+ MONO_SERVER_OPTS="--root ${MonoServerRootDir} \
+--applications ${MonoApplications} --nonstop"
+
+ [ -n "$MonoApplicationsConfigDir" ] && \
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--appconfigdir ${MonoApplicationsConfigDir}"
+
+ case "$MonoServerChannel" in
+ "tcp" )
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--address ${MonoServerAddress} --port ${MonoServerPort}"
+ ;;
+
+ "unix" )
+ [ -f "$UnixSocketFileName" ] && rm -f $UnixSocketFileName
+ MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
+--filename ${UnixSocketFileName}"
+ ;;
+
+ * )
+ eerror "Please set a valid value for MonoServerChannel"
+ return 1
+ ;;
+ esac
+
+ if [ ${MonoServerVersion} -eq 1 ]; then
+ modmonoserverpath=1.0/mod-mono-server.exe
+ elif [ ${MonoServerVersion} -eq 2 ]; then
+ modmonoserverpath=2.0/mod-mono-server2.exe
+ else
+ eerror "MonoServerVersion was not properly set. Check your /etc/conf.d/xsp"
+ return 1
+ fi
+
+ export MONO_SHARED_DIR=/tmp
+
+ ebegin "Starting mod-mono-server"
+
+ start-stop-daemon --quiet --start \
+ --background \
+ --make-pidfile \
+ --pidfile /var/run/aspnet/mod-mono-server.pid \
+ --chuid aspnet \
+ --exec /usr/bin/mono /usr/lib/mono/${modmonoserverpath} \
+ -- $MONO_SERVER_OPTS
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mod-mono-server"
+
+ start-stop-daemon -o --quiet --stop \
+ --pidfile /var/run/aspnet/mod-mono-server.pid
+
+ eend $?
+}
diff --git a/dev-dotnet/xsp/files/2.2/xsp.confd b/dev-dotnet/xsp/files/2.2/xsp.confd
new file mode 100644
index 000000000000..e4f79aafa5e5
--- /dev/null
+++ b/dev-dotnet/xsp/files/2.2/xsp.confd
@@ -0,0 +1,11 @@
+# Config file for /etc/init.d/xsp
+
+# This is the document root; trailing slash is not necessary
+MonoServerRoot=/usr/lib/xsp/test
+
+# Port for the server to run on
+MonoServerPort=8000
+
+# If you want to host .NET 2.0 applications you have to set this to 2.
+# Otherwise, leave it unchanged
+MonoServerVersion=1
diff --git a/dev-dotnet/xsp/files/2.2/xsp.initd b/dev-dotnet/xsp/files/2.2/xsp.initd
new file mode 100644
index 000000000000..6ac7bbf87c0b
--- /dev/null
+++ b/dev-dotnet/xsp/files/2.2/xsp.initd
@@ -0,0 +1,37 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ after dotnet
+}
+
+start() {
+ ebegin "Starting xsp"
+
+ if [ ${MonoServerVersion} -eq 1 ]; then
+ xsppath=1.0/xsp.exe
+ elif [ ${MonoServerVersion} -eq 2 ]; then
+ xsppath=2.0/xsp2.exe
+ else
+ eerror "MonoServerVersion was not properly set. Check your config file"
+ return 1
+ fi
+
+ start-stop-daemon --quiet --start \
+ --background \
+ --make-pidfile \
+ --pidfile /var/run/aspnet/xsp.pid \
+ --chuid aspnet \
+ --exec /usr/bin/mono /usr/lib/mono/${xsppath} -- --root ${MonoServerRoot} --port ${MonoServerPort} --nonstop
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping xsp"
+ start-stop-daemon -o --quiet --stop \
+ --pidfile /var/run/aspnet/xsp.pid
+ eend $?
+}
+
diff --git a/dev-dotnet/xsp/files/xsp-2.10.2-endrequest.patch b/dev-dotnet/xsp/files/xsp-2.10.2-endrequest.patch
new file mode 100644
index 000000000000..ff702d3faa59
--- /dev/null
+++ b/dev-dotnet/xsp/files/xsp-2.10.2-endrequest.patch
@@ -0,0 +1,35 @@
+From d2c4a279942a4575b80618719646d0767c077e96 Mon Sep 17 00:00:00 2001
+From: Guillaume Pitel <guillaume.pitel@exensa.com>
+Date: Tue, 6 Mar 2012 17:20:24 +0100
+Subject: [PATCH] Added try/catch around EndRequest Record sending (Bug 3765
+ https://bugzilla.xamarin.com/show_bug.cgi?id=3765)
+
+---
+ src/Mono.WebServer.FastCgi/Connection.cs | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/src/Mono.WebServer.FastCgi/Connection.cs b/src/Mono.WebServer.FastCgi/Connection.cs
+index 6c70824..0e9ef64 100644
+--- a/src/Mono.WebServer.FastCgi/Connection.cs
++++ b/src/Mono.WebServer.FastCgi/Connection.cs
+@@ -319,10 +319,13 @@ public void Run ()
+ {
+ EndRequestBody body = new EndRequestBody (appStatus,
+ protocolStatus);
+-
+- if (IsConnected)
+- new Record (1, RecordType.EndRequest, requestID,
+- body.GetData ()).Send (socket);
++ try {
++ if (IsConnected)
++ new Record (1, RecordType.EndRequest, requestID,
++ body.GetData ()).Send (socket);
++ } catch (System.Net.Sockets.SocketException) {
++ }
++
+
+ int index = GetRequestIndex (requestID);
+
+--
+1.7.10
+
diff --git a/dev-dotnet/xsp/metadata.xml b/dev-dotnet/xsp/metadata.xml
new file mode 100644
index 000000000000..8adc9cf58b1b
--- /dev/null
+++ b/dev-dotnet/xsp/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <name>Gentoo Dotnet Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ XSP is a standalone web server written in C# that can be used to run
+ your ASP.NET applications.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild b/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild
new file mode 100644
index 000000000000..c945709f4670
--- /dev/null
+++ b/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils go-mono mono user
+
+PATCHDIR="${FILESDIR}/2.2/"
+
+DESCRIPTION="XSP is a small web server that can host ASP.NET pages"
+HOMEPAGE="http://www.mono-project.com/ASP.NET"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE=""
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}"
+
+MAKEOPTS="${MAKEOPTS} -j1"
+
+src_prepare() {
+ # Added try/catch around EndRequest Record sending, bug #432750
+ epatch "${FILESDIR}/${PN}-2.10.2-endrequest.patch"
+}
+
+src_configure() {
+ default
+}
+
+pkg_preinst() {
+ enewgroup aspnet
+ # Give aspnet home dir of /tmp since it must create ~/.wapi
+ enewuser aspnet -1 -1 /tmp aspnet
+}
+
+src_install() {
+ mv_command="cp -ar" go-mono_src_install
+ newinitd "${PATCHDIR}"/xsp.initd xsp
+ newinitd "${PATCHDIR}"/mod-mono-server-r1.initd mod-mono-server
+ newconfd "${PATCHDIR}"/xsp.confd xsp
+ newconfd "${PATCHDIR}"/mod-mono-server.confd mod-mono-server
+
+ keepdir /var/run/aspnet
+}
+
+pkg_postinst() {
+ chown aspnet:aspnet /var/run/aspnet
+}