Commit 62dd0924 authored by Helmut Grohne's avatar Helmut Grohne Committed by Helmut Grohne

use upstream's create-mime.conf.pl

parent 8a7a8c0a
......@@ -8,6 +8,7 @@ lighttpd (1.4.52-2) UNRELEASED; urgency=medium
the ones from Files-Excluded.
* Update Standards Version to 4.2.1.
+ Document that binary-targets need root for chowning to www-data.
* Use upstream's create-mime.conf.pl. (Closes: #904741)
-- Helmut Grohne <helmut.grohne@intenta.de> Mon, 10 Dec 2018 10:04:56 +0100
......
#!/usr/bin/perl -w
use strict;
open MIMETYPES, "/etc/mime.types" or exit;
print "mimetype.assign = (\n";
my %extensions;
while(<MIMETYPES>) {
chomp;
s/\#.*//;
next if /^\w*$/;
if(/^([a-z0-9\/+-.]+)\s+((?:[a-z0-9.+-]+[ ]?)+)$/) {
foreach(split / /, $2) {
# mime.types can have same extension for different
# mime types
next if $extensions{$_};
$extensions{$_} = 1;
print "\".$_\" => \"$1\",\n";
}
}
}
print ")\n";
......@@ -23,5 +23,5 @@ compress.filetype = ( "application/javascript", "text/css", "text/html
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
......@@ -38,7 +38,7 @@ debian/tmp/usr/lib/lighttpd/mod_vhostdb.so
debian/tmp/usr/lib/lighttpd/mod_wstunnel.so
debian/lighttpd.conf /etc/lighttpd
debian/conf-available/* /etc/lighttpd/conf-available
debian/create-mime.assign.pl /usr/share/lighttpd/
doc/scripts/create-mime.conf.pl /usr/share/lighttpd/
debian/include-conf-enabled.pl /usr/share/lighttpd/
debian/use-ipv6.pl /usr/share/lighttpd/
debian/lighty-enable-mod /usr/sbin/
......
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