Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod-authn-linotp (0.0.1) unstable; urgency=low

* initial debian package.

-- Andreas Gabriel <gabriel@hrz.uni-marburg.de> Tue, 06 May 2014 21:56:44 +0200

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: mod-authn-linotp
Section: httpd
Priority: optional
Maintainer: Andreas Gabriel <gabriel@hrz.uni-marburg.de>
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 5.0.0), dpatch, libtool, autoconf, automake, apache2-threaded-dev (>= 2.0.50-10), libcurl4-openssl-dev

Package: libapache2-mod-authn-linotp
Architecture: any
Depends: ${shlibs:Depends}, apache2.2-common (>= 2.2.3-3), libcurl3
Description: Apache module for authenticating with LinOTP
This apache module can be used to authenticate users against LinOTP
(http://linotp.org). This auth module only works with basic
authentication. It uses a cookie to cache the authenticated user.
The authentication of the first request is done against the LinOTP
server. The consecutive requests are handled by the cookie.
2 changes: 2 additions & 0 deletions debian/libapache2-mod-authn-linotp.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/apache2/modules
etc/apache2/mods-available
1 change: 1 addition & 0 deletions debian/libapache2-mod-authn-linotp.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README
13 changes: 13 additions & 0 deletions debian/libapache2-mod-authn-linotp.prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

set -e

if [ "$1" = "remove" -o "$1" = "purge" ]; then
if [ -e /etc/apache2/apache2.conf -a -x /usr/sbin/a2dismod ]; then
/usr/sbin/a2dismod authn_linotp || true
fi
fi

#DEBHELPER#

exit 0
76 changes: 76 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#!/usr/bin/make -f

# Copyright 2002-2005 Matthew Palmer <mpalmer@debian.org>
# Copyright 2008 Joey Schulze <joey@infodrom.org>
# Copyright 2014 Andreas gabriel <gabriel@hrz.uni-marburg.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 dated June, 1991.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA


APACHE2=$(CURDIR)/debian/libapache2-mod-authn-linotp

include /usr/share/dpatch/dpatch.make

configure: configure-stamp
configure-stamp:
cat COPYING > debian/copyright
dh_testdir
libtoolize
aclocal
automake -a
autoconf
./configure
touch configure-stamp

clean:
dh_testdir
dh_testroot
dh_clean -A
test ! -f Makefile || $(MAKE) distclean
rm -f config.status config.log config.h debian/copyright
rm -f configure-stamp build-stamp Makefile.in aclocal.m4 configure
rm -Rf scripts

build-indep: build
build-arch: build
build: build-stamp
build-stamp: configure
dh_testdir
$(MAKE)
touch build-stamp

install: build
dh_testdir
dh_testroot
dh_installdirs -A
cp .libs/mod_authn_linotp.so .
install -m 644 mod_authn_linotp.so $(APACHE2)/usr/lib/apache2/modules/mod_authn_linotp.so
install -m 644 authn_linotp.load $(APACHE2)/etc/apache2/mods-available

binary: binary-arch binary-indep
binary-indep: install
binary-arch: install
dh_testdir
dh_testroot
dh_installdocs -A
dh_installchangelogs -A
dh_strip -A
dh_compress -A
dh_installdeb -A
dh_shlibdeps -A
dh_gencontrol -A
dh_md5sums -A
dh_builddeb -A

.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install