From: Emmanuel Lacour Date: Sat, 13 Oct 2007 14:13:06 +0000 (+0000) Subject: [svn-inject] Applying Debian modifications to trunk X-Git-Tag: 1.3-2 X-Git-Url: http://git.home-dn.net/?p=manu%2Flibnss-mysql-bg.git;a=commitdiff_plain;h=663310f43c62dbbbfea672a4bacb10d4b040d4c3 [svn-inject] Applying Debian modifications to trunk --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..477aaba --- /dev/null +++ b/debian/changelog @@ -0,0 +1,39 @@ +libnss-mysql-bg (1.3-2) unstable; urgency=high + + * debian/control: built with libmysqlclient12-dev. + (for libmysqlclient10 -> libmysqlclient12 transition) + * debian/control: move "Section" from "Package" to "Source" section. + + -- Emmanuel Lacour Sun, 6 Mar 2005 19:49:59 +0100 + +libnss-mysql-bg (1.3-1) unstable; urgency=low + + * New upstream release + + -- Emmanuel Lacour Mon, 22 Nov 2004 19:35:00 +0100 + +libnss-mysql-bg (1.2-3) unstable; urgency=low + + * Built with libmysqlclient10-dev. closes: #274492 + + -- Emmanuel Lacour Sun, 3 Oct 2004 22:55:43 +0200 + +libnss-mysql-bg (1.2-2) unstable; urgency=low + + * debian/control: fix Standards-Version and description + * debian/rules: cleanup config.log on in "clean" target + + -- Emmanuel Lacour Sun, 29 Aug 2004 11:44:28 +0200 + +libnss-mysql-bg (1.2-1) unstable; urgency=low + + * New upstream release + + -- Emmanuel Lacour Sat, 28 Aug 2004 18:51:16 +0200 + +libnss-mysql-bg (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Emmanuel Lacour Sun, 21 Sep 2003 15:35:49 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..babb5d4 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: libnss-mysql-bg +Section: admin +Priority: optional +Maintainer: Emmanuel Lacour +Build-Depends: debhelper (>> 4.0.0), libmysqlclient12-dev +Standards-Version: 3.6.1 + +Package: libnss-mysql-bg +Architecture: any +Depends: ${shlibs:Depends} +Suggests: mysql-server, libpam-mysql +Conflicts: libnss-mysql +Description: NSS module for using MySQL as a naming service + libnss-mysql-bg provides a Name Service Switch module that allows MySQL + to act as a name service. + . + Its configuration is very flexible by allowing to set an SQL query per NSS + call (getpwnam, getpwuid, ...). You would use it instead of the other + "libnss-mysql" package for building a NSS over an existing database (used for + another purpose like groupware, ...). + . + It currently supports storage of passwd, group and shadow informations. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d719c85 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Emmanuel Lacour on +Sun, 21 Sep 2003 15:35:49 +0200. + +It was downloaded from http://easynews.dl.sourceforge.net/sourceforge/libnss-mysql/ + +Upstream Author: Ben Goodwin + +Copyright: + +libnss-mysql-bg is Copyright (C) 2002 Ben Goodwin +It was created in May 2002, based upon much earlier, non-NSS code. + +So far, no one else has contributed. + + 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +see /usr/share/common-licenses/GPL for all details. diff --git a/debian/libnss-mysql-bg.dirs b/debian/libnss-mysql-bg.dirs new file mode 100644 index 0000000..b289cfd --- /dev/null +++ b/debian/libnss-mysql-bg.dirs @@ -0,0 +1,2 @@ +etc +lib diff --git a/debian/libnss-mysql-bg.docs b/debian/libnss-mysql-bg.docs new file mode 100644 index 0000000..c71904c --- /dev/null +++ b/debian/libnss-mysql-bg.docs @@ -0,0 +1,8 @@ +AUTHORS +DEBUGGING +FAQ +NEWS +README +THANKS +TODO +UPGRADING diff --git a/debian/libnss-mysql-bg.examples b/debian/libnss-mysql-bg.examples new file mode 100644 index 0000000..9773875 --- /dev/null +++ b/debian/libnss-mysql-bg.examples @@ -0,0 +1,4 @@ +sample/README +sample/linux +sample/minimal +sample/complex diff --git a/debian/libnss-mysql-bg.files b/debian/libnss-mysql-bg.files new file mode 100644 index 0000000..420271f --- /dev/null +++ b/debian/libnss-mysql-bg.files @@ -0,0 +1,2 @@ +etc/* +lib/*.so.2* diff --git a/debian/libnss-mysql-bg.postinst b/debian/libnss-mysql-bg.postinst new file mode 100644 index 0000000..f78ffd1 --- /dev/null +++ b/debian/libnss-mysql-bg.postinst @@ -0,0 +1,45 @@ +#! /bin/sh +# postinst script for libnss-mysql-bg +# +# 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 +# + +case "$1" in + configure) + + # Make sur /etc/libnss-mysql-root.cfg isn't world/group readable + [ -f /etc/libnss-mysql-root.cfg ] && chmod 0600 /etc/libnss-mysql-root.cfg + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + 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/rules b/debian/rules new file mode 100755 index 0000000..59f8d71 --- /dev/null +++ b/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + ./configure + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) distclean + rm -f config.log + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + dh_movefiles + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch +.PHONY: build clean binary-arch binary install configure diff --git a/sample/linux/libnss-mysql.cfg b/sample/linux/libnss-mysql.cfg index 486da24..463f43c 100644 --- a/sample/linux/libnss-mysql.cfg +++ b/sample/linux/libnss-mysql.cfg @@ -35,7 +35,7 @@ host localhost database auth username nss-user password userpass -#socket /var/lib/mysql/mysql.sock +#socket /var/run/mysqld/mysqld.sock #port 3306 timeout 3 compress 0