Initial debian packaging
This commit is contained in:
parent
7b5f026ea1
commit
4aef249607
|
@ -0,0 +1,17 @@
|
|||
Setting up an Authentic server
|
||||
==============================
|
||||
|
||||
On installation the package will have created an empty database, you should add
|
||||
a super user, using the following command::
|
||||
|
||||
su authentic -p -c "python /usr/shareyshared/authentic/manage.py createsuperuser"
|
||||
|
||||
The package doesn't ship a startup script, that would start Authentic
|
||||
automatically, that is because running an identity server on the builtin HTTP
|
||||
server (not HTTPS!) is definitely not a good idea.
|
||||
|
||||
Even though, if you want a quick look, before configuring properly a real HTTP
|
||||
server, you can use this command::
|
||||
|
||||
su authentic -p -c "python /usr/share/pyshared/authentic/manage.py runserver"
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
This package uses quilt to patch the upstream source.
|
||||
|
||||
You can find some info on how to generate the patched source, add a new
|
||||
modification, and remove an existing modification on:
|
||||
/usr/share/doc/quilt/README.source
|
||||
|
|
@ -0,0 +1 @@
|
|||
etc/authentic
|
|
@ -0,0 +1,64 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Postinst script for authentic
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
AUTHENTIC_USER=authentic
|
||||
AUTHENTIC_GROUP=authentic
|
||||
AUTHENTIC_HOME=/var/lib/authentic
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if ! getent group $AUTHENTIC_GROUP > /dev/null 2>&1; then
|
||||
echo -n "Adding group $AUTHENTIC_GROUP.."
|
||||
addgroup --quiet --system $AUTHENTIC_GROUP
|
||||
echo "..done"
|
||||
fi
|
||||
if ! getent passwd $AUTHENTIC_USER > /dev/null 2>&1; then
|
||||
echo -n "Adding user $AUTHENTIC_USER.."
|
||||
adduser --quiet --system --gecos "Pootle daemon" \
|
||||
--ingroup $AUTHENTIC_GROUP \
|
||||
--no-create-home --home $AUTHENTIC_HOME \
|
||||
$AUTHENTIC_USER
|
||||
echo "..done"
|
||||
fi
|
||||
|
||||
mkdir -p /var/lib/authentic
|
||||
chmod 755 /var/lib/authentic
|
||||
chown $AUTHENTIC_USER:$AUTHENTIC_GROUP /var/lib/authentic
|
||||
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -f /var/lib/pycentral/authentic.pkgremove
|
||||
if which pycentral >/dev/null 2>&1; then
|
||||
pycentral pkginstall authentic
|
||||
if grep -qs '^authentic$' /var/lib/pycentral/delayed-pkgs; then
|
||||
sed -i '/^authentic$/d' /var/lib/pycentral/delayed-pkgs
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if [ -z "$2" ]; then
|
||||
su authentic -p -c "django-admin syncdb --settings authentic.settings --noinput"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,5 @@
|
|||
authentic (1.9.0-0) unstable; urgency=low
|
||||
|
||||
* Initial packaging.
|
||||
|
||||
-- Frederic Peters <fpeters@debian.org> Tue, 01 Jun 2010 14:28:56 +0200
|
|
@ -0,0 +1 @@
|
|||
7
|
|
@ -0,0 +1,22 @@
|
|||
Source: authentic
|
||||
Section: python
|
||||
Priority: optional
|
||||
Maintainer: Frederic Peters <fpeters@debian.org>
|
||||
Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6)
|
||||
Build-Depends: debhelper (>= 7.0.50~), quilt (>= 0.40), python-setuptools
|
||||
XS-Python-Version: current, >= 2.3
|
||||
Standards-Version: 3.8.3
|
||||
Homepage: http://authentic.labs.libre-entreprise.org
|
||||
|
||||
Package: authentic
|
||||
Architecture: all
|
||||
Pre-Depends: python-django
|
||||
Depends: ${misc:Depends}, ${python:Depends}, python-django-registration
|
||||
XB-Python-Version: ${python:Versions}
|
||||
Description: Versatile identity server
|
||||
Authentic is a versatile identity provider aiming to address a broad
|
||||
range of needs, from simple to complex setups; it has support for many
|
||||
protocols and can bridge between them.
|
||||
.
|
||||
It has support for ID-FF and SAMLv2 thanks to Lasso, a free (GNU GPL)
|
||||
implementation of the Liberty Alliance specifications.
|
|
@ -0,0 +1,23 @@
|
|||
This package was debianized by Nicolas FRANCOIS (Nekral)
|
||||
<nicolas.francois@centraliens.net> on Mon, 16 Oct 2005.
|
||||
|
||||
It was downloaded from http://translate.sourceforge.net
|
||||
|
||||
Copyright (C) 2004-2008 Zuza Software Foundation
|
||||
|
||||
Upstream Authors: David Fraser, translate.org.za
|
||||
|
||||
License:
|
||||
|
||||
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.
|
||||
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General Public
|
||||
License can be found in ‘/usr/share/common-licenses/GPL-2’.
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/settings.py b/settings.py
|
||||
index e65f7ae..3919505 100644
|
||||
--- a/settings.py
|
||||
+++ b/settings.py
|
||||
@@ -19,7 +19,7 @@ MANAGERS = ADMINS
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
- 'NAME': os.path.join(PROJECT_PATH, 'authentic.db'),
|
||||
+ 'NAME': '/var/lib/authentic/authentic.db',
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/settings.py b/settings.py
|
||||
index e65f7ae..cb8faec 100644
|
||||
--- a/settings.py
|
||||
+++ b/settings.py
|
||||
@@ -4,8 +4,8 @@ import os
|
||||
|
||||
gettext_noop = lambda s: s
|
||||
|
||||
-DEBUG = True
|
||||
-USE_DEBUG_TOOLBAR = True
|
||||
+DEBUG = False
|
||||
+USE_DEBUG_TOOLBAR = False
|
||||
STATIC_SERVE = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
|
|
@ -0,0 +1,2 @@
|
|||
database_path.patch
|
||||
disable_debug.patch
|
|
@ -0,0 +1 @@
|
|||
2
|
|
@ -0,0 +1 @@
|
|||
2.3-
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
d=$(CURDIR)/debian/authentic
|
||||
|
||||
%:
|
||||
dh --with quilt --with python-central $@
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
|
||||
override_dh_pycentral:
|
||||
dh_pycentral
|
||||
touch $(d)/etc/authentic/local_settings.py
|
||||
ln -s /etc/authentic/local_settings.py $(d)/usr/share/pyshared/authentic/local_settings.py
|
Loading…
Reference in New Issue