From 6269a8a886cc696ac8a359dfead1221edc5d3fa0 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 May 2011 14:32:06 +0000 Subject: [PATCH] [debian] remove sarge packaging --- debian.sarge/.cvsignore | 2 - debian.sarge/apache2.conf | 6 -- debian.sarge/authentic.cron.daily | 10 --- debian.sarge/authentic.init | 94 ----------------------------- debian.sarge/changelog | 31 ---------- debian.sarge/control | 18 ------ debian.sarge/copyright | 26 -------- debian.sarge/dirs | 3 - debian.sarge/docs | 1 - debian.sarge/postinst | 54 ----------------- debian.sarge/prerm | 43 ------------- debian.sarge/rules | 76 ----------------------- debian.sarge/vhost-apache-authentic | 6 -- 13 files changed, 370 deletions(-) delete mode 100644 debian.sarge/.cvsignore delete mode 100644 debian.sarge/apache2.conf delete mode 100755 debian.sarge/authentic.cron.daily delete mode 100755 debian.sarge/authentic.init delete mode 100644 debian.sarge/changelog delete mode 100644 debian.sarge/control delete mode 100644 debian.sarge/copyright delete mode 100644 debian.sarge/dirs delete mode 100644 debian.sarge/docs delete mode 100644 debian.sarge/postinst delete mode 100644 debian.sarge/prerm delete mode 100755 debian.sarge/rules delete mode 100644 debian.sarge/vhost-apache-authentic diff --git a/debian.sarge/.cvsignore b/debian.sarge/.cvsignore deleted file mode 100644 index 1afb86b..0000000 --- a/debian.sarge/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -authentic -files diff --git a/debian.sarge/apache2.conf b/debian.sarge/apache2.conf deleted file mode 100644 index 9b976ba..0000000 --- a/debian.sarge/apache2.conf +++ /dev/null @@ -1,6 +0,0 @@ -DocumentRoot /usr/share/authentic/web/ - -SCGIMount / 127.0.0.1:3002 - - SCGIHandler off - diff --git a/debian.sarge/authentic.cron.daily b/debian.sarge/authentic.cron.daily deleted file mode 100755 index d234f37..0000000 --- a/debian.sarge/authentic.cron.daily +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh - -NAME=authentic -if [ -r /etc/default/$NAME ] -then - . /etc/default/$NAME -fi - -/usr/sbin/authenticctl.py clean_sessions - diff --git a/debian.sarge/authentic.init b/debian.sarge/authentic.init deleted file mode 100755 index e80467b..0000000 --- a/debian.sarge/authentic.init +++ /dev/null @@ -1,94 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: authentic -# Required-Start: $local_fs $network -# Required-Stop: $local_fs $network -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start Authentic Liberty Alliance identity provider -# Description: Start Authentic Liberty Alliance identity provider -### END INIT INFO - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DESC="Authentic Identity Server" -NAME=authentic -DAEMON=/usr/sbin/authenticctl.py -PIDFILE=/var/run/$NAME.pid -SCRIPTNAME=/etc/init.d/$NAME - -# Gracefully exit if the package has been removed. -test -x $DAEMON || exit 0 - -# Read config file if it is present. -if [ -r /etc/default/$NAME ] -then - . /etc/default/$NAME -fi - -# -# Function that starts the daemon/service. -# -d_start() { - start-stop-daemon --start --quiet --pidfile $PIDFILE \ - --chuid www-data:www-data --make-pidfile --background --exec $DAEMON -- start $OPTIONS -} - -# -# Function that stops the daemon/service. -# -d_stop() { - start-stop-daemon --stop --quiet --pidfile $PIDFILE -} - -# -# Function that sends a SIGHUP to the daemon/service. -# -d_reload() { - start-stop-daemon --stop --quiet --pidfile $PIDFILE \ - --make-pidfile --background --signal 1 -} - -case "$1" in - start) - echo -n "Starting $DESC: $NAME" - d_start - echo "." - ;; - stop) - echo -n "Stopping $DESC: $NAME" - d_stop - echo "." - ;; - #reload) - # - # If the daemon can reload its configuration without - # restarting (for example, when it is sent a SIGHUP), - # then implement that here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this an "exit 0". - # - # echo -n "Reloading $DESC configuration..." - # d_reload - # echo "done." - #;; - restart|force-reload) - # - # If the "reload" option is implemented, move the "force-reload" - # option to the "reload" entry above. If not, "force-reload" is - # just the same as "restart". - # - echo -n "Restarting $DESC: $NAME" - d_stop - sleep 1 - d_start - echo "." - ;; - *) - # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/debian.sarge/changelog b/debian.sarge/changelog deleted file mode 100644 index 77a108b..0000000 --- a/debian.sarge/changelog +++ /dev/null @@ -1,31 +0,0 @@ -authentic (0.7.0-0) INVALID; urgency=low - - * New upstream. - - -- Frederic Peters Thu, 19 Oct 2006 16:11:41 +0200 - -authentic (0.6.0-0) INVALID; urgency=low - - * New upstream. - - -- Frederic Peters Mon, 20 Mar 2006 12:07:47 +0100 - -authentic (0.5.0-0) INVALID; urgency=low - - * New upstream. - - -- Frederic Peters Fri, 30 Sep 2005 08:52:21 +0200 - -authentic (0.2.0-0) INVALID; urgency=low - - * New upstream. - * Use SCGI instead of mod_python - - -- Frederic Peters Wed, 4 May 2005 16:19:44 +0200 - -authentic (0.1.0-0) INVALID; urgency=low - - * Initial package. - - -- Frederic Peters Sat, 23 Apr 2005 20:48:19 +0200 - diff --git a/debian.sarge/control b/debian.sarge/control deleted file mode 100644 index 8fed7ba..0000000 --- a/debian.sarge/control +++ /dev/null @@ -1,18 +0,0 @@ -Source: authentic -Section: web -Priority: optional -Maintainer: Frederic Peters -Build-Depends-Indep: debhelper (>> 4.0.0), python2.3, gettext -Standards-Version: 3.6.6.0 - -Package: authentic -Architecture: all -Depends: python, python2.3, python2.3-lasso (>= 0.6.1), quixote (>= 2.0), libapache2-mod-scgi | libapache-mod-scgi, python2.3-scgi -Description: Liberty Alliance Identity Server - Authentic is a Liberty-compliant identity provider aiming to address a broad - range of needs, from simple to complex setups. Its Liberty compliance relies - on Lasso, a free (GNU GPL) implementation of the Liberty Alliance - specifications. - . - It is a quixote application and is commonly runned inside Apache web server. - diff --git a/debian.sarge/copyright b/debian.sarge/copyright deleted file mode 100644 index adb325d..0000000 --- a/debian.sarge/copyright +++ /dev/null @@ -1,26 +0,0 @@ -This package was debianized by Frederic Peters on -Wed, 20 Apr 2005 11:10:00 +0200. - -Upstream Author: Frederic Peters - -Copyright (c) 2005 Entr'ouvert; -copyright (c) 2003-2005 dotclear for the graphics. - -License is GNU GPL v2 or later plus OpenSSL exception clause. - -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; either version 2 of the License, or (at your option) any later -version. - -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., 51 Franklin -St, Fifth Floor, Boston, MA 02110-1301, USA. - -On Debian GNU/Linux systems, the complete text of the GNU General Public -License can be found in `/usr/share/common-licenses/GPL'. - diff --git a/debian.sarge/dirs b/debian.sarge/dirs deleted file mode 100644 index 34ffcdb..0000000 --- a/debian.sarge/dirs +++ /dev/null @@ -1,3 +0,0 @@ -etc/apache2/sites-available -usr/sbin -var/lib/authentic diff --git a/debian.sarge/docs b/debian.sarge/docs deleted file mode 100644 index e845566..0000000 --- a/debian.sarge/docs +++ /dev/null @@ -1 +0,0 @@ -README diff --git a/debian.sarge/postinst b/debian.sarge/postinst deleted file mode 100644 index fcab7c3..0000000 --- a/debian.sarge/postinst +++ /dev/null @@ -1,54 +0,0 @@ -#! /bin/sh -# postinst script for authentic -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - -PACKAGE=authentic -VERSION=2.3 -LIB="/usr/lib/python$VERSION" -DIRLIST="$LIB/site-packages/authentic" - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - for i in $DIRLIST ; do - /usr/bin/python$VERSION -O $LIB/compileall.py -q $i - /usr/bin/python$VERSION $LIB/compileall.py -q $i - done - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - - - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian.sarge/prerm b/debian.sarge/prerm deleted file mode 100644 index 6bdbfee..0000000 --- a/debian.sarge/prerm +++ /dev/null @@ -1,43 +0,0 @@ -#! /bin/sh -# prerm script for authentic -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -PACKAGE=authentic - -case "$1" in - remove|upgrade|deconfigure) - dpkg --listfiles $PACKAGE | - awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | - xargs rm -f >&2 - ;; - failed-upgrade) - ;; - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian.sarge/rules b/debian.sarge/rules deleted file mode 100755 index f682ccf..0000000 --- a/debian.sarge/rules +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/make -f -# GNU copyright 1997 to 1999 by Joey Hess. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# This is the debhelper compatibility version to use. -export DH_COMPAT=4 - - -PYTHON=/usr/bin/python2.3 - -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) - CFLAGS += -g -endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s -endif - -build: build-stamp - -build-stamp: - dh_testdir - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - cd doc && make clean - cd po && rm -f *.mo - python setup.py clean - rm -rf build - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - $(PYTHON) setup.py install --prefix=$(CURDIR)/debian/authentic/usr --no-compile - mv $(CURDIR)/debian/authentic/usr/bin/* $(CURDIR)/debian/authentic/usr/sbin/ - rmdir $(CURDIR)/debian/authentic/usr/bin - cd po && make install prefix=$(CURDIR)/debian/authentic/ - cp debian/vhost-apache-authentic $(CURDIR)/debian/authentic/etc/apache2/sites-available/authentic - cp debian/apache2.conf $(CURDIR)/debian/authentic/usr/share/authentic/ - chown www-data.www-data $(CURDIR)/debian/authentic/var/lib/authentic/ - chmod 0770 $(CURDIR)/debian/authentic/var/lib/authentic/ - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installcron - dh_installdocs - dh_installchangelogs - dh_installinit - dh_link - dh_strip - dh_compress - dh_fixperms -X /var/lib/authentic - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian.sarge/vhost-apache-authentic b/debian.sarge/vhost-apache-authentic deleted file mode 100644 index affbc0b..0000000 --- a/debian.sarge/vhost-apache-authentic +++ /dev/null @@ -1,6 +0,0 @@ - - ServerName authentic.example.com - include /usr/share/authentic/apache2.conf - CustomLog /var/log/apache2/authentic-access.log combined - ErrorLog /var/log/apache2/authentic-error.log -