mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
removed community/yaws
This commit is contained in:
parent
4e8f2ed88c
commit
9eedf7a8b0
3 changed files with 0 additions and 83 deletions
|
@ -1,57 +0,0 @@
|
|||
# $Id$
|
||||
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
||||
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
||||
# Contributor: Patrick Smits <mail@patricksmits.net>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.com>
|
||||
# - remove -m32 command from configure
|
||||
|
||||
pkgname=yaws
|
||||
pkgver=1.99
|
||||
pkgrel=2
|
||||
pkgdesc='Pure Erlang HTTP web server/framework'
|
||||
arch=('x86_64' 'i686')
|
||||
url='http://yaws.hyber.org/'
|
||||
license=('BSD')
|
||||
depends=('pam' 'erlang-nox')
|
||||
backup=('etc/yaws/yaws.conf')
|
||||
options=('!emptydirs')
|
||||
install="$pkgname.install"
|
||||
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
|
||||
"$pkgname.service")
|
||||
sha256sums=('94f1ef7c588c2c864c0755c565bdd0f3a359878ed344d54774974449d0abfe14'
|
||||
'09bd1f9f17833c83b4d82d3ac9dc2bf539c8e20ef92d438fced6e70b2aea61bc')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
# python2 fix
|
||||
for file in cgi.yaws cgi-bin/foo.py; do
|
||||
sed -i '0,/on/s//on2/' "www/$file"
|
||||
done
|
||||
# R16B1 fix
|
||||
sed -i 's/:sha(Salted)/:hash(sha, Salted)/' src/yaws_websockets.erl
|
||||
# hostname/config fix
|
||||
sed -i 's/%host%/\*/g' scripts/yaws.conf.template
|
||||
# remove m32
|
||||
sed -i 's/\-m32//g' configure
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
|
||||
install -d "$pkgdir/usr/lib/erlang/lib"
|
||||
ln -s /usr/lib/yaws "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver"
|
||||
install -Dm644 "$pkgname.service" \
|
||||
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
install -Dm644 "$pkgname-$pkgver/LICENSE" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -1,13 +0,0 @@
|
|||
post_upgrade() {
|
||||
mkdir -p /var/log/yaws
|
||||
}
|
||||
|
||||
post_install() {
|
||||
post_upgrade
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
rmdir --ignore-fail-on-non-empty /var/log/yaws
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=Fast lightweight webserver
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
GuessMainPID=no
|
||||
ExecStart=/usr/bin/yaws --daemon --heart
|
||||
ExecReload=/usr/bin/yaws --hup
|
||||
ExecStop=/usr/bin/yaws --stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue