summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-dotnet/xsp/Manifest20
-rw-r--r--dev-dotnet/xsp/files/1.9.1/mod-mono-server.confd34
-rw-r--r--dev-dotnet/xsp/files/1.9.1/mod-mono-server.initd81
-rw-r--r--dev-dotnet/xsp/files/1.9.1/xsp.confd12
-rw-r--r--dev-dotnet/xsp/files/1.9.1/xsp.initd38
-rw-r--r--dev-dotnet/xsp/files/1.9/mod-mono-server.confd34
-rw-r--r--dev-dotnet/xsp/files/1.9/mod-mono-server.initd81
-rw-r--r--dev-dotnet/xsp/files/1.9/xsp.confd12
-rw-r--r--dev-dotnet/xsp/files/1.9/xsp.initd38
9 files changed, 346 insertions, 4 deletions
diff --git a/dev-dotnet/xsp/Manifest b/dev-dotnet/xsp/Manifest
index 74f4b52c3e66..63cf4d127fea 100644
--- a/dev-dotnet/xsp/Manifest
+++ b/dev-dotnet/xsp/Manifest
@@ -21,23 +21,35 @@ AUX 1.2.6/mod-mono-server.confd 1336 RMD160 84a08f1fa3fc4c01b2fa01423c9053d5bce8
AUX 1.2.6/mod-mono-server.initd 2027 RMD160 6a46ad91eb132cc936ed6e23b5b15daa3c7e23eb SHA1 0e03fd8e3bd8c1f0de61dc123b897895d4f57d03 SHA256 89a2ac34ac34a955ff5e1f099c9cfb30e1494670c8d856758151bfc82b2455d2
AUX 1.2.6/xsp.confd 416 RMD160 ee081e7e4af21bd3d9aa99f2f093f3cf731167cb SHA1 af3d5ae74c99fb5991e981f49f5f3b4c99a23d34 SHA256 8198f654c73127fde695bb016759bade8f8e92cd3aa23407c3ad1ba5f61fe08c
AUX 1.2.6/xsp.initd 905 RMD160 0e24bce5b45a736083396d950256ef89be50c503 SHA1 fa1ca6d1d44b4bd350a397f225756f5c292473da SHA256 2f2dfe6a888004dce811cedc615d06d445544bc1884a1ec175214651d3921759
+AUX 1.9.1/mod-mono-server.confd 1221 RMD160 7401ee597608d911482d8e1f5ce29f14f5dde20d SHA1 0742b3332e4e4da1205e472757474e51dc4694ee SHA256 a5dcf62ca4b939a382c9ae0d302e7a27f7e7d44fbb61c9f0229eb3555522bbd1
+AUX 1.9.1/mod-mono-server.initd 1912 RMD160 68192d7d5a5745c59613d8a294afe0f90483c388 SHA1 a90ca6f062c6e68527f1d47f6398426cb6f98460 SHA256 5b34f95b98a9046344e1d25ef3eb7391fb2ad90ce8991438f4b9a253d718544a
+AUX 1.9.1/xsp.confd 313 RMD160 1255138ee1be4c4886b60beae64aefc66fe5c995 SHA1 35e6fa34880aff25dcd3790d089489e8142e4f6a SHA256 3413795d4e1bef236c70f79f8e98117c662f6dcd48d0d170e194e8024a2b37eb
+AUX 1.9.1/xsp.initd 802 RMD160 e36484ac47c06d76e02a3e666a5bffc3a6d1dc34 SHA1 2f171e143f27c6b88035ff9130ab50575c2f71a3 SHA256 3a72767e1e5d009ab4d937afe28d491b4653712cb3a090f0a77c34f015eee148
+AUX 1.9/mod-mono-server.confd 1221 RMD160 7401ee597608d911482d8e1f5ce29f14f5dde20d SHA1 0742b3332e4e4da1205e472757474e51dc4694ee SHA256 a5dcf62ca4b939a382c9ae0d302e7a27f7e7d44fbb61c9f0229eb3555522bbd1
+AUX 1.9/mod-mono-server.initd 1912 RMD160 68192d7d5a5745c59613d8a294afe0f90483c388 SHA1 a90ca6f062c6e68527f1d47f6398426cb6f98460 SHA256 5b34f95b98a9046344e1d25ef3eb7391fb2ad90ce8991438f4b9a253d718544a
+AUX 1.9/xsp.confd 313 RMD160 1255138ee1be4c4886b60beae64aefc66fe5c995 SHA1 35e6fa34880aff25dcd3790d089489e8142e4f6a SHA256 3413795d4e1bef236c70f79f8e98117c662f6dcd48d0d170e194e8024a2b37eb
+AUX 1.9/xsp.initd 802 RMD160 e36484ac47c06d76e02a3e666a5bffc3a6d1dc34 SHA1 2f171e143f27c6b88035ff9130ab50575c2f71a3 SHA256 3a72767e1e5d009ab4d937afe28d491b4653712cb3a090f0a77c34f015eee148
DIST xsp-1.2.1.tar.gz 230521 RMD160 51a72584a024071ea28a1691ffaa495c0a91e995 SHA1 a6378a98ff1a97333b600f850f71398df11c2db1 SHA256 76c7c03d2cf411c52e90f1b6262214865efe7d3b89d51d5277537ba6bfee2d20
DIST xsp-1.2.3.tar.gz 230891 RMD160 b475bce2cd802c162c4a3883efbf84d1ac225df9 SHA1 5006a7ef201b0fefd2c02a93f11b4fd048c83fa4 SHA256 710e9b139c9049fa56192f5d4f9da205be835ae0614e4d44e14f47a83db31deb
DIST xsp-1.2.4.tar.bz2 181358 RMD160 a14569f37287149c31fc5f9f3f2a97169d7ec491 SHA1 2ecd06bae4d36f4d7b4dba0bfdb85dbcd4dded19 SHA256 89fb84c627374a74978670521576256e1a0bf95509f0af3f5e4e3408e77d4a71
DIST xsp-1.2.5.tar.bz2 189396 RMD160 4ee53b38f38f2a0e70c8e23d788431eb7d2d5366 SHA1 39d17f3ada215090d76b88a863cc32696f18acc3 SHA256 25c246b7ed3e82a5f3562c2c15db551332830de4c238a53e3260ab7d40cd015a
DIST xsp-1.2.6.tar.bz2 239078 RMD160 820db0443dc0956aaffb6448c75259295da86bd7 SHA1 111f09312536579e463573c6aec3eade3ef9bff6 SHA256 5cecf84ee068c744fb4a54fb4701da60bdc0a53fc64c424aca60543601a54093
+DIST xsp-1.9.1.tar.bz2 241700 RMD160 a976861dca1b68a566c6c614d40c521794b3528d SHA1 1ee1e8950631e695dae867adcd0328c6562693ad SHA256 3c9dcbc8ed8ccf7c94ff11f7c1627ad03d4a49221ee1878d28aa798b1615a801
+DIST xsp-1.9.tar.bz2 241472 RMD160 2b0660d2c7ce87cf44eec3ce6831e67a9ec5d40a SHA1 57b7ef069e09c3cbc98fb00342eebd9cd8f251e4 SHA256 c3713928224bd37b4e18f02191219a802e9d602f492847661c15e3e50d37c9bb
EBUILD xsp-1.2.1.ebuild 1408 RMD160 686165a87e2bf187e6515e6cc309833ba60be497 SHA1 8c4fce0f3aae0f5c1151ef5dacf1391ad98b7240 SHA256 b1fa36a9bf3f9a7ac003e802a247927ca8d1bdeed372062660db6ab2bb4c8d8f
EBUILD xsp-1.2.3.ebuild 1408 RMD160 2d523816b4f6bd2510b27af91bded820f466ece6 SHA1 4646eca9fed5f580bd28156b8fc4ed7060da5799 SHA256 46e98ab4aefde05f1d92c174d8ab5328dfd36fed669981b16248e941c5c23457
EBUILD xsp-1.2.4-r1.ebuild 1611 RMD160 8b588231fd942cc171898291a212a0c8a84c9f69 SHA1 be35474ccb0516771abe21ceffad6297401ab079 SHA256 529805c5952f60334d05b7f8b39d088352f535a96790844845651007da0f7160
EBUILD xsp-1.2.4.ebuild 1410 RMD160 c0cfd4e772afd06076a7c57325a167443b8c28fe SHA1 6a71378dad9e5ad63ae8d38b3190b65351c2f4eb SHA256 49f5313753c0b646a431622ef83bee6b1d1e967799bbb567114b648762f3ade7
EBUILD xsp-1.2.5.ebuild 1615 RMD160 6f0eb72545ea20a4b3ba78c758dac7056699d903 SHA1 9f36dafcbaa5d4bf7f297439b8dd6953d59ce8b9 SHA256 ddd03e2c2c77bec2d833551036daabb7b5495e433b808bc7513f9145a68fcae6
EBUILD xsp-1.2.6.ebuild 1668 RMD160 aa6bfd82bc885c0ec7f60a85a0c23bcd64f2422e SHA1 1a1a612cbee6c6fa9cb78374f40a7731a9f06162 SHA256 2fb3587b90090d6324ebee2c9c9113b92e2e8981c57028fa823ba46e3e754d38
-MISC ChangeLog 9368 RMD160 084466d439768b62206ab4c6c377a75edae7ee94 SHA1 fda9a552e2742e8616d83e4dc26249008d88e174 SHA256 b18429aa6ed0950776a2b38e3004cbf3b543a45e43ea0a6f35d01d04ab2f67dc
+EBUILD xsp-1.9.1.ebuild 1665 RMD160 358e0c9ea717f9b14a8299f466dd0accca87940a SHA1 7a41cd07bda8efdfeacc72b30633dd4fbe4421e0 SHA256 1b8c7dbdb44252b24e7ec1bef4d53e971a3132a41467493d0b7cfb3533624d91
+EBUILD xsp-1.9.ebuild 1663 RMD160 e4c0601edff4315548f0acbe478ad908698f2b4f SHA1 39cf4f733c5f8e14a22e431d6ba858ab4a6f9f9d SHA256 a3c7ce725cd423894f55eb0a5c360a23ccc8e13172ba4b442e0c277ffc136b76
+MISC ChangeLog 9775 RMD160 73278cd5ad9f706ce67d7238de7a61325638846b SHA1 cbab2db29b2492d4f8c0a4c33f636fd7857927de SHA256 15bba3d5daddd38217b4f48df7e5148b9b60476413be33cbfed0e8b568eb6f94
MISC metadata.xml 403 RMD160 311567710e98949d92e23e63147a207394f04f1f SHA1 783ff989c1a7170b5c8fb32f64f6300cae0493f6 SHA256 3f85b6e861424448a453773d6c1b2724fac4c7b93fdb41aa5c7c1f8832394779
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkhAhPMACgkQyOePD61SuWLmxACdFKWSbaVobmQspTd6iDnsif4u
-vrkAn0Tmu5drKwfzZ2ZXxtbc2dCaYi0y
-=bVcD
+iEYEARECAAYFAkhBRw8ACgkQyOePD61SuWLpZgCeI5Dl/P9z+Qh65EBfJb1j2fFQ
+dz4An2CRub/VA+szJjsrnUyc4JztcSmQ
+=Phcm
-----END PGP SIGNATURE-----
diff --git a/dev-dotnet/xsp/files/1.9.1/mod-mono-server.confd b/dev-dotnet/xsp/files/1.9.1/mod-mono-server.confd
new file mode 100644
index 000000000000..99f71c5d23a6
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9.1/mod-mono-server.confd
@@ -0,0 +1,34 @@
+# Config file for /etc/init.d/mod-mono-server
+# $Id: mod-mono-server.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+# 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/1.9.1/mod-mono-server.initd b/dev-dotnet/xsp/files/1.9.1/mod-mono-server.initd
new file mode 100644
index 000000000000..31aaddb19866
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9.1/mod-mono-server.initd
@@ -0,0 +1,81 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: mod-mono-server.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+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/1.9.1/xsp.confd b/dev-dotnet/xsp/files/1.9.1/xsp.confd
new file mode 100644
index 000000000000..15ade86b61de
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9.1/xsp.confd
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/xsp
+# $Id: xsp.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+# 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/1.9.1/xsp.initd b/dev-dotnet/xsp/files/1.9.1/xsp.initd
new file mode 100644
index 000000000000..7e56e6b66ede
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9.1/xsp.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: xsp.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+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/1.9/mod-mono-server.confd b/dev-dotnet/xsp/files/1.9/mod-mono-server.confd
new file mode 100644
index 000000000000..99f71c5d23a6
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9/mod-mono-server.confd
@@ -0,0 +1,34 @@
+# Config file for /etc/init.d/mod-mono-server
+# $Id: mod-mono-server.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+# 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/1.9/mod-mono-server.initd b/dev-dotnet/xsp/files/1.9/mod-mono-server.initd
new file mode 100644
index 000000000000..31aaddb19866
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9/mod-mono-server.initd
@@ -0,0 +1,81 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: mod-mono-server.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+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/1.9/xsp.confd b/dev-dotnet/xsp/files/1.9/xsp.confd
new file mode 100644
index 000000000000..15ade86b61de
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9/xsp.confd
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/xsp
+# $Id: xsp.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+# 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/1.9/xsp.initd b/dev-dotnet/xsp/files/1.9/xsp.initd
new file mode 100644
index 000000000000..7e56e6b66ede
--- /dev/null
+++ b/dev-dotnet/xsp/files/1.9/xsp.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: xsp.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $
+
+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 $?
+}
+