diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..db054bf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +mod-authn-linotp (0.0.1) unstable; urgency=low + + * initial debian package. + + -- Andreas Gabriel Tue, 06 May 2014 21:56:44 +0200 + 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..53b6f8c --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: mod-authn-linotp +Section: httpd +Priority: optional +Maintainer: Andreas Gabriel +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. diff --git a/debian/libapache2-mod-authn-linotp.dirs b/debian/libapache2-mod-authn-linotp.dirs new file mode 100644 index 0000000..ab4fbe8 --- /dev/null +++ b/debian/libapache2-mod-authn-linotp.dirs @@ -0,0 +1,2 @@ +usr/lib/apache2/modules +etc/apache2/mods-available diff --git a/debian/libapache2-mod-authn-linotp.docs b/debian/libapache2-mod-authn-linotp.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/libapache2-mod-authn-linotp.docs @@ -0,0 +1 @@ +README diff --git a/debian/libapache2-mod-authn-linotp.prerm b/debian/libapache2-mod-authn-linotp.prerm new file mode 100644 index 0000000..cb0d848 --- /dev/null +++ b/debian/libapache2-mod-authn-linotp.prerm @@ -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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0dcdcdd --- /dev/null +++ b/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f + +# Copyright 2002-2005 Matthew Palmer +# Copyright 2008 Joey Schulze +# Copyright 2014 Andreas gabriel +# +# 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