diff options
author | Antonio Rojas | 2017-10-24 07:24:53 +0000 |
---|---|---|
committer | Antonio Rojas | 2017-10-24 07:24:53 +0000 |
commit | c03923d1becac429a335e1a726805a6356c84148 (patch) | |
tree | 74c0654b00d86e8449ee7bfe759f3960e58269f9 | |
download | aur-c03923d1becac429a335e1a726805a6356c84148.tar.gz |
Dropped from repos
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | xsp.install | 37 | ||||
-rw-r--r-- | xsp.service | 8 | ||||
-rw-r--r-- | xsp.webapp | 8 |
5 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ff24ddf66b90 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = xsp + pkgdesc = A simple webserver based on mono - provides ASP.NET support + pkgver = 4.4 + pkgrel = 2 + url = http://www.go-mono.com + install = xsp.install + arch = i686 + arch = x86_64 + license = custom + depends = mono + depends = sqlite + options = !makeflags + source = xsp-4.4.tar.gz::https://github.com/mono/xsp/archive/4.4.tar.gz + source = xsp.webapp + source = xsp.service + sha256sums = 231d05550311a47b805331326078f156aa673ae542d2edeb14cc5ab8c34eb1a2 + sha256sums = bcb208c3946ef49ae431a7be50c8effeb61228574b56d36e2c3c1cd9fe04fe02 + sha256sums = 4760b3fa782e62890291c7d31e393ee51d18015f91a6fc21b4a928bae4f22f66 + +pkgname = xsp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ae06ff428916 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 308160 2017-10-17 17:36:56Z jelle $ +# Maintainer: Daniel Isenmann <daniel@archlinux.org> +# Contributor: Tobias Kieslich <tobias@justdreams.de> + +pkgname=xsp +pkgver=4.4 +pkgrel=2 +pkgdesc="A simple webserver based on mono - provides ASP.NET support" +arch=('i686' 'x86_64') +license=('custom') +url="http://www.go-mono.com" +depends=('mono' 'sqlite') +options=(!makeflags) +install=${pkgname}.install +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mono/xsp/archive/${pkgver}.tar.gz + ${pkgname}.webapp + ${pkgname}.service) +sha256sums=('231d05550311a47b805331326078f156aa673ae542d2edeb14cc5ab8c34eb1a2' + 'bcb208c3946ef49ae431a7be50c8effeb61228574b56d36e2c3c1cd9fe04fe02' + '4760b3fa782e62890291c7d31e393ee51d18015f91a6fc21b4a928bae4f22f66') + +build() { + # get rid of that .wapi errors; thanks to brice + export MONO_SHARED_DIR=${srcdir}/src/weird + mkdir -p "${MONO_SHARED_DIR}" + # import pathes + # build + cd ${srcdir}/${pkgname}-${pkgver} + #sed -i 's|/bin/sh|\0\nexport MONO_PATH=${MONO_PATH}:/opt/mono/lib/mono/1.0|' scripts/script.in + ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc + make + # tweak the xsp shellscript to grab system dll's + for script in scripts/*2; do + sed -i 's|/usr/lib/mono/1.0|/usr/lib/mono/2.0|' $script + done + #destdir related bugfixes + sed -i 's|mkdir \$(datadir)|mkdir $(DESTDIR)$(datadir)|' test/2.0/treeview/Makefile + sed -i 's|gif \$(datadir)|gif $(DESTDIR)$(datadir)|' test/2.0/treeview/Makefile +} + +package(){ + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir}/ install + # move test files from share to arch' default html home + mkdir -p ${pkgdir}/srv/http/html + mv ${pkgdir}/usr/lib/xsp/test ${pkgdir}/srv/http/html/xsp + rm -rf ${pkgdir}/usr/share + chown -R http:http ${pkgdir}/srv/http/html/${pkgname} + + # install a xsp configuration home + install -D -m644 ${srcdir}/${pkgname}.webapp \ + ${pkgdir}/etc/${pkgname}/${pkgname}.webapp + install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING + # install systemd service file + install -D -m644 ${srcdir}/${pkgname}.service \ + ${pkgdir}/usr/lib/systemd/system/xsp.service +} diff --git a/xsp.install b/xsp.install new file mode 100644 index 000000000000..b8a8f313606e --- /dev/null +++ b/xsp.install @@ -0,0 +1,37 @@ +# arg 1: the new package version +post_install() { + cat << EOM + +--> xsp is just the helping app for mod_mono if you like a production like +--> server. xsp itself is for ASP testing mainly -- read the manpage for xsp +--> to know which options are available. +--> Archlinux will provide xsp configured by a .webapp configuration file +--> which rests in /etc/xsp. Just put your other webapp files there to let +--> xsp pick them up. +--> xsp is commandline based configuration is done in /etc/conf.d/xsp. Set all +--> your arguments there. Don't forget that you can run xsp from the console +--> as oridinary user, which is safer and for testing absolutely sufficient!! + +--> You can run the testpages simply by starting the server and calling + http://localhost:8080 +--> from your browser's location bar + + +EOM +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} diff --git a/xsp.service b/xsp.service new file mode 100644 index 000000000000..36b802e21a0e --- /dev/null +++ b/xsp.service @@ -0,0 +1,8 @@ +[Unit] +Description=XSP Web Server + +[Service] +ExecStart=/usr/bin/xsp --appconfigdir /etc/xsp --nonstop + +[Install] +WantedBy=multi-user.target diff --git a/xsp.webapp b/xsp.webapp new file mode 100644 index 000000000000..a685dd171d2b --- /dev/null +++ b/xsp.webapp @@ -0,0 +1,8 @@ +<apps> + <web-application> + <name>Root</name> + <vpath>/</vpath> + <path>/srv/http/html/xsp</path> + <vhost>localhost</vhost> + </web-application> +</apps> |