Commit 24359fa6 authored by Carlo Landmeter's avatar Carlo Landmeter

main/darkhttpd: Add svg support to default mimetypes

parent b16cee66
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
......@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment