aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkhttpd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-05-14 09:10:39 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-05-14 09:11:19 +0000
commit24359fa631f9d214ca8b9818b9d30090295330d3 (patch)
tree741040d63fa4b04c3bfa4a3c4dfc02bbf94d99a7 /main/darkhttpd
parentb16cee6673737436d563ef0c895d5dceb32fec4e (diff)
downloadaports-24359fa631f9d214ca8b9818b9d30090295330d3.tar.bz2
aports-24359fa631f9d214ca8b9818b9d30090295330d3.tar.xz
main/darkhttpd: Add svg support to default mimetypes
Diffstat (limited to 'main/darkhttpd')
-rw-r--r--main/darkhttpd/0001-Add-svg-support-to-default-mimetypes.patch24
-rw-r--r--main/darkhttpd/APKBUILD12
2 files changed, 33 insertions, 3 deletions
diff --git a/main/darkhttpd/0001-Add-svg-support-to-default-mimetypes.patch b/main/darkhttpd/0001-Add-svg-support-to-default-mimetypes.patch
new file mode 100644
index 0000000000..b81c7e4247
--- /dev/null
+++ b/main/darkhttpd/0001-Add-svg-support-to-default-mimetypes.patch
@@ -0,0 +1,24 @@
+From c5412405c3a697d4bb8ecae96442a9d1c050983a Mon Sep 17 00:00:00 2001
+From: Carlo Landmeter <clandmeter@alpinelinux.org>
+Date: Mon, 14 May 2018 09:01:32 +0000
+Subject: [PATCH] Add svg support to default mimetypes
+
+---
+ darkhttpd.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/darkhttpd.c b/darkhttpd.c
+index 1c5eff5..6b81bf8 100644
+--- a/darkhttpd.c
++++ b/darkhttpd.c
+@@ -317,6 +317,7 @@ static const char *default_extension_map[] = {
+ "image/gif" " gif",
+ "image/jpeg" " jpeg jpe jpg",
+ "image/png" " png",
++ "image/svg+xml" " svg svgz",
+ "text/css" " css",
+ "text/html" " html htm",
+ "text/javascript" " js",
+--
+2.17.0
+
diff --git a/main/darkhttpd/APKBUILD b/main/darkhttpd/APKBUILD
index 8e060f7724..f488b2dcb7 100644
--- a/main/darkhttpd/APKBUILD
+++ b/main/darkhttpd/APKBUILD
@@ -2,15 +2,20 @@
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=darkhttpd
pkgver=1.12
-pkgrel=1
+pkgrel=2
pkgdesc="A simple, single-threaded, static content webserver"
url="https://unix4lyfe.org/darkhttpd/"
arch="all"
license="BSD"
+options="!check" # no tests
install="$pkgname.pre-install"
+subpackages="$pkgname-openrc"
source="https://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2
darkhttpd.logrotate
- $pkgname.initd"
+ darkhttpd.initd
+
+ 0001-Add-svg-support-to-default-mimetypes.patch
+ "
builddir="$srcdir/$pkgname-$pkgver"
build() {
@@ -30,4 +35,5 @@ package() {
sha512sums="e977ba0401b24a122733f8d5084fcdea4a3e2664dd5c127b26b822bfdbe458124104b1d5c673a8689af988b5713ce2e902945238b815b82104f286f577eea8bd darkhttpd-1.12.tar.bz2
bb95277a9f8f227aeec8bfe6ef54f52a2f034ed0dd25258b996c17f9ce9dd4ad220366b10490246b25bb6b18ccde7bda0d52eeb88667941cf2fdab15c940dbbc darkhttpd.logrotate
-17c22c67e3f2e5bef9873c9fc8f1551cc7769dd0186be3f7563e1f908617c1c8dbbddae298246357133ae285b6d0e24c28f4e6defcb47c94634cf666690fcb52 darkhttpd.initd"
+17c22c67e3f2e5bef9873c9fc8f1551cc7769dd0186be3f7563e1f908617c1c8dbbddae298246357133ae285b6d0e24c28f4e6defcb47c94634cf666690fcb52 darkhttpd.initd
+71a35551e2e34e8ced60e2c836c7d22f9b543b79fda2e273b41eaed7aefc22895d9c0b2e6f86dc7d0f916ed244b9ea42e2236f796eab07e7e0ba83faa4ba5762 0001-Add-svg-support-to-default-mimetypes.patch"