diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/yaws |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/yaws')
-rw-r--r-- | community/yaws/ChangeLog | 7 | ||||
-rw-r--r-- | community/yaws/PKGBUILD | 38 | ||||
-rw-r--r-- | community/yaws/yaws.profile | 1 |
3 files changed, 46 insertions, 0 deletions
diff --git a/community/yaws/ChangeLog b/community/yaws/ChangeLog new file mode 100644 index 000000000..887b62a4f --- /dev/null +++ b/community/yaws/ChangeLog @@ -0,0 +1,7 @@ +2007-06-29 Dragonlord <dragonlord@aur.archlinux.org> + * updated to major version 1.77 + * added backup of /etc/yaws.conf + +2007-06-29 tardo <tardo@nagi-fanboi.net> + * Built for x86_64 + * Moved to /usr, removed profile diff --git a/community/yaws/PKGBUILD b/community/yaws/PKGBUILD new file mode 100644 index 000000000..977c56fb5 --- /dev/null +++ b/community/yaws/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 26124 2010-09-13 17:23:11Z schuay $ +# Maintainer: + +pkgname=yaws +pkgver=1.88 +pkgrel=3 +pkgdesc='Yet Another Web Server -- The pure Erlang HTTP server/framework' +arch=('i686' 'x86_64') +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') + +build() { + 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 + 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 -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/community/yaws/yaws.profile b/community/yaws/yaws.profile new file mode 100644 index 000000000..57303c1f8 --- /dev/null +++ b/community/yaws/yaws.profile @@ -0,0 +1 @@ +export PATH=$PATH:/opt/yaws/bin |