From 59121de4f4637c2a6b966fcfdfe2d86cdd988e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20Tschal=C3=A4r?= Date: Thu, 30 Oct 2014 17:18:30 -0700 Subject: [PATCH] Create debian/Ubuntu package. --- debian/README.Debian | 5 +++++ debian/apache2 | 3 +++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 17 +++++++++++++++ debian/copyright | 13 ++++++++++++ debian/dirs | 1 + debian/docs | 5 +++++ debian/proxy_protocol.conf | 3 +++ debian/proxy_protocol.load | 1 + debian/rules | 42 ++++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + 12 files changed, 97 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/apache2 create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/proxy_protocol.conf create mode 100644 debian/proxy_protocol.load create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..8656717 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,5 @@ +## To activate mod_proxy_protocol, do: + +a2enmod proxy_protocol && /etc/init.d/apache2 force-reload + +## And then enable ProxyProtocol for the desired hosts. diff --git a/debian/apache2 b/debian/apache2 new file mode 100644 index 0000000..312ccd2 --- /dev/null +++ b/debian/apache2 @@ -0,0 +1,3 @@ +mod .libs/mod_proxy_protocol.so +mod debian/proxy_protocol.load +mod debian/proxy_protocol.conf diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a01fa61 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mod-proxy-protocol (0.1-1) trusty; urgency=low + + * Initial release + + -- Roadrunner2 Thu, 30 Oct 2014 16:46:21 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a0cdc0a --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: mod-proxy-protocol +Section: web +Priority: optional +Maintainer: Roadrunner2 +Build-Depends: debhelper (>= 7.0.50~), apache2-dev (>= 2.4.0), xsltproc +Standards-Version: 3.8.4 +Homepage: https://github.com/roadrunner2/mod-proxy-protocol + +Package: libapache2-mod-proxy-protocol +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, apache2-api-20120211, apache2 (>= 2.4.0) +Description: Apache module for proxy protocol + The proxy protocol is a way for upstream proxies and load-balancers to + for the ip-address of the client to the server. This package contains + an Apache module that implements the server-side of this protocol, thereby + allowing other modules to see and use actual client's ip-address instead + of that of the upstream proxy/load-balancer. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ad475f6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +Copyright 2014 Cloudzilla Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..8e8d38b --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/lib/apache2/modules diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..931c46d --- /dev/null +++ b/debian/docs @@ -0,0 +1,5 @@ +README.md +mod_proxy_protocol.xml +mod_proxy_protocol.xml.meta +mod_proxy_protocol.html +debian/README.Debian diff --git a/debian/proxy_protocol.conf b/debian/proxy_protocol.conf new file mode 100644 index 0000000..f010951 --- /dev/null +++ b/debian/proxy_protocol.conf @@ -0,0 +1,3 @@ + + #ProxyProtocol On + diff --git a/debian/proxy_protocol.load b/debian/proxy_protocol.load new file mode 100644 index 0000000..e1069f0 --- /dev/null +++ b/debian/proxy_protocol.load @@ -0,0 +1 @@ +LoadModule proxy_protocol_module /usr/lib/apache2/modules/mod_proxy_protocol.so diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..48c2a82 --- /dev/null +++ b/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +# debian rules file for mod_proxy_protocol + +build: + dh_testdir + make all docs + +clean: + dh_testdir + dh_testroot + make clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + dh_install + dh_apache2 -e + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-independent files here. +binary-indep: build install + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0