Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added community/yaws 1.92-2, fixes #162

  • Loading branch information...
commit c421701bc75baf7cdfbd526a6a331db031052b87 1 parent bdd333e
@kmihelich kmihelich authored
View
43 community/yaws/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 69781 2012-04-23 09:18:39Z ibiru $
+# Maintainer: Vesa Kaihlavirta
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+
+# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
+# - remove -m32 flag from configure
+
+pkgname=yaws
+pkgver=1.92
+pkgrel=2
+pkgdesc='Yet Another Web Server -- The pure Erlang HTTP server/framework'
+arch=('x86_64' 'i686')
+url='http://yaws.hyber.org/'
+license=('BSD')
+depends=('pam' 'erlang')
+backup=('etc/yaws/yaws.conf')
+options=('!emptydirs')
+install=$pkgname.install
+source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz")
+sha256sums=('cde83ca55d8e1b10a89094e1cfdc3e78d91ba9b1036cb5ea4e1994f5922c2357')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ sed -i 's/\-m32//g' configure
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+ for file in www/cgi.yaws www/cgi-bin/foo.py; do
+ # python2 fix
+ sed -i '0,/on/s//on2/' "$file"
+ done
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -d "$pkgdir/usr/lib/erlang/lib"
+ ln -s /usr/lib/yaws "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
View
13 community/yaws/yaws.install
@@ -0,0 +1,13 @@
+post_upgrade() {
+ mkdir -p /usr/var/log/yaws
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ rmdir --ignore-fail-on-non-empty /usr/var/log/yaws
+}
+
+# vim:set ts=2 sw=2 et:
View
1  community/yaws/yaws.profile
@@ -0,0 +1 @@
+export PATH=$PATH:/opt/yaws/bin
Please sign in to comment.
Something went wrong with that request. Please try again.