[arch-commits] Commit in hiawatha/repos (6 files)

2020-08-20 Thread Kyle Keen via arch-commits
Date: Thursday, August 20, 2020 @ 10:36:21
  Author: kkeen
Revision: 685375

archrelease: copy trunk to community-testing-x86_64

Added:
  hiawatha/repos/community-testing-x86_64/
  hiawatha/repos/community-testing-x86_64/PKGBUILD
(from rev 685374, hiawatha/trunk/PKGBUILD)
  hiawatha/repos/community-testing-x86_64/hiawatha.conf.sample
(from rev 685374, hiawatha/trunk/hiawatha.conf.sample)
  hiawatha/repos/community-testing-x86_64/hiawatha.service
(from rev 685374, hiawatha/trunk/hiawatha.service)
  hiawatha/repos/community-testing-x86_64/lefh-renew.service
(from rev 685374, hiawatha/trunk/lefh-renew.service)
  hiawatha/repos/community-testing-x86_64/lefh-renew.timer
(from rev 685374, hiawatha/trunk/lefh-renew.timer)

--+
 PKGBUILD |   98 ++
 hiawatha.conf.sample |  114 +
 hiawatha.service |   16 ++
 lefh-renew.service   |9 +++
 lefh-renew.timer |   11 
 5 files changed, 248 insertions(+)

Copied: hiawatha/repos/community-testing-x86_64/PKGBUILD (from rev 685374, 
hiawatha/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-20 10:36:21 UTC (rev 685375)
@@ -0,0 +1,98 @@
+# Maintainer: Kyle Keen 
+# Contributor: Kurt Marasco 
+# Contributor: Pascal Ernster 
+# Contributor: Kewl 
+
+pkgname=hiawatha
+pkgver=10.11
+pkgrel=2
+pkgdesc="Secure and advanced webserver"
+url="https://www.hiawatha-webserver.org/";
+arch=('x86_64')
+license=('GPL2')
+depends=('libxslt' 'mbedtls' 'libxcrypt')
+optdepends=('php-fpm: PHP fastcgi'
+'php: letsencrypt/lefh')
+makedepends=('cmake')
+backup=('etc/hiawatha/hiawatha.conf'
+'etc/hiawatha/cgi-wrapper.conf'
+'etc/hiawatha/mimetype.conf')
+source=("https://www.hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz"; 
+'hiawatha.conf.sample'
+'hiawatha.service'
+'lefh-renew.service'
+'lefh-renew.timer')
+sha256sums=('79d85d165d68dd7043bbd337f5bc7dd10d8632d68ba61d0e557f84bd687c9727'
+'4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7'
+'b5a2671703b52eec376cfc4697b86aafa4f7fdd9b2b9203798e2117770bafa53'
+'db1d647d86370583c24ae7a37feab78e3f0015d441ff5bc8f9b32e1a91ec4c8e'
+'d12c5a68c293f66d95ae4df704ea349adbad972fb25475ab1a0a24fb42bfc70b')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i 's/www-data/http/g' extra/logrotate.in
+
+  # Update stock hiawatha.conf
+  sed -e 's|#ServerId = www-data|ServerId = http|' \
+  -e 's|/var/www/|/srv/http/|g' \
+  -e 's|//|/|g' \
+  -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
+  -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
+  -e 's|#  Extension = php|&\n#   SessionTimeout = 30|g' \
+  -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
+  -i config/hiawatha.conf.in
+  
+  sed -e 's|/etc/init.d/hiawatha restart|systemctl restart hiawatha.service|' \
+  -i extra/letsencrypt/letsencrypt.conf.in
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  mkdir -p build
+  cd build
+
+  cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
+-DCMAKE_INSTALL_BINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
+-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
+-DCONFIG_DIR="/etc/hiawatha" \
+-DLOG_DIR="/var/log/hiawatha" \
+-DPID_DIR="/run" \
+-DENABLE_TLS=ON \
+-DUSE_SYSTEM_MBEDTLS=ON \
+-DENABLE_MONITOR=ON \
+-DWEBROOT_DIR="/srv/http/hiawatha" \
+-DWORK_DIR="/var/lib/hiawatha"
+
+  make
+
+  # Features enabled by default
+  # -DENABLE_CACHE
+  # -DENABLE_IPV6
+  # -DENABLE_RPROXY
+  # -DENABLE_TOOLKIT
+  # -DENABLE_XSLT
+
+  # Features disabled by default
+  # -DENABLE_DEBUG
+  # -DENABLE_TOMAHAWK
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+  make DESTDIR="$pkgdir/" install
+ 
+  rmdir "$pkgdir/run"
+  rm "$pkgdir/srv/http/hiawatha/index.html"
+  rmdir -p --ignore-fail-on-non-empty "$pkgdir/srv/http/hiawatha"
+ 
+  install -Dm644 logrotate.d/hiawatha "$pkgdir/etc/logrotate.d/hiawatha"
+  cd "$srcdir"
+  install -Dm644 hiawatha.service   
"$pkgdir/usr/lib/systemd/system/hiawatha.service"
+  install -Dm644 lefh-renew.service 
"$pkgdir/usr/lib/systemd/system/lefh-renew.service"
+  install -Dm644 lefh-renew.timer   
"$pkgdir/usr/lib/systemd/system/lefh-renew.timer"
+  install -Dm644 hiawatha.conf.sample "$pkgdir/etc/hiawatha/"
+}
+

Copied: hiawatha/repos/community-testing-x86_64/hiawatha.conf.sample (from rev 
685374, hiawatha/trunk/hiawatha.conf.sample)
===

[arch-commits] Commit in hiawatha/repos (6 files)

2020-07-07 Thread Felix Yan via arch-commits
Date: Tuesday, July 7, 2020 @ 15:30:06
  Author: felixonmars
Revision: 658925

archrelease: copy trunk to community-staging-x86_64

Added:
  hiawatha/repos/community-staging-x86_64/
  hiawatha/repos/community-staging-x86_64/PKGBUILD
(from rev 658923, hiawatha/trunk/PKGBUILD)
  hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample
(from rev 658923, hiawatha/trunk/hiawatha.conf.sample)
  hiawatha/repos/community-staging-x86_64/hiawatha.service
(from rev 658924, hiawatha/trunk/hiawatha.service)
  hiawatha/repos/community-staging-x86_64/lefh-renew.service
(from rev 658924, hiawatha/trunk/lefh-renew.service)
  hiawatha/repos/community-staging-x86_64/lefh-renew.timer
(from rev 658924, hiawatha/trunk/lefh-renew.timer)

--+
 PKGBUILD |  104 
 hiawatha.conf.sample |  114 +
 hiawatha.service |   16 ++
 lefh-renew.service   |9 +++
 lefh-renew.timer |   11 
 5 files changed, 254 insertions(+)

Copied: hiawatha/repos/community-staging-x86_64/PKGBUILD (from rev 658923, 
hiawatha/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-07-07 15:30:06 UTC (rev 658925)
@@ -0,0 +1,104 @@
+# Maintainer: Kyle Keen 
+# Contributor: Kurt Marasco 
+# Contributor: Pascal Ernster 
+# Contributor: Kewl 
+
+pkgname=hiawatha
+pkgver=10.10
+pkgrel=2
+pkgdesc="Secure and advanced webserver"
+url="https://www.hiawatha-webserver.org/";
+arch=('x86_64')
+license=('GPL2')
+depends=('libxslt' 'mbedtls')
+optdepends=('php-fpm: PHP fastcgi'
+'php: letsencrypt/lefh')
+makedepends=('cmake')
+backup=(
+'etc/hiawatha/hiawatha.conf'
+'etc/hiawatha/cgi-wrapper.conf'
+'etc/hiawatha/mimetype.conf'
+)
+
+source=(
+"https://www.hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz"; 
+'hiawatha.conf.sample'
+'hiawatha.service'
+'lefh-renew.service'
+'lefh-renew.timer'
+)
+sha256sums=('b5e46f5757fa647e77d21d24f7eea912d59f26a75558cba780b45c1c3a33a4d9'
+'4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7'
+'b5a2671703b52eec376cfc4697b86aafa4f7fdd9b2b9203798e2117770bafa53'
+'db1d647d86370583c24ae7a37feab78e3f0015d441ff5bc8f9b32e1a91ec4c8e'
+'d12c5a68c293f66d95ae4df704ea349adbad972fb25475ab1a0a24fb42bfc70b')
+
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i 's/www-data/http/g' extra/logrotate.in
+
+  # Update stock hiawatha.conf
+  sed -e 's|#ServerId = www-data|ServerId = http|' \
+  -e 's|/var/www/|/srv/http/|g' \
+  -e 's|//|/|g' \
+  -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
+  -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
+  -e 's|#  Extension = php|&\n#   SessionTimeout = 30|g' \
+  -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
+  -i config/hiawatha.conf.in
+  
+  sed -e 's|/etc/init.d/hiawatha restart|systemctl restart hiawatha.service|' \
+  -i extra/letsencrypt/letsencrypt.conf.in
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  mkdir -p build
+  cd build
+
+  cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
+-DCMAKE_INSTALL_BINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
+-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
+-DCONFIG_DIR="/etc/hiawatha" \
+-DLOG_DIR="/var/log/hiawatha" \
+-DPID_DIR="/run" \
+-DENABLE_TLS=ON \
+-DUSE_SYSTEM_MBEDTLS=ON \
+-DENABLE_MONITOR=ON \
+-DWEBROOT_DIR="/srv/http/hiawatha" \
+-DWORK_DIR="/var/lib/hiawatha"
+
+  make
+
+  # Features enabled by default
+  # -DENABLE_CACHE
+  # -DENABLE_IPV6
+  # -DENABLE_RPROXY
+  # -DENABLE_TOOLKIT
+  # -DENABLE_XSLT
+
+  # Features disabled by default
+  # -DENABLE_DEBUG
+  # -DENABLE_TOMAHAWK
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+  make DESTDIR="$pkgdir/" install
+ 
+  rmdir "$pkgdir/run"
+  rm "$pkgdir/srv/http/hiawatha/index.html"
+  rmdir -p --ignore-fail-on-non-empty "$pkgdir/srv/http/hiawatha"
+ 
+  install -Dm644 logrotate.d/hiawatha "$pkgdir/etc/logrotate.d/hiawatha"
+  cd "$srcdir"
+  install -Dm644 hiawatha.service   
"$pkgdir/usr/lib/systemd/system/hiawatha.service"
+  install -Dm644 lefh-renew.service 
"$pkgdir/usr/lib/systemd/system/lefh-renew.service"
+  install -Dm644 lefh-renew.timer   
"$pkgdir/usr/lib/systemd/system/lefh-renew.timer"
+  install -Dm644 hiawatha.conf.sample "$pkgdir/etc/hiawatha/"
+}
+

Copied: hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample (from rev 
658923, hiawatha/trunk/hiawatha.conf.sample)
==

[arch-commits] Commit in hiawatha/repos (6 files)

2018-09-22 Thread Kyle Keen via arch-commits
Date: Saturday, September 22, 2018 @ 14:45:17
  Author: kkeen
Revision: 384143

archrelease: copy trunk to community-staging-x86_64

Added:
  hiawatha/repos/community-staging-x86_64/
  hiawatha/repos/community-staging-x86_64/PKGBUILD
(from rev 384142, hiawatha/trunk/PKGBUILD)
  hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample
(from rev 384142, hiawatha/trunk/hiawatha.conf.sample)
  hiawatha/repos/community-staging-x86_64/hiawatha.service
(from rev 384142, hiawatha/trunk/hiawatha.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.service
(from rev 384142, hiawatha/trunk/letsencrypt-renew.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.timer
(from rev 384142, hiawatha/trunk/letsencrypt-renew.timer)

---+
 PKGBUILD  |  102 +++
 hiawatha.conf.sample  |  114 
 hiawatha.service  |   16 ++
 letsencrypt-renew.service |8 +++
 letsencrypt-renew.timer   |   11 
 5 files changed, 251 insertions(+)

Copied: hiawatha/repos/community-staging-x86_64/PKGBUILD (from rev 384142, 
hiawatha/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-09-22 14:45:17 UTC (rev 384143)
@@ -0,0 +1,102 @@
+# Maintainer: Kyle Keen 
+# Contributor: Kurt Marasco 
+# Contributor: Pascal Ernster 
+
+pkgname=hiawatha
+pkgver=10.8.3
+pkgrel=1
+pkgdesc="Secure and advanced webserver"
+url="https://www.hiawatha-webserver.org/";
+arch=('x86_64')
+license=('GPL2')
+depends=('libxslt' 'mbedtls')
+optdepends=('php-fpm: PHP fastcgi'
+'php: letsencrypt')
+makedepends=('cmake')
+backup=(
+'etc/hiawatha/hiawatha.conf'
+'etc/hiawatha/cgi-wrapper.conf'
+'etc/hiawatha/mimetype.conf'
+)
+
+source=(
+"https://www.hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz"; 
+'hiawatha.conf.sample'
+'hiawatha.service'
+'letsencrypt-renew.service'
+'letsencrypt-renew.timer'
+)
+sha256sums=('daccdfda7979a907ba3a4e206e0a8d16d8fdceb55ee2b0f75e1acac8ef21e070'
+'4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7'
+'fb789b12bb6246237b15a9244f58317abdd53e5ca4eb55880e40a498b2237155'
+'7f903aadf1e7e4bf449c9a647f160051358ef1e2db328afffc7f3a5c204f8ea5'
+'a1d5371e886bdd697c9d040125aa5b117d6efe36bb6ee77b57004d893f2bc410')
+
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i 's/www-data/http/g' extra/logrotate.in
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  mkdir -p build
+  cd build
+
+  cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
+-DCMAKE_INSTALL_BINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
+-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
+-DCONFIG_DIR="/etc/hiawatha" \
+-DLOG_DIR="/var/log/hiawatha" \
+-DPID_DIR="/run" \
+-DENABLE_TLS=ON \
+-DUSE_SYSTEM_MBEDTLS=ON \
+-DENABLE_MONITOR=ON \
+-DWEBROOT_DIR="/srv/http/hiawatha" \
+-DWORK_DIR="/var/lib/hiawatha"
+
+  make
+
+  # Features enabled by default
+  # -DENABLE_CACHE
+  # -DENABLE_IPV6
+  # -DENABLE_RPROXY
+  # -DENABLE_TOOLKIT
+  # -DENABLE_XSLT
+
+  # Features disabled by default
+  # -DENABLE_DEBUG
+  # -DENABLE_TOMAHAWK  
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+  make DESTDIR="$pkgdir/" install
+ 
+  rmdir "$pkgdir/run"
+  rm "$pkgdir/srv/http/hiawatha/index.html"
+  rmdir -p --ignore-fail-on-non-empty "$pkgdir/srv/http/hiawatha"
+ 
+  # Update stock hiawatha.conf
+  sed -e 's|#ServerId = www-data|ServerId = http|' \
+  -e 's|/var/www/|/srv/http/|g' \
+  -e 's|//|/|g' \
+  -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
+  -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
+  -e 's|#  Extension = php|&\n#   SessionTimeout = 30|g' \
+  -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
+  -i "$pkgdir/etc/hiawatha/hiawatha.conf"
+  
+  install -Dm644 logrotate.d/hiawatha "$pkgdir/etc/logrotate.d/hiawatha"
+  install -Dm644 "$srcdir/hiawatha.service" 
"$pkgdir/usr/lib/systemd/system/hiawatha.service"
+  install -Dm644 "$srcdir/hiawatha.conf.sample" "$pkgdir/etc/hiawatha/"
+
+  mkdir -p "$pkgdir/usr/share/hiawatha/"
+  cd "$srcdir/$pkgname-$pkgver/extra/"
+  cp "$srcdir/letsencrypt-renew."* letsencrypt/
+  tar -caf "$pkgdir/usr/share/hiawatha/letsencrypt.tar.gz" letsencrypt/*
+}
+

Copied: hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample (from rev 
384142, hiawatha/trunk/hiawatha.conf.sample)
===
--- community-staging-x86_

[arch-commits] Commit in hiawatha/repos (6 files)

2018-08-18 Thread Kyle Keen via arch-commits
Date: Sunday, August 19, 2018 @ 02:22:16
  Author: kkeen
Revision: 372734

archrelease: copy trunk to community-staging-x86_64

Added:
  hiawatha/repos/community-staging-x86_64/
  hiawatha/repos/community-staging-x86_64/PKGBUILD
(from rev 372733, hiawatha/trunk/PKGBUILD)
  hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample
(from rev 372733, hiawatha/trunk/hiawatha.conf.sample)
  hiawatha/repos/community-staging-x86_64/hiawatha.service
(from rev 372733, hiawatha/trunk/hiawatha.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.service
(from rev 372733, hiawatha/trunk/letsencrypt-renew.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.timer
(from rev 372733, hiawatha/trunk/letsencrypt-renew.timer)

---+
 PKGBUILD  |  103 +++
 hiawatha.conf.sample  |  114 
 hiawatha.service  |   16 ++
 letsencrypt-renew.service |8 +++
 letsencrypt-renew.timer   |   11 
 5 files changed, 252 insertions(+)

Copied: hiawatha/repos/community-staging-x86_64/PKGBUILD (from rev 372733, 
hiawatha/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-19 02:22:16 UTC (rev 372734)
@@ -0,0 +1,103 @@
+# $Id$
+# Maintainer: Kyle Keen 
+# Contributor: Kurt Marasco 
+# Contributor: Pascal Ernster 
+
+pkgname=hiawatha
+pkgver=10.8.2
+pkgrel=1
+pkgdesc="Secure and advanced webserver"
+url="https://www.hiawatha-webserver.org/";
+arch=('x86_64')
+license=('GPL2')
+depends=('libxslt' 'mbedtls')
+optdepends=('php-fpm: PHP fastcgi'
+'php: letsencrypt')
+makedepends=('cmake')
+backup=(
+'etc/hiawatha/hiawatha.conf'
+'etc/hiawatha/cgi-wrapper.conf'
+'etc/hiawatha/mimetype.conf'
+)
+
+source=(
+"https://www.hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz"; 
+'hiawatha.conf.sample'
+'hiawatha.service'
+'letsencrypt-renew.service'
+'letsencrypt-renew.timer'
+)
+sha256sums=('282e586113a1ffaececfd093a3da83c9f6de67e8d76853f25c546fdca9f013c7'
+'4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7'
+'fb789b12bb6246237b15a9244f58317abdd53e5ca4eb55880e40a498b2237155'
+'7f903aadf1e7e4bf449c9a647f160051358ef1e2db328afffc7f3a5c204f8ea5'
+'a1d5371e886bdd697c9d040125aa5b117d6efe36bb6ee77b57004d893f2bc410')
+
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i 's/www-data/http/g' extra/logrotate.in
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  mkdir -p build
+  cd build
+
+  cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
+-DCMAKE_INSTALL_BINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
+-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
+-DCONFIG_DIR="/etc/hiawatha" \
+-DLOG_DIR="/var/log/hiawatha" \
+-DPID_DIR="/run" \
+-DENABLE_TLS=ON \
+-DUSE_SYSTEM_MBEDTLS=ON \
+-DENABLE_MONITOR=ON \
+-DWEBROOT_DIR="/srv/http/hiawatha" \
+-DWORK_DIR="/var/lib/hiawatha"
+
+  make
+
+  # Features enabled by default
+  # -DENABLE_CACHE
+  # -DENABLE_IPV6
+  # -DENABLE_RPROXY
+  # -DENABLE_TOOLKIT
+  # -DENABLE_XSLT
+
+  # Features disabled by default
+  # -DENABLE_DEBUG
+  # -DENABLE_TOMAHAWK  
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+  make DESTDIR="$pkgdir/" install
+ 
+  rmdir "$pkgdir/run"
+  rm "$pkgdir/srv/http/hiawatha/index.html"
+  rmdir -p --ignore-fail-on-non-empty "$pkgdir/srv/http/hiawatha"
+ 
+  # Update stock hiawatha.conf
+  sed -e 's|#ServerId = www-data|ServerId = http|' \
+  -e 's|/var/www/|/srv/http/|g' \
+  -e 's|//|/|g' \
+  -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
+  -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
+  -e 's|#  Extension = php|&\n#   SessionTimeout = 30|g' \
+  -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
+  -i "$pkgdir/etc/hiawatha/hiawatha.conf"
+  
+  install -Dm644 logrotate.d/hiawatha "$pkgdir/etc/logrotate.d/hiawatha"
+  install -Dm644 "$srcdir/hiawatha.service" 
"$pkgdir/usr/lib/systemd/system/hiawatha.service"
+  install -Dm644 "$srcdir/hiawatha.conf.sample" "$pkgdir/etc/hiawatha/"
+
+  mkdir -p "$pkgdir/usr/share/hiawatha/"
+  cd "$srcdir/$pkgname-$pkgver/extra/"
+  cp "$srcdir/letsencrypt-renew."* letsencrypt/
+  tar -caf "$pkgdir/usr/share/hiawatha/letsencrypt.tar.gz" letsencrypt/*
+}
+

Copied: hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample (from rev 
372733, hiawatha/trunk/hiawatha.conf.sample)
===
--- community-staging-x

[arch-commits] Commit in hiawatha/repos (6 files)

2018-02-07 Thread Kyle Keen via arch-commits
Date: Wednesday, February 7, 2018 @ 23:12:56
  Author: kkeen
Revision: 290097

archrelease: copy trunk to community-staging-x86_64

Added:
  hiawatha/repos/community-staging-x86_64/
  hiawatha/repos/community-staging-x86_64/PKGBUILD
(from rev 290096, hiawatha/trunk/PKGBUILD)
  hiawatha/repos/community-staging-x86_64/hiawatha.conf.sample
(from rev 290096, hiawatha/trunk/hiawatha.conf.sample)
  hiawatha/repos/community-staging-x86_64/hiawatha.service
(from rev 290096, hiawatha/trunk/hiawatha.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.service
(from rev 290096, hiawatha/trunk/letsencrypt-renew.service)
  hiawatha/repos/community-staging-x86_64/letsencrypt-renew.timer
(from rev 290096, hiawatha/trunk/letsencrypt-renew.timer)

---+
 PKGBUILD  |  106 
 hiawatha.conf.sample  |  114 
 hiawatha.service  |   16 ++
 letsencrypt-renew.service |6 ++
 letsencrypt-renew.timer   |   11 
 5 files changed, 253 insertions(+)

Copied: hiawatha/repos/community-staging-x86_64/PKGBUILD (from rev 290096, 
hiawatha/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-07 23:12:56 UTC (rev 290097)
@@ -0,0 +1,106 @@
+# $Id$
+# Maintainer: Kyle Keen 
+# Contributor: Kurt Marasco 
+# Contributor: Pascal Ernster 
+
+pkgname=hiawatha
+pkgver=10.7
+pkgrel=3
+pkgdesc="Secure and advanced webserver"
+url="https://www.hiawatha-webserver.org/";
+arch=('x86_64')
+license=('GPL2')
+depends=('libxslt' 'mbedtls')
+optdepends=('php-fpm: PHP fastcgi'
+'php: letsencrypt')
+makedepends=('cmake')
+backup=(
+'etc/hiawatha/hiawatha.conf'
+'etc/hiawatha/cgi-wrapper.conf'
+'etc/hiawatha/mimetype.conf'
+)
+
+source=(
+"https://www.hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz"; 
+'hiawatha.conf.sample'
+'hiawatha.service'
+'letsencrypt-renew.service'
+'letsencrypt-renew.timer'
+)
+sha256sums=('363e99d84a85dafbb74bcc30b3e30286053ec2abbc7afe08cd87193611735f74'
+'4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7'
+'fb789b12bb6246237b15a9244f58317abdd53e5ca4eb55880e40a498b2237155'
+'85190e186efc9092752ffc8fa603593e27afa9e8a6abf974fbc0e62fe08eb882'
+'a1d5371e886bdd697c9d040125aa5b117d6efe36bb6ee77b57004d893f2bc410')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i 's/www-data/http/g' extra/logrotate.in
+
+  # "Mbed TLS 2.7.0 maintains source code compatibility with previous versions 
of Mbed TLS"
+  # Sure...
+  sed -i 's/MBEDTLS_DHM_RFC5114_MODP_2048_P/MBEDTLS_DHM_RFC5114_MODP_P/' 
src/tls.c
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  mkdir -p build
+  cd build
+
+  cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
+-DCMAKE_INSTALL_BINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
+-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
+-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
+-DCONFIG_DIR="/etc/hiawatha" \
+-DLOG_DIR="/var/log/hiawatha" \
+-DPID_DIR="/run" \
+-DENABLE_TLS=ON \
+-DUSE_SYSTEM_MBEDTLS=ON \
+-DENABLE_MONITOR=ON \
+-DWEBROOT_DIR="/srv/http/hiawatha" \
+-DWORK_DIR="/var/lib/hiawatha"
+
+  make
+
+  # Features enabled by default
+  # -DENABLE_CACHE
+  # -DENABLE_IPV6
+  # -DENABLE_RPROXY
+  # -DENABLE_TOOLKIT
+  # -DENABLE_XSLT
+
+  # Features disabled by default
+  # -DENABLE_DEBUG
+  # -DENABLE_TOMAHAWK  
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+  make DESTDIR="$pkgdir/" install
+ 
+  rmdir "$pkgdir/run"
+  rm "$pkgdir/srv/http/hiawatha/index.html"
+  rmdir -p --ignore-fail-on-non-empty "$pkgdir/srv/http/hiawatha"
+ 
+  # Update stock hiawatha.conf
+  sed -e 's|#ServerId = www-data|ServerId = http|' \
+  -e 's|/var/www/|/srv/http/|g' \
+  -e 's|//|/|g' \
+  -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
+  -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
+  -e 's|#  Extension = php|&\n#   SessionTimeout = 30|g' \
+  -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
+  -i "$pkgdir/etc/hiawatha/hiawatha.conf"
+  
+  install -Dm644 logrotate.d/hiawatha "$pkgdir/etc/logrotate.d/hiawatha"
+  install -Dm644 "$srcdir/hiawatha.service" 
"$pkgdir/usr/lib/systemd/system/hiawatha.service"
+  install -Dm644 "$srcdir/hiawatha.conf.sample" "$pkgdir/etc/hiawatha/"
+
+  mkdir -p "$pkgdir/usr/share/hiawatha/"
+  cd "$srcdir/$pkgname-$pkgver/extra/"
+  cp "$srcdir/letsencrypt-renew."* letsencrypt/
+  tar -caf "$pkgdir/usr/share/hiawatha/letsencrypt.tar.gz" letsencrypt/*
+}
+

Copied: hiawatha/r