[Checkins] SVN: cipher.googlepam/trunk/ Add Debian packaging.
Marius Gedminas
cvs-admin at zope.org
Mon Oct 8 12:20:34 UTC 2012
Log message for revision 127931:
Add Debian packaging.
Changed:
U cipher.googlepam/trunk/CHANGES.txt
A cipher.googlepam/trunk/debian/
A cipher.googlepam/trunk/debian/README.Debian
A cipher.googlepam/trunk/debian/changelog
A cipher.googlepam/trunk/debian/compat
A cipher.googlepam/trunk/debian/control
A cipher.googlepam/trunk/debian/copyright
A cipher.googlepam/trunk/debian/dirs
A cipher.googlepam/trunk/debian/docs
A cipher.googlepam/trunk/debian/install
A cipher.googlepam/trunk/debian/pam-auth-update/
A cipher.googlepam/trunk/debian/pam-auth-update/cipher-googlepam
A cipher.googlepam/trunk/debian/pam_google.conf
A cipher.googlepam/trunk/debian/patches/
A cipher.googlepam/trunk/debian/patches/debian_specifics
A cipher.googlepam/trunk/debian/patches/series
A cipher.googlepam/trunk/debian/postinst
A cipher.googlepam/trunk/debian/prerm
A cipher.googlepam/trunk/debian/pydist-overrides
A cipher.googlepam/trunk/debian/rules
A cipher.googlepam/trunk/debian/source/
A cipher.googlepam/trunk/debian/source/format
A cipher.googlepam/trunk/debian/source/local-options
A cipher.googlepam/trunk/debian/source/options
A cipher.googlepam/trunk/debian/watch
-=-
Modified: cipher.googlepam/trunk/CHANGES.txt
===================================================================
--- cipher.googlepam/trunk/CHANGES.txt 2012-10-08 12:20:24 UTC (rev 127930)
+++ cipher.googlepam/trunk/CHANGES.txt 2012-10-08 12:20:30 UTC (rev 127931)
@@ -10,7 +10,9 @@
domain, username, password and group. You can also use -C/--config-file to
specify a different config file.
+- Added Debian packaging.
+
1.3.0 (2012-04-24)
------------------
Added: cipher.googlepam/trunk/debian/README.Debian
===================================================================
--- cipher.googlepam/trunk/debian/README.Debian (rev 0)
+++ cipher.googlepam/trunk/debian/README.Debian 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,23 @@
+cipher-googlepam for Debian
+===========================
+
+To make use of Google authentication, edit /etc/cipher-googlepam/pam_google.conf
+and specify
+
+ domain = ...
+ admin-username = ...
+ admin-password = ...
+ group = ...
+
+Make sure the file is not world-readable!
+
+ chmod 600 /etc/cipher-googlepam/pam_google.conf
+
+To create user accounts for users defined in that Google domain, run
+
+ add-google-users -v
+
+if you want to make them sudoers as well, use instead
+
+ add-google-users -v -a sudo
+
Added: cipher.googlepam/trunk/debian/changelog
===================================================================
--- cipher.googlepam/trunk/debian/changelog (rev 0)
+++ cipher.googlepam/trunk/debian/changelog 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,5 @@
+cipher.googlepam (1.4.0-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Marius Gedminas <marius at cipherhealth.com> Fri, 05 Oct 2012 13:40:32 +0300
Added: cipher.googlepam/trunk/debian/compat
===================================================================
--- cipher.googlepam/trunk/debian/compat (rev 0)
+++ cipher.googlepam/trunk/debian/compat 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1 @@
+8
Added: cipher.googlepam/trunk/debian/control
===================================================================
--- cipher.googlepam/trunk/debian/control (rev 0)
+++ cipher.googlepam/trunk/debian/control 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,22 @@
+Source: cipher.googlepam
+Section: admin
+Priority: extra
+Maintainer: Marius Gedminas <marius at cipherhealth.com>
+Build-Depends: debhelper (>= 8.0.0), python-dev, python-setuptools
+Standards-Version: 3.9.3
+Homepage: http://pypi.python.org/pypi/cipher.googlepam
+Vcs-Git: git://git.cipherhealth.com/git/cipher.googlepam.git
+Vcs-Browser: https://trac.cipherhealth.com/gitweb/?p=cipher.googlepam.git;a=summary
+
+Package: cipher-googlepam
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, libpam-python
+Description: PAM module allowing authentication against a Google domain
+ This package implements a Python PAM module to authenticate users against
+ a Google domain. The following features are provided:
+ .
+ - Select any Google domain.
+ - Allow only users from a certain group.
+ - A script to install all Google users as system users.
+ - Password caching using files or memcached.
+ - Advanced logging setup.
Added: cipher.googlepam/trunk/debian/copyright
===================================================================
--- cipher.googlepam/trunk/debian/copyright (rev 0)
+++ cipher.googlepam/trunk/debian/copyright 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,51 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: cipher.googlepam
+Source: <http://pypi.python.org/pypi/cipher.googlepam>
+
+Files: *
+Copyright: 2012 Zope Foundation and Contributors
+License: ZPL-2.1
+ Zope Public License (ZPL) Version 2.1
+ .
+ A copyright notice accompanies this license document that identifies the
+ copyright holders.
+ .
+ This license has been certified as open source. It has also been designated as
+ GPL compatible by the Free Software Foundation (FSF).
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the accompanying copyright
+ notice, this list of conditions, and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission from the
+ copyright holders.
+ .
+ 4. The right to distribute this software or to use it for any purpose does not
+ give you the right to use Servicemarks (sm) or Trademarks (tm) of the
+ copyright
+ holders. Use of them is covered by separate agreement with the copyright
+ holders.
+ .
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of any
+ change.
+ .
+ Disclaimer
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Added: cipher.googlepam/trunk/debian/dirs
===================================================================
--- cipher.googlepam/trunk/debian/dirs (rev 0)
+++ cipher.googlepam/trunk/debian/dirs 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,2 @@
+usr/share/pam-configs
+etc/cipher-googlepam
Added: cipher.googlepam/trunk/debian/docs
===================================================================
--- cipher.googlepam/trunk/debian/docs (rev 0)
+++ cipher.googlepam/trunk/debian/docs 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,2 @@
+CHANGES.txt
+README.txt
Added: cipher.googlepam/trunk/debian/install
===================================================================
--- cipher.googlepam/trunk/debian/install (rev 0)
+++ cipher.googlepam/trunk/debian/install 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,2 @@
+debian/pam-auth-update/cipher-googlepam usr/share/pam-configs
+debian/pam_google.conf etc/cipher-googlepam
Added: cipher.googlepam/trunk/debian/pam-auth-update/cipher-googlepam
===================================================================
--- cipher.googlepam/trunk/debian/pam-auth-update/cipher-googlepam (rev 0)
+++ cipher.googlepam/trunk/debian/pam-auth-update/cipher-googlepam 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,6 @@
+Name: Google PAM
+Default: yes
+Priority: 300
+Auth-Type: Primary
+Auth:
+ [success=end default=ignore] pam_python.so /usr/share/pyshared/cipher/googlepam/pam_google.py -c /etc/cipher-googlepam/pam_google.conf
Added: cipher.googlepam/trunk/debian/pam_google.conf
===================================================================
--- cipher.googlepam/trunk/debian/pam_google.conf (rev 0)
+++ cipher.googlepam/trunk/debian/pam_google.conf 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,50 @@
+[googlepam]
+# You must specify these to make use of pam_google.conf:
+#domain=example.com
+#admin-username=admin
+#admin-password=good-pwd
+#group=group1
+
+# don't allow root logins via pam_google
+excludes = root
+
+# custom prompt
+prompt = Google Password:
+
+# sudo apt-get install memcached and uncomment this line to cache to memcached
+#cache = memcache
+# otherwise use a cache file
+cache = file
+
+[file-cache]
+file = /var/cache/cipher-googlepam-user-cache
+lifespan = 1800
+
+[memcache-cache]
+key-prefix = googlepam.
+host = 127.0.0.1
+port = 11211
+debug = true
+lifespan = 1800
+
+[loggers]
+keys = root
+
+[logger_root]
+handlers = file
+level = INFO
+
+[handlers]
+keys = file
+
+[handler_file]
+class = logging.handlers.RotatingFileHandler
+args = ('/var/log/cipher-googlepam.log', 'a', 10*1024*1024, 5)
+formatter = simple
+
+[formatters]
+keys = simple
+
+[formatter_simple]
+format = %(asctime)s %(levelname)s - %(message)s
+datefmt = %Y-%m-%dT%H:%M:%S
Added: cipher.googlepam/trunk/debian/patches/debian_specifics
===================================================================
--- cipher.googlepam/trunk/debian/patches/debian_specifics (rev 0)
+++ cipher.googlepam/trunk/debian/patches/debian_specifics 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,48 @@
+Description: Adjust default config file location and bcrypt egg name
+ The bcrypt package known upstream as py-crypt is packaged in Debian
+ (as python-crypt) under the distribution name 'bcrypt'.
+ .
+ Upstream doesn't have a sane location for the default pam_google.conf
+ file, but the Debian package has one.
+Author: Marius Gedminas <marius at cipherhealth.com>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Last-Update: 2012-10-08
+
+--- cipher.googlepam-1.4.0.orig/setup.py
++++ cipher.googlepam-1.4.0/setup.py
+@@ -50,7 +50,7 @@ setup(
+ ),
+ install_requires=[
+ 'gdata',
+- 'py-bcrypt',
++ 'bcrypt',
+ 'python-memcached',
+ 'setuptools',
+ ],
+--- cipher.googlepam-1.4.0.orig/src/cipher/googlepam/pam_google.py
++++ cipher.googlepam-1.4.0/src/cipher/googlepam/pam_google.py
+@@ -31,7 +31,7 @@ from gdata.apps.groups.service import Gr
+ from gdata.apps.service import AppsService, AppsForYourDomainException
+ from gdata.service import BadAuthentication, CaptchaRequired
+
+-DEFAULT_CONFIG = os.path.join(os.path.dirname(__file__), 'googlepam.conf')
++DEFAULT_CONFIG = '/etc/cipher-googlepam/pam_google.conf'
+ SECTION_NAME = 'googlepam'
+ LOG = logging.getLogger('cipher.googlepam.PAM')
+
+--- cipher.googlepam-1.4.0.orig/src/cipher/googlepam/addusers.py
++++ cipher.googlepam-1.4.0/src/cipher/googlepam/addusers.py
+@@ -27,7 +27,7 @@ parser.usage = '%prog [options]'
+
+ log = logging.getLogger("add-google-users")
+
+-DEFAULT_CONFIG = os.path.join(os.path.dirname(__file__), 'googlepam.conf')
++DEFAULT_CONFIG = '/etc/cipher-googlepam/pam_google.conf'
+ SECTION_NAME = 'googlepam'
+
+ ADDUSER_CMD = ('adduser --firstuid 2000 --disabled-password '
Added: cipher.googlepam/trunk/debian/patches/series
===================================================================
--- cipher.googlepam/trunk/debian/patches/series (rev 0)
+++ cipher.googlepam/trunk/debian/patches/series 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1 @@
+debian_specifics
Added: cipher.googlepam/trunk/debian/postinst
===================================================================
--- cipher.googlepam/trunk/debian/postinst (rev 0)
+++ cipher.googlepam/trunk/debian/postinst 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,15 @@
+#!/bin/sh
+# postinst script for cipher.googlepam
+#
+# see: dh_installdeb(1)
+
+set -e
+
+pam-auth-update --package
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: cipher.googlepam/trunk/debian/prerm
===================================================================
--- cipher.googlepam/trunk/debian/prerm (rev 0)
+++ cipher.googlepam/trunk/debian/prerm 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,15 @@
+#!/bin/sh
+# prerm script for cipher.googlepam
+#
+# see: dh_installdeb(1)
+
+set -e
+
+pam-auth-update --package --remove cipher-googlepam
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: cipher.googlepam/trunk/debian/pydist-overrides
===================================================================
--- cipher.googlepam/trunk/debian/pydist-overrides (rev 0)
+++ cipher.googlepam/trunk/debian/pydist-overrides 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,2 @@
+gdata python-gdata
+bcrypt python-bcrypt
Added: cipher.googlepam/trunk/debian/rules
===================================================================
--- cipher.googlepam/trunk/debian/rules (rev 0)
+++ cipher.googlepam/trunk/debian/rules 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@ --with python2
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod 600 debian/cipher-googlepam/etc/cipher-googlepam/pam_google.conf
+
+# distutils likes to create a 'build' directory
+.PHONY: build
Property changes on: cipher.googlepam/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: cipher.googlepam/trunk/debian/source/format
===================================================================
--- cipher.googlepam/trunk/debian/source/format (rev 0)
+++ cipher.googlepam/trunk/debian/source/format 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: cipher.googlepam/trunk/debian/source/local-options
===================================================================
--- cipher.googlepam/trunk/debian/source/local-options (rev 0)
+++ cipher.googlepam/trunk/debian/source/local-options 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1 @@
+unapply-patches
Added: cipher.googlepam/trunk/debian/source/options
===================================================================
--- cipher.googlepam/trunk/debian/source/options (rev 0)
+++ cipher.googlepam/trunk/debian/source/options 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1 @@
+extend-diff-ignore = "(^|/)(setup\.cfg|dist/.*|build/.*|bin/.*|parts/.*|eggs/.*|develop-eggs/.*|\.installed\.cfg|src/cipher\.googlepam\.egg-info/.*|PKG-INFO|Makefile\.deb)$"
Added: cipher.googlepam/trunk/debian/watch
===================================================================
--- cipher.googlepam/trunk/debian/watch (rev 0)
+++ cipher.googlepam/trunk/debian/watch 2012-10-08 12:20:30 UTC (rev 127931)
@@ -0,0 +1,10 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# <Webpage URL> <string match>
+http://pypi.python.org/packages/source/c/cipher.googlepam/cipher.googlepam-(.*)(?:\.tar\.gz|\.zip)
More information about the checkins
mailing list