--- mercurial-server-1.0.orig/debian/changelog +++ mercurial-server-1.0/debian/changelog @@ -0,0 +1,15 @@ +mercurial-server (1.0-1) unstable; urgency=low + + * Fix "call to /usr/share/mercurial-server/refresh-auth fails without + -H switch for sudo" (Closes: #558143) + * Fix "NP problem" with new short description (Closes: #558387) + * New upstream version + + -- Paul Crowley Wed, 02 Dec 2009 18:01:27 +0000 + +mercurial-server (0.9-1) sid; urgency=low + + * Initial release. (Closes: #555750: ITP: mercurial-server -- provide + and manage a shared Mercurial repository) + + -- Paul Crowley Thu, 12 Nov 2009 11:21:55 +0000 --- mercurial-server-1.0.orig/debian/dirs +++ mercurial-server-1.0/debian/dirs @@ -0,0 +1,9 @@ +usr/share/mercurial-server +usr/share/mercurial-server/init +usr/share/mercurial-server/mercurialserver +usr/share/doc/mercurial-server +etc/mercurial-server +etc/mercurial-server/remote-hgrc.d +etc/mercurial-server/keys +etc/mercurial-server/keys/root +etc/mercurial-server/keys/users --- mercurial-server-1.0.orig/debian/control +++ mercurial-server-1.0/debian/control @@ -0,0 +1,18 @@ +Source: mercurial-server +Section: devel +Priority: extra +Maintainer: Paul Crowley +Build-Depends: debhelper (>= 7.0.50~), python-support, xsltproc, docbook-xsl +Standards-Version: 3.8.3 +Homepage: http://www.lshift.net/mercurial-server.html +Vcs-Browser: http://hg.opensource.lshift.net/mercurial-server/ +Vcs-Hg: http://hg.opensource.lshift.net/mercurial-server/ + +Package: mercurial-server +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, adduser, python, mercurial, openssh-server | ssh-server +Description: shared Mercurial repository service + mercurial-server makes a group of repositories available to the developers + you choose, identified by SSH keys, with easy key and access management + based on Mercurial. + --- mercurial-server-1.0.orig/debian/compat +++ mercurial-server-1.0/debian/compat @@ -0,0 +1 @@ +7 --- mercurial-server-1.0.orig/debian/watch +++ mercurial-server-1.0/debian/watch @@ -0,0 +1,5 @@ +# Nothing in this file. +# I can't find a way to make uscan check for new tags in an +# http-based Mercurial repository. If there is such a way, please +# let me know. + --- mercurial-server-1.0.orig/debian/copyright +++ mercurial-server-1.0/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by the upstream author Paul Crowley + on Sat, 07 Mar 2009 10:12:02 +0000. Both the package and +the Debian packaging carry this copyright and license: + +Copyright 2008-2009 Paul Crowley +Copyright 2008-2009 LShift Ltd. + +License: + + 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; either version 2 of the License, or + (at your option) any later version. + + 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 St, 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'. + --- mercurial-server-1.0.orig/debian/templates +++ mercurial-server-1.0/debian/templates @@ -0,0 +1,5 @@ +Template: mercurial-server/purge_repositories +Type: boolean +Default: false +_Description: Do you want the repositories to be removed when mercurial-server is purged? + --- mercurial-server-1.0.orig/debian/rules +++ mercurial-server-1.0/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_install: + $(MAKE) installfiles \ + DESTDIR=./debian/mercurial-server/ \ + PREFIX=/usr/share + +override_dh_pysupport: + dh_pysupport /usr/share/mercurial-server/mercurialserver + +override_dh_installchangelogs: + dh_installchangelogs NEWS + --- mercurial-server-1.0.orig/debian/postinst +++ mercurial-server-1.0/debian/postinst @@ -0,0 +1,35 @@ +#!/bin/sh +# postinst script for mercurial-server + +set -e + +# Load debconf +. /usr/share/debconf/confmodule + +case "$1" in + configure|reconfigure) + if ! getent passwd hg >/dev/null; then + adduser --disabled-password --quiet --system \ + --shell /bin/sh --group \ + --home /var/lib/mercurial-server \ + --gecos "Mercurial repositories" hg + su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg + fi + ;; + + 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 + --- mercurial-server-1.0.orig/debian/postrm +++ mercurial-server-1.0/debian/postrm @@ -0,0 +1,47 @@ +#!/bin/sh +# postrm script for mercurial-server + +set -e + +# Load debconf +. /usr/share/debconf/confmodule + +# Check if the user wants the repositories removed on purging +remove_repositories_on_purge() { + db_get mercurial-server/purge_repositories || RET=false + if [ "$RET" = "true" ]; then + return 0 + else + return 1 + fi +} + +case "$1" in + purge) + if remove_repositories_on_purge; then + echo -n "Removing hg user and purging data..." + deluser --remove-home --quiet --system hg > /dev/null || true + else + echo -n "Removing hg user..." + deluser --quiet --system hg > /dev/null || true + fi + delgroup --quiet --system hg > /dev/null || true + echo done + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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 + --- mercurial-server-1.0.orig/debian/config +++ mercurial-server-1.0/debian/config @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# Load debconf +. /usr/share/debconf/confmodule + +db_input medium mercurial-server/purge_repositories || true + +db_go || true + +exit 0 + --- mercurial-server-1.0.orig/debian/doc-base +++ mercurial-server-1.0/debian/doc-base @@ -0,0 +1,7 @@ +Document: mercurial-server +Title: mercurial-server manual +Section: Programming + +Format: HTML +Index: /usr/share/doc/mercurial-server/html/index.html +Files: /usr/share/doc/mercurial-server/html/*.html --- mercurial-server-1.0.orig/debian/po/templates.pot +++ mercurial-server-1.0/debian/po/templates.pot @@ -0,0 +1,24 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: mercurial-server@packages.debian.org\n" +"POT-Creation-Date: 2009-12-02 18:14+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Do you want the repositories to be removed when mercurial-server is purged?" +msgstr "" --- mercurial-server-1.0.orig/debian/po/POTFILES.in +++ mercurial-server-1.0/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates