mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/yaws to 1.95-4
This commit is contained in:
parent
bcc2d7b175
commit
b36b82c569
2 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
pkgname=yaws
|
pkgname=yaws
|
||||||
pkgver=1.95
|
pkgver=1.95
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc='Yet Another Web Server, pure Erlang HTTP server/framework'
|
pkgdesc='Yet Another Web Server, pure Erlang HTTP server/framework'
|
||||||
arch=('x86_64' 'i686')
|
arch=('x86_64' 'i686')
|
||||||
url='http://yaws.hyber.org/'
|
url='http://yaws.hyber.org/'
|
||||||
|
@ -17,19 +17,20 @@ depends=('pam' 'erlang')
|
||||||
backup=('etc/yaws/yaws.conf')
|
backup=('etc/yaws/yaws.conf')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
|
optdepends=('erlang-nox: erlang without X')
|
||||||
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
|
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
|
||||||
"$pkgname.service")
|
"$pkgname.service")
|
||||||
sha256sums=('e4efae836561f5e8a1324a5c9ab63fb82468e9dc93dc95cb4cb6248ab6b95406'
|
sha256sums=('e4efae836561f5e8a1324a5c9ab63fb82468e9dc93dc95cb4cb6248ab6b95406'
|
||||||
'cce672e0bc73f536186bdbb8ac139d8000db4bd67f5fdeff84fdc4b4f8bd84f9')
|
'3f8347add6e3741e77f7bb9ba6b31feb1c878e2e58ecf19063891e801fa24698')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
sed -i 's/\-m32//g' configure
|
sed -i 's/\-m32//g' configure
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
||||||
for file in www/cgi.yaws www/cgi-bin/foo.py; do
|
# python2 fix
|
||||||
# python2 fix
|
for file in cgi.yaws cgi-bin/foo.py; do
|
||||||
sed -i '0,/on/s//on2/' "$file"
|
sed -i '0,/on/s//on2/' "www/$file"
|
||||||
done
|
done
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
GuessMainPID=no
|
||||||
ExecStart=/usr/bin/yaws --daemon --heart
|
ExecStart=/usr/bin/yaws --daemon --heart
|
||||||
ExecReload=/usr/bin/yaws --hup
|
ExecReload=/usr/bin/yaws --hup
|
||||||
ExecStop=/usr/bin/yaws --stop
|
ExecStop=/usr/bin/yaws --stop
|
||||||
|
|
Loading…
Reference in a new issue