debian/0000755000000000000000000000000012222526736007175 5ustar debian/onak.logrotate0000644000000000000000000000015512222526736012050 0ustar /var/log/onak.log { create 644 onak adm missingok notifempty rotate 4 weekly compress delaycompress } debian/compat0000644000000000000000000000000212222526736010373 0ustar 7 debian/postrm0000644000000000000000000000054312222526736010446 0ustar #! /bin/sh set -e if [ "$1" = "purge" ]; then if dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* >/dev/null; then for i in $(dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* | cut -d " " -f 4); do dpkg-statoverride --remove $i done fi rm -f /var/log/onak.log /var/log/onak.log.1 /var/log/onak.log.*.gz fi #DEBHELPER# debian/docs0000644000000000000000000000005612222526736010051 0ustar BUGS README TODO PERFORMANCE keys/noodles.key debian/source/0000755000000000000000000000000012222526736010475 5ustar debian/source/format0000644000000000000000000000001412222526736011703 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014212222526736010223 0ustar version=2 http://www.earth.li/projectpurple/files/ onak-(.*).tar.gz debian uupdate debian/README.Debian0000644000000000000000000000065012222526736011237 0ustar 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 debian/control0000644000000000000000000000155412222526736010605 0ustar Source: onak Section: net Priority: optional Maintainer: Jonathan McDowell Uploaders: Ross Burton Build-Depends: debhelper (>= 7), cdbs, libdb-dev, nettle-dev, libcurl4-gnutls-dev | libcurl-dev Standards-Version: 3.9.4.0 Homepage: http://www.earth.li/projectpurple/progs/onak.html Vcs-Browser: http://the.earth.li/gitweb/?p=onak.git;a=summary Vcs-Git: git://the.earth.li/onak.git Package: onak Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, adduser Recommends: apache2 | httpd Suggests: db-util 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. debian/copyright0000644000000000000000000000207112222526736011130 0ustar 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: 2002-2013 Jonathan McDowell 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/onak.install0000644000000000000000000000012012222526736011506 0ustar onak.conf etc add lookup gpgwww hashquery usr/lib/cgi-bin/pks debian/examples0000644000000000000000000000002512222526736010733 0ustar mathopd.conf apache2 debian/postinst0000644000000000000000000000304712222526736011007 0ustar #! /bin/sh set -e if [ "$1" = "configure" ]; then # Add the onak user adduser --system --home /var/lib/onak --no-create-home --disabled-login onak # # If we're using a default config and there's no onak database, create it # by adding my key. # if grep -q "^db_dir /var/lib/onak" /etc/onak.conf && grep -q "^db_backend db4" /etc/onak.conf && [ ! -e /var/lib/onak/num_keydb -a \ -e /usr/share/doc/onak/noodles.key ]; then zcat /usr/share/doc/onak/noodles.key | onak -b add fi # Take ownership of the database and spool directory chown -R onak /var/lib/onak chown -R onak /var/spool/onak # Create our logfile touch /var/log/onak.log chown onak /var/log/onak.log # 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 # If we don't have a DB backend defined, then add appropriate config if ! grep -q db_backend /etc/onak.conf; then echo "# Auto added on package update" >> /etc/onak.conf echo "backends_dir /usr/lib/onak/backends" >> /etc/onak.conf echo "db_backend db4" >> /etc/onak.conf fi # If we still have the old default mail_dir setting, fix it if grep -q "mail_dir /community/pgp-keyserver/incoming" /etc/onak.conf; then sed -i.bak "s/community\/pgp-keyserver\/incoming/var\/spool\/onak/" \ /etc/onak.conf fi fi #DEBHELPER# debian/TODO0000644000000000000000000000017112222526736007664 0ustar Check stat-override and ownership logic is correct Remove the database on purge Remove onak user on purge Fix .depend debian/onak.init0000644000000000000000000000404212222526736011012 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: pgp-keyserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: onak init script # Description: onak is a PGP keyserver with an optional persistent # backend daemon which this script starts. ### END INIT INFO # Author: Jonathan McDowell # Do NOT "set -e" PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="PGP Keyserver backend" NAME=keyd DAEMON=/usr/sbin/$NAME DAEMON_ARGS="" SCRIPTNAME=/etc/init.d/onak # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions if ! grep -q -E '^use_keyd *(true|yes|1)$' /etc/onak.conf; then exit 0 fi case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start --oknodo --user onak --chuid onak \ --exec $DAEMON case "$?" in 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 1) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" /usr/bin/keydctl quit start-stop-daemon --stop --oknodo --user onak --exec $DAEMON case "$?" in 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 1) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; restart|force-reload) [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME" /usr/bin/keydctl quit start-stop-daemon --stop --oknodo --user onak --exec $DAEMON start-stop-daemon --start --oknodo --user onak --chuid onak \ --exec $DAEMON case "$?" in 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 1) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 3 ;; esac : debian/rules0000755000000000000000000000027312222526736010257 0ustar #!/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=dynamic CFLAGS += -std=gnu99 debian/onak.dirs0000644000000000000000000000003412222526736011005 0ustar var/lib/onak var/spool/onak debian/changelog0000644000000000000000000000765212222526736011061 0ustar onak (0.4.2-1) unstable; urgency=low * New upstream release * Prevent splitkeys crash with malformed key input. (Closes: #716350) * Switch to source format 3.0 (quilt). * Only seed initial database if key file is available. (Closes: #710665) * Bump Debian Standards-Version to 3.9.4.0 * Update year in copyright file * Updated Vcs fields to point to git repository -- Jonathan McDowell Tue, 01 Oct 2013 11:56:55 +0100 onak (0.4.1-1) unstable; urgency=low * New upstream release * Fix onak-mail race condition. (Closes: #650557) * Drop HISTORY file in /usr/share/doc; it's already present as changelog.gz -- Jonathan McDowell Tue, 24 Apr 2012 21:29:17 -0700 onak (0.4.0-1) unstable; urgency=low * Only seed empty database for if we're using default config * Use generic db dependencies rather than 4.8 versioned ones. (Closes: #621426) * Bump Debian Standards-Version to 3.9.2.0 * Add ${perl:Depends} to dependencies * Add init.d file for keyd * Add logrotate config snippet -- Jonathan McDowell Tue, 19 Apr 2011 21:59:28 -0700 onak (0.3.8-1) unstable; urgency=low * New upstream release * Correct formatting of some places we output a keyid. (Closes: #540196) * Don't add a key to the stats hash if it doesn't have any sigs. (Closes: #542187) * Add Homepage and Vcs-Bzr fields to Debian control file * Bump debhelper compat level to 7 * Bump Debian Standards-Version to 3.8.3.0 * Change to build against libdb4.8 -- Jonathan McDowell Tue, 29 Dec 2009 16:42:23 +0000 onak (0.3.7-1) unstable; urgency=low * New upstream release * Fix escaping of : in HKP output. (Closes: #487284) * Build with libdb4.7 (Closes: #520117) -- Jonathan McDowell Tue, 02 Jun 2009 15:51:09 +0100 onak (0.3.6-1) unstable; urgency=low * New upstream release * Fix lookup display for more than one photo id. (Closes: #467020) * Build with libdb4.6 (Closes: #421951) -- Jonathan McDowell Sat, 07 Jun 2008 13:29:01 +0100 onak (0.3.5-1) unstable; urgency=low * New upstream release * Fixes stupid db4 backend mistake (Closes: #460575) -- Jonathan McDowell Wed, 16 Jan 2008 21:30:40 +0000 onak (0.3.4-1) unstable; urgency=low * New upstream release * Fix config passing to backends (Closes: #413762) * Lintian cleanups * Add #DEBHELPER# tokens to postinst/postrm. * Update FSF address in copyright file. * Remove bashism from postrm. * Update Standards-Version to 3.7.3.0 (no changes) * Update Apache recommendation to Apache2 -- Jonathan McDowell Sat, 29 Dec 2007 10:50:33 +0000 onak (0.3.3-1) unstable; urgency=low * New upstream release * Check signature creation times for merging (Closes: #410796) * Don't assume direct signature is revocation (Closes: #334715) * Gracefully fail when we can't open a DB4 DB (Closes: #370440) * Cleanup logfile upon package purge (Closes: #338516) * Add suggests on db4.2-utils (Closes: #317459) * Acknowledge NMU (Closes: #408270) -- Jonathan McDowell Sun, 04 Mar 2007 22:55:54 +0000 onak (0.3.2-1.1) unstable; urgency=high * Non-maintainer upload. * Added missing dep on adduser (Closes: #408270) * Urgency high due RCness of the bug -- Bastian Venthur Thu, 1 Feb 2007 10:38:37 +0100 onak (0.3.2-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Fri, 25 Mar 2005 11:17:44 +0000 onak (0.3.1-1) unstable; urgency=low * New upstream release - Add onak-mail.pl man page (Closes: #276879) - Add links to HTML index output. (Closes: #275227) -- Jonathan McDowell Sat, 23 Oct 2004 18:01:39 +0100 onak (0.3.0-1) unstable; urgency=low * Initial Release. (closes: #254425) -- Ross Burton Thu, 17 Jun 2004 11:59:00 +0100