diff options
Diffstat (limited to 'community/yaws')
-rw-r--r-- | community/yaws/PKGBUILD | 41 | ||||
-rw-r--r-- | community/yaws/yaws.install | 13 |
2 files changed, 34 insertions, 20 deletions
diff --git a/community/yaws/PKGBUILD b/community/yaws/PKGBUILD index 3474a3ae8..52fc29143 100644 --- a/community/yaws/PKGBUILD +++ b/community/yaws/PKGBUILD @@ -1,38 +1,39 @@ -# $Id: PKGBUILD 26124 2010-09-13 17:23:11Z schuay $ -# Maintainer: +# $Id: PKGBUILD 68192 2012-03-18 22:20:01Z arodseth $ +# Maintainer: Vesa Kaihlavirta +# Contributor: Alexander Rødseth <rodseth@gmail.com> pkgname=yaws -pkgver=1.88 -pkgrel=3 +pkgver=1.92 +pkgrel=1 pkgdesc='Yet Another Web Server -- The pure Erlang HTTP server/framework' -arch=('i686' 'x86_64' 'mips64el') -url='http://yaws.hyber.org' +arch=('x86_64' 'i686' 'mips64el') +url='http://yaws.hyber.org/' license=('BSD') depends=('pam' 'erlang') backup=('etc/yaws/yaws.conf') -source=("http://yaws.hyber.org/download/${pkgname}-${pkgver}.tar.gz") -md5sums=('950f8199592c6490556632e20e59a353') +options=('!emptydirs') +install=$pkgname.install +source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz") +sha256sums=('cde83ca55d8e1b10a89094e1cfdc3e78d91ba9b1036cb5ea4e1994f5922c2357') build() { - cd ${pkgname}-${pkgver} + cd "$pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var - - # python2 fix for file in www/cgi.yaws www/cgi-bin/foo.py; do - sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file + # python2 fix + sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file done - make } package() { - cd ${pkgname}-${pkgver} - - make DESTDIR=${pkgdir} install + cd "$pkgname-$pkgver" - install -d ${pkgdir}/usr/lib/erlang/lib - ln -s /usr/lib/yaws ${pkgdir}/usr/lib/erlang/lib/${pkgname}-${pkgver} - - install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + 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/yaws/yaws.install b/community/yaws/yaws.install new file mode 100644 index 000000000..2b28403e1 --- /dev/null +++ b/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: |