2012-12-01 22:03:28 +00:00
|
|
|
# $Id$
|
2012-05-30 16:27:04 +00:00
|
|
|
# Maintainer: Vesa Kaihlavirta
|
2012-12-01 22:03:28 +00:00
|
|
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
|
|
|
# Contributor: Patrick Smits <mail@patricksmits.net>
|
2012-05-30 16:27:04 +00:00
|
|
|
|
2012-11-29 16:18:16 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.com>
|
|
|
|
# - remove -m32 command from configure
|
|
|
|
|
2012-05-30 16:27:04 +00:00
|
|
|
pkgname=yaws
|
2012-11-29 01:20:58 +00:00
|
|
|
pkgver=1.95
|
2013-01-17 17:03:20 +00:00
|
|
|
pkgrel=4
|
2012-11-29 01:20:58 +00:00
|
|
|
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
|
2013-01-17 17:03:20 +00:00
|
|
|
optdepends=('erlang-nox: erlang without X')
|
2012-12-01 22:03:28 +00:00
|
|
|
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
|
|
|
|
"$pkgname.service")
|
|
|
|
sha256sums=('e4efae836561f5e8a1324a5c9ab63fb82468e9dc93dc95cb4cb6248ab6b95406'
|
2013-01-17 17:03:20 +00:00
|
|
|
'3f8347add6e3741e77f7bb9ba6b31feb1c878e2e58ecf19063891e801fa24698')
|
2012-05-30 16:27:04 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
2012-11-29 16:18:16 +00:00
|
|
|
sed -i 's/\-m32//g' configure
|
2012-05-30 16:27:04 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
2013-01-17 17:03:20 +00:00
|
|
|
# python2 fix
|
|
|
|
for file in cgi.yaws cgi-bin/foo.py; do
|
|
|
|
sed -i '0,/on/s//on2/' "www/$file"
|
2012-05-30 16:27:04 +00:00
|
|
|
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"
|
2012-12-01 22:03:28 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgname.service" \
|
|
|
|
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
2012-05-30 16:27:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|