summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-10-12 22:04:05 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-10-12 22:04:05 +0300
commit29343dcd63e10ef52e075f04547ecdcd3ac79d9e (patch)
tree7f0a75370b20c9ce44742bac6c2c2bf95db7871b
parent4660a7618cab0d15cc613fa9a3c04c0dfb921a02 (diff)
mod_rpaf for apache added
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/apache-mod/mod_rpaf/mod_rpaf-scm.exheres-06
-rw-r--r--packages/apache-mod/mod_rpaf/mod_rpaf.exlib29
3 files changed, 36 insertions, 0 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index e8b9437..7e62d6e 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -1,3 +1,4 @@
+apache-mod
app-arch
app-backup
app-misc
diff --git a/packages/apache-mod/mod_rpaf/mod_rpaf-scm.exheres-0 b/packages/apache-mod/mod_rpaf/mod_rpaf-scm.exheres-0
new file mode 100644
index 0000000..b01fdb0
--- /dev/null
+++ b/packages/apache-mod/mod_rpaf/mod_rpaf-scm.exheres-0
@@ -0,0 +1,6 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require mod_rpaf
+
+PLATFORMS="~amd64 ~x86"
diff --git a/packages/apache-mod/mod_rpaf/mod_rpaf.exlib b/packages/apache-mod/mod_rpaf/mod_rpaf.exlib
new file mode 100644
index 0000000..37503d6
--- /dev/null
+++ b/packages/apache-mod/mod_rpaf/mod_rpaf.exlib
@@ -0,0 +1,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} force_git_clone=true ]
+export_exlib_phases src_install
+
+SCM_BRANCH="stable"
+
+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
+}