From 04aff5f70cb7c04abe06ca8eaf8261cbb0eeb378 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Apr 2012 00:01:18 +0000 Subject: Wed Apr 11 00:01:18 UTC 2012 --- community-testing/yaws/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++ community-testing/yaws/yaws.install | 13 +++++++++++++ community-testing/yaws/yaws.profile | 1 + 3 files changed, 53 insertions(+) create mode 100644 community-testing/yaws/PKGBUILD create mode 100644 community-testing/yaws/yaws.install create mode 100644 community-testing/yaws/yaws.profile (limited to 'community-testing/yaws') diff --git a/community-testing/yaws/PKGBUILD b/community-testing/yaws/PKGBUILD new file mode 100644 index 000000000..3652a9c06 --- /dev/null +++ b/community-testing/yaws/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 69122 2012-04-09 13:51:14Z tdziedzic $ +# Maintainer: Vesa Kaihlavirta +# Contributor: Alexander Rødseth + +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" + + ./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: diff --git a/community-testing/yaws/yaws.install b/community-testing/yaws/yaws.install new file mode 100644 index 000000000..2b28403e1 --- /dev/null +++ b/community-testing/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: diff --git a/community-testing/yaws/yaws.profile b/community-testing/yaws/yaws.profile new file mode 100644 index 000000000..57303c1f8 --- /dev/null +++ b/community-testing/yaws/yaws.profile @@ -0,0 +1 @@ +export PATH=$PATH:/opt/yaws/bin -- cgit v1.2.3-54-g00ecf