summaryrefslogtreecommitdiff
path: root/packages/apache-mod/mod_rpaf/mod_rpaf.exlib
blob: 513bfb57e64655ca43d463bd2572afe8b98a456e (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
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>


require github [ user=gnif tag=v${PV} branch=stable ]
export_exlib_phases src_install

SLOT="0"

SUMMARY="reverse proxy add forward"
DESCRIPTION="
Sets REMOTE_ADDR, HTTPS, and HTTP_PORT to the values provided by an upstream proxy.
Sets remoteip-proxy-ip-list field in r->notes table to list of proxy intermediaries.
"

LICENCES="Apache-2.0"

MYOPTIONS=""
DEPENDENCIES="
    build+run:
        www-servers/apache[>=2]
"

mod_rpaf_src_install() {
    edo mkdir -p "${IMAGE}"/usr/$(exhost --target)/libexec/apache2/modules
    edo cp "${WORK}"/.libs/mod_rpaf.so "${IMAGE}"/usr/$(exhost --target)/libexec/apache2/modules
    emagicdocs
}