summaryrefslogtreecommitdiff
path: root/data/lighttpd/.beer
blob: a5ded175a6834c84b8c34fa7c10b815102750f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
    "name": "Lighttpd",
    "description": "Small memory footprint, flexible web-server",
    "url": "https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.53.tar.xz",
    "mirror": null,
    "homepage": "https://www.lighttpd.net/",
    "depends": [
        {
            "depend": "autoconf",
            "build-depend": true
        },
        {
            "depend": "automake",
            "build-depend": true
        },
        {
            "depend": "libtool",
            "build-depend": true
        },
        {
            "depend": "pkg-config",
            "build-depend": true
        },
        {
            "depend": "openldap",
            "build-depend": false
        },
        {
            "depend": "openssl",
            "build-depend": false
        },
        {
            "depend": "pcre",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "args = %W[",
        "--disable-dependency-tracking",
        "--disable-silent-rules",
        "--prefix=#{prefix}",
        "--sbindir=#{bin}",
        "--with-openssl",
        "--with-ldap",
        "--with-zlib",
        "--with-bzip2",
        "]",
        "system \"./autogen.sh\"",
        "system \"./configure\", *args",
        "system \"make\", \"install\"",
        "unless File.exist? config_path",
        "config_path.install \"doc/config/lighttpd.conf\", \"doc/config/modules.conf\"",
        "(config_path/\"conf.d/\").install Dir[\"doc/config/conf.d/*.conf\"]",
        "inreplace config_path+\"lighttpd.conf\" do |s|",
        "s.sub!(/^var\\.log_root\\s*=\\s*\".+\"$/, \"var.log_root    = \\\"#{log_path}\\\"\")",
        "s.sub!(/^var\\.server_root\\s*=\\s*\".+\"$/, \"var.server_root = \\\"#{www_path}\\\"\")",
        "s.sub!(/^var\\.state_dir\\s*=\\s*\".+\"$/, \"var.state_dir   = \\\"#{run_path}\\\"\")",
        "s.sub!(/^var\\.home_dir\\s*=\\s*\".+\"$/, \"var.home_dir    = \\\"#{run_path}\\\"\")",
        "s.sub!(/^var\\.conf_dir\\s*=\\s*\".+\"$/, \"var.conf_dir    = \\\"#{config_path}\\\"\")",
        "s.sub!(/^server\\.port\\s*=\\s*80$/, \"server.port = 8080\")",
        "s.sub!(%r{^server\\.document-root\\s*=\\s*server_root \\+ \"\\/htdocs\"$}, \"server.document-root = server_root\")",
        "s.sub!(/^server.use-ipv6\\s*=\\s*\"enable\"$/, 'server.use-ipv6 = \"disable\"')",
        "s.sub!(/^server\\.username\\s*=\\s*\".+\"$/, 'server.username  = \"_www\"')",
        "s.sub!(/^server\\.groupname\\s*=\\s*\".+\"$/, 'server.groupname = \"_www\"')",
        "s.sub!(/^server\\.event-handler\\s*=\\s*\"linux-sysepoll\"$/, 'server.event-handler = \"select\"')",
        "s.sub!(/^server\\.network-backend\\s*=\\s*\"sendfile\"$/, 'server.network-backend = \"writev\"')",
        "s.sub!(/^server\\.max-connections = .+$/, \"server.max-connections = \" + (MAX_FDS / 2).to_s)"
    ],
    "version": "1.4.53",
    "file": "lighttpd.rb"
}