diff --git a/debian/README b/debian/README new file mode 100644 index 0000000000000000000000000000000000000000..495710c7cf58c7aecdb6063920998acbab030ce9 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package authserv +---------------------------- + +Comments regarding the Package + + -- ale <debian@autistici.org> Wed, 27 Nov 2013 09:06:49 +0000 diff --git a/debian/authserv-doc.install b/debian/authserv-doc.install new file mode 100644 index 0000000000000000000000000000000000000000..d4f45425847a7098cf2ce10649a3ad5cdea54a7b --- /dev/null +++ b/debian/authserv-doc.install @@ -0,0 +1 @@ +#DOCS# diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..a325f5c44d2a6985aa2b9269b35ebb9a6cbe0187 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +authserv (0.1) unstable; urgency=low + + * Initial Release. + + -- Autistici/Inventati <debian@autistici.org> Wed, 27 Nov 2013 09:06:49 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000000000000000000000000000000000..45a4fb75db864000d01701c0f7a51864bd4daabf --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..8b22387f94d336837cefc5fdd1d927f177379a08 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: authserv +Section: net +Priority: extra +Maintainer: Autistici/Inventati <debian@autistici.org> +Build-Depends: debhelper (>= 8.0.0), build-essential, + python (>= 2.6.6-3~), python-setuptools +Standards-Version: 3.9.4 + +Package: libpam-authclient +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PAM module for authserv. + PAM module for authserv. + +Package: python-authserv +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Description: Auth server package. + Centralized authentication server with OTP support. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..dd888d9e7ec824f63691afefd22375423c4244f2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: authserv +Source: <url://example.com> + +Files: * +Copyright: <years> <put author's name and email here> + <years> <likewise for another author> +License: MIT + +Files: debian/* +Copyright: 2013 ale <debian@autistici.org> +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/debian/libpam-authclient.install b/debian/libpam-authclient.install new file mode 100644 index 0000000000000000000000000000000000000000..a25fff4278f76ac2fd74252756e136bf6cddfe97 --- /dev/null +++ b/debian/libpam-authclient.install @@ -0,0 +1,3 @@ +debian/tmp/lib/security/pam_authclient.so* +debian/tmp/usr/include/authclient +debian/tmp/usr/lib/libauthclient.so* diff --git a/debian/python-authserv.install b/debian/python-authserv.install new file mode 100644 index 0000000000000000000000000000000000000000..d9dda32458ad6b7b7a471c7176373f7836b5d535 --- /dev/null +++ b/debian/python-authserv.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin +debian/tmp/usr/lib diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..69ff95c2c29d2dc0b223d2e14adf02d67f56d3e5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +export PYBUILD_NAME=authserv + + +%: + dh $@ --with python2 --buildsystem=pybuild + +override_dh_auto_build: + (cd pam && ./autogen.sh && ./configure --prefix=/usr && make) + dh_auto_build + +override_dh_install: + (cd pam && make install DESTDIR=$(CURDIR)/debian/tmp) + rm -f $(CURDIR)/debian/tmp/lib/security/pam_authclient.so{,.0} + mv $(CURDIR)/debian/tmp/lib/security/pam_authclient.so.0.0.0 \ + $(CURDIR)/debian/tmp/lib/security/pam_authclient.so + dh_auto_install + dh_install + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/pam/autogen.sh b/pam/autogen.sh new file mode 100755 index 0000000000000000000000000000000000000000..7f1bedfe2f69e183030b4512e7d1bf8b15967819 --- /dev/null +++ b/pam/autogen.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +if [ -x "`which autoreconf 2>/dev/null`" ] ; then + exec autoreconf -ivf +fi + +if glibtoolize --version > /dev/null 2>&1; then + LIBTOOLIZE='glibtoolize' +else + LIBTOOLIZE='libtoolize' +fi + +$LIBTOOLIZE && \ +aclocal -I m4 && \ +autoheader && \ +automake --add-missing --foreign && \ +autoconf diff --git a/setup.py b/setup.py index 9322abfbb8ad0480c3b02f5d5bb2f65ad47d7023..32c31f039d5f8c2cd3140f51d8dcb0c5085793d6 100644 --- a/setup.py +++ b/setup.py @@ -9,14 +9,14 @@ setup( author="Autistici/Inventati", author_email="info@autistici.org", url="https://git.autistici.org/ai/authserv", - install_requires=["Flask", "python-memcached", "oath", "nose"], + install_requires=["Flask", "python-memcached", "nose"], setup_requires=[], zip_safe=False, packages=find_packages(), package_data={}, entry_points={ 'console_scripts': [ - 'tapd = tap.server:main', + 'authserv = authserv.server:main', ], } )