From: Jonathan McDowell Date: Mon, 2 Aug 2004 16:03:32 +0000 (+0000) Subject: Add Debian packaging files. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/cd4738e8f5ede42cba925b58a84c61e22bab8e8f Add Debian packaging files. Add the debian/ subdir and files contained therein. Thanks to Ross Burton , who provided all of this (mostly unaltered by me). --- diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..98a3785 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,12 @@ +onak for Debian +--------------- + +Before using onak you will want to edit /etc/onak.conf and set 'this_site' as +appropriate. + +The OpenPGP Key Server specification uses host:11371/pks/lookup etc as the URLs, +so you will need to configure your web server as relevant. +/usr/share/doc/onak/examples contains some sample configuration files for +various web servers. + + -- Ross Burton , Fri Jun 18 12:00:57 2004 diff --git a/debian/TODO b/debian/TODO new file mode 100644 index 0000000..0ef2afd --- /dev/null +++ b/debian/TODO @@ -0,0 +1,7 @@ +Check stat-override and ownership logic is correct + +Remove the database on purge + +Remove onak user on purge + +Fix .depend diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ce3836a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +onak (0.3.0-1) unstable; urgency=low + + * Initial Release. (closes: #254425) + + -- Ross Burton Thu, 17 Jun 2004 11:59:00 +0100 + 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..f31ae17 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: onak +Section: net +Priority: optional +Maintainer: Jonathan McDowell +Uploaders: Ross Burton +Build-Depends: debhelper (>= 4.1.0), cdbs, libdb4.2-dev +Standards-Version: 3.6.1 + +Package: onak +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: apache | httpd +Description: OpenPGP Key Server + onak is an OpenPGP compatible keyserver which supports multiple subkeys, + photo ids and path finding between keys. It can provide an HKP + compatible interface for use with the --keyserver option of gnupg as + well as including a command line tool for querying the key database. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4daeb96 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Ross Burton on +Thu, 17 Jun 2004 11:59:00 +0100. + +It was downloaded from http://www.earth.li/projectpurple/progs/onak.html + +Upstream Author: Jonathan McDowell + +Copyright: + + This package 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; version 2 dated June, 1991. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..381cef3 --- /dev/null +++ b/debian/docs @@ -0,0 +1,5 @@ +BUGS +README +TODO +PERFORMANCE +HISTORY diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..234585e --- /dev/null +++ b/debian/examples @@ -0,0 +1 @@ +mathopd.conf diff --git a/debian/onak.dirs b/debian/onak.dirs new file mode 100644 index 0000000..e39d490 --- /dev/null +++ b/debian/onak.dirs @@ -0,0 +1 @@ +var/lib/onak diff --git a/debian/onak.install b/debian/onak.install new file mode 100644 index 0000000..aaef8e8 --- /dev/null +++ b/debian/onak.install @@ -0,0 +1,4 @@ +onak.conf etc +onak splitkeys usr/bin +onak-mail.pl usr/lib/onak +add lookup gpgwww usr/lib/cgi-bin/pks diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..c34d68e --- /dev/null +++ b/debian/postinst @@ -0,0 +1,21 @@ +#! /bin/sh + +set -e + +if [ "$1" = "configure" ]; then + + # Add the onak user + adduser --system --home /var/lib/onak --no-create-home --disabled-login onak + + # Take ownership of the database directory + chown -R onak /var/lib/onak + + # Make the CGI tools setuid onak + for i in /usr/lib/cgi-bin/pks/* + do + if ! dpkg-statoverride --list $i >/dev/null + then + dpkg-statoverride --update --add onak root 4755 $i + fi + done +fi diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..2639332 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +if [ "$1" = "purge" ]; then + if dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* >/dev/null; then + dpkg-statoverride --remove + fi +fi diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a230cea --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=db4 + +DEB_MAKE_INSTALL_TARGET := + +# Woody doesn't like this of course +#CFLAGS += -std=gnu99 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..95bf704 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.earth.li/projectpurple/files/ onak-(.*).tar.gz debian uupdate