[arch-commits] Commit in yaws/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Mon Aug 3 11:22:54 UTC 2015
Date: Monday, August 3, 2015 @ 13:22:53
Author: arodseth
Revision: 137811
upgpkg: yaws 2.0-1
Modified:
yaws/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-08-03 11:14:37 UTC (rev 137810)
+++ PKGBUILD 2015-08-03 11:22:53 UTC (rev 137811)
@@ -4,8 +4,8 @@
# Contributor: Patrick Smits <mail at patricksmits.net>
pkgname=yaws
-pkgver=1.99
-pkgrel=2
+pkgver=2.0
+pkgrel=1
pkgdesc='Pure Erlang HTTP web server/framework'
arch=('x86_64' 'i686')
url='http://yaws.hyber.org/'
@@ -16,25 +16,20 @@
install="$pkgname.install"
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
"$pkgname.service")
-sha256sums=('94f1ef7c588c2c864c0755c565bdd0f3a359878ed344d54774974449d0abfe14'
+sha256sums=('0632761f455e2925436b0d0a28263154ee8b0d73347b00d2dbfed803142193bf'
'09bd1f9f17833c83b4d82d3ac9dc2bf539c8e20ef92d438fced6e70b2aea61bc')
prepare() {
- cd "$pkgname-$pkgver"
-
- # python2 fix
- for file in cgi.yaws cgi-bin/foo.py; do
- sed -i '0,/on/s//on2/' "www/$file"
+ # Python 2 fix
+ for f in cgi.yaws cgi-bin/foo.py; do
+ sed -i 's:n/python:n/python2:' "$pkgname-$pkgver/www/$f"
done
- # R16B1 fix
- sed -i 's/:sha(Salted)/:hash(sha, Salted)/' src/yaws_websockets.erl
- # hostname/config fix
- sed -i 's/%host%/\*/g' scripts/yaws.conf.template
}
build() {
cd "$pkgname-$pkgver"
+ export wwwdir=/srv/http/yaws
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
@@ -49,4 +44,5 @@
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+# getver: -u 2 yaws.hyber.org
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list