Skip to content

Commit

Permalink
Create debian/Ubuntu package.
Browse files Browse the repository at this point in the history
  • Loading branch information
roadrunner2 committed Oct 31, 2014
1 parent 732ae5a commit 59121de
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions debian/apache2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod .libs/mod_proxy_protocol.so
mod debian/proxy_protocol.load
mod debian/proxy_protocol.conf
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod-proxy-protocol (0.1-1) trusty; urgency=low

* Initial release

-- Roadrunner2 <[email protected]> Thu, 30 Oct 2014 16:46:21 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: mod-proxy-protocol
Section: web
Priority: optional
Maintainer: Roadrunner2 <[email protected]>
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.
13 changes: 13 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions debian/dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/apache2/modules
5 changes: 5 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.md
mod_proxy_protocol.xml
mod_proxy_protocol.xml.meta
mod_proxy_protocol.html
debian/README.Debian
3 changes: 3 additions & 0 deletions debian/proxy_protocol.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<IfModule mod_proxy_protocol.c>
#ProxyProtocol On
</IfModule>
1 change: 1 addition & 0 deletions debian/proxy_protocol.load
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LoadModule proxy_protocol_module /usr/lib/apache2/modules/mod_proxy_protocol.so
42 changes: 42 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0

0 comments on commit 59121de

Please sign in to comment.