2012-05-30 16:27:04 +00:00
|
|
|
|
# $Id: PKGBUILD 69781 2012-04-23 09:18:39Z ibiru $
|
|
|
|
|
# Maintainer: Vesa Kaihlavirta
|
2012-11-29 01:20:58 +00:00
|
|
|
|
# Maintainer: Alexander R<>dseth <rodseth@gmail.com>
|
2012-05-30 16:27:04 +00:00
|
|
|
|
|
|
|
|
|
pkgname=yaws
|
2012-11-29 01:20:58 +00:00
|
|
|
|
pkgver=1.95
|
|
|
|
|
pkgrel=1
|
|
|
|
|
pkgdesc='Yet Another Web Server, pure Erlang HTTP server/framework'
|
2012-05-30 16:27:04 +00:00
|
|
|
|
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")
|
2012-11-29 01:20:58 +00:00
|
|
|
|
sha256sums=('e4efae836561f5e8a1324a5c9ab63fb82468e9dc93dc95cb4cb6248ab6b95406')
|
2012-05-30 16:27:04 +00:00
|
|
|
|
|
|
|
|
|
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:
|