debian/0000755000000000000000000000000012202120615007155 5ustar debian/copyright0000644000000000000000000000515112036246577011137 0ustar This package was Debianized by Antti-Juhani Kaijanaho on 2007-08-28. It was downloaded from http://antti-juhani.kaijanaho.fi/software/dist/darcs-monitor-0.3.4.tar.gz Upstream author: Antti-Juhani Kaijanaho Benja Fallenstein Benjamin Franksen Upstream copyright and license: Copyright © 2007, 2008 Antti-Juhani Kaijanaho Copyright © 2007 Benja Fallenstein Copyright © 2007 Benjamin Franksen 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. On Debian systems, the complete text of the GNU General Public License, version 2, can be found in the file /usr/share/common-licenses/GPL-2. The Debian packaging copyright and license: # Copyright © 1999, 2000, 2002, 2003, 2004, 2007 Antti-Juhani Kaijanaho. # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this file, to deal in this file without # restriction, including without limitation the rights to use, copy, # modify, merge, publish, distribute, sublicense, and/or sell copies # of this file, and to permit persons to whom this file is furnished # to do so, subject to the following condition: The above copyright # notice and this permission notice shall be included in all copies or # substantial portions of this file. # # THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL SOFTWARE IN THE PUBLIC INTEREST, # INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR # IN CONNECTION WITH THIS FILE OR THE USE OR OTHER DEALINGS IN THIS # FILE. # # Except as contained in this notice, the name of the author(s) of # this file shall not be used in advertising or otherwise to promote # the sale, use or other dealings in this file without prior written # authorization from the author(s). debian/watch0000644000000000000000000000034612036246577010236 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|darcs-monitor-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/darcs-monitor \ ([\d\.]*\d)/ debian/compat0000644000000000000000000000000212147616100010362 0ustar 9 debian/patches/0000755000000000000000000000000012147611225010616 5ustar debian/patches/series0000644000000000000000000000003012147611225012024 0ustar haxml-2.22-compat catch debian/patches/catch0000644000000000000000000000241112147611225011621 0ustar Description: Use Control.Exception.catch Author: Joachim Breitner Index: darcs-monitor-0.4.2/darcs-monitor.hs =================================================================== --- darcs-monitor-0.4.2.orig/darcs-monitor.hs 2013-05-18 15:43:35.000000000 +0200 +++ darcs-monitor-0.4.2/darcs-monitor.hs 2013-05-18 16:02:25.847617172 +0200 @@ -1,3 +1,4 @@ +{-# LANGUAGE ScopedTypeVariables #-} {- darcs-monitor - Darcs repository monitor Copyright © 2007 Antti-Juhani Kaijanaho Copyright © 2007 Benja Fallenstein @@ -36,6 +37,7 @@ import System.IO import Text.XML.HaXml hiding (when,version,x,tag,cdata) import Text.XML.HaXml.Posn +import Control.Exception (catch, IOException) import Config import Darcs @@ -182,9 +184,9 @@ readSeenPatches :: MonadIO m => String -> m SeenPatches readSeenPatches repo = - liftIO $ catch (do fc <- readFile (repo ++ seenPatchesFileName) - return (read fc) - ) $ \_ -> return Map.empty + liftIO $ Control.Exception.catch (do fc <- readFile (repo ++ seenPatchesFileName) + return (read fc) + ) $ \(_::IOException) -> return Map.empty processRepo :: (MonadConfig m, MonadIO m) => Bool -> Command m -> FilePath -> m () debian/patches/haxml-2.22-compat0000644000000000000000000000434712147611225013524 0ustar Description: HaXml 2.22 compatibilitiy Author: Joachim Breitner Bug-Debian: http://bugs.debian.org/629784 --- darcs-monitor-0.4.2.orig/darcs-monitor.cabal +++ darcs-monitor-0.4.2/darcs-monitor.cabal @@ -28,7 +28,7 @@ flag splitBase description: Choose the new smaller, split-up base package. Executable darcs-monitor - Build-Depends: mtl, HaXml == 1.20.* + Build-Depends: mtl, HaXml >= 1.22 && <= 1.24 if flag(splitBase) Build-Depends: base >=3 && < 5, containers, directory, process else --- darcs-monitor-0.4.2.orig/darcs-monitor.hs +++ darcs-monitor-0.4.2/darcs-monitor.hs @@ -194,15 +196,15 @@ processRepo dryRun (tag,cmd) repo' = do liftIO $ createDirectoryIfMissing True (repo++dir) seenPatches <- readSeenPatches repo xml <- invokeDarcs ["changes", "--reverse", "--repo="++repo,"--xml-output","-a"] - let Document _ _ (Elem "changelog" _ content) _ = xmlParse repo xml + let Document _ _ (Elem (N "changelog") _ content) _ = xmlParse repo xml let patches = filter (\c -> case c of CElem _e _ -> True ; _ -> False) content - spl <- forM patches $ \ (CElem (Elem "patch" attrs content_) _) -> - do let author = getAttr "author" attrs - localDate = getAttr "local_date" attrs - hash = getAttr "hash" attrs - name = getElem "name" content_ - comment = getElem "comment" content_ + spl <- forM patches $ \ (CElem (Elem (N "patch") attrs content_) _) -> + do let author = getAttr (N "author") attrs + localDate = getAttr (N "local_date") attrs + hash = getAttr (N "hash") attrs + name = getElem (N "name") content_ + comment = getElem (N "comment") content_ (authorName, authorEmail) = parseAuthor author dt = PatchData { patchRepo = repo , patchAuthor = authorName @@ -251,7 +253,7 @@ getAttr name attrs = case lookup name at massage ss massage [] = id -getElem :: Name -> [Content Posn] -> String +getElem :: QName -> [Content Posn] -> String getElem name (CElem (Elem name' _ content) _ : _rest) | name == name' = getContent content "" getElem name (_ : rest) = getElem name rest debian/manpages0000644000000000000000000000002012036246577010710 0ustar darcs-monitor.1 debian/control0000644000000000000000000000273412202120615010566 0ustar Source: darcs-monitor Maintainer: Debian Haskell Group Uploaders: Marco Túlio Gontijo e Silva , Louis Bettens Section: vcs Priority: optional Build-Depends: debhelper (>= 9) , cdbs , haskell-devscripts (>= 0.8.19) , ghc , libghc-mtl-dev , libghc-haxml-dev (>= 1:1.22) , libghc-haxml-dev (<< 1:1.24) Standards-Version: 3.9.4 Homepage: http://wiki.darcs.net/RelatedSoftware/DarcsMonitor Vcs-Darcs: http://darcs.debian.org/pkg-haskell/darcs-monitor Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/darcs-monitor Package: darcs-monitor Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, darcs (>= 1.0.0rc2-1) Recommends: exim4 | mail-transport-agent Enhances: darcs Description: Darcs add-on that sends mail about newly pushed changes It is often desirable to send mail about new changes to software to a mailing list as soon as they are committed to a version control repository. Darcs-monitor adds this functionality to Darcs, an advanced revision control system. . Darcs-monitor is most commonly used as a Darcs apply post-hook, so that email is sent as soon as changes are pushed to the repository under monitoring. . Mails sent by darcs-monitor are configurable, and they can contain the diff of the changes, as well as change metadata. . You will need a mail transport agent (MTA) such as Exim in all but the most unusual situations. debian/rules0000755000000000000000000000023012202120615010230 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk build/$(CABAL_PACKAGE) :: build-ghc-stamp debian/install0000644000000000000000000000013512202120615010545 0ustar default-template usr/share/darcs-monitor dist-ghc/build/darcs-monitor/darcs-monitor /usr/bin debian/changelog0000644000000000000000000001074512202120615011036 0ustar darcs-monitor (0.4.2-4) unstable; urgency=low * /usr/share/darcs-monitor-0.4.2 -> /usr/share/darcs-monitor * Bump version of Build-Depends: on haskell-devscripts -- Louis Bettens Mon, 29 Jul 2013 18:09:27 +0200 darcs-monitor (0.4.2-3) unstable; urgency=low * Enable compat level 9 -- Joachim Breitner Fri, 24 May 2013 12:49:43 +0200 darcs-monitor (0.4.2-2) unstable; urgency=low * Add patches to compile with newer base and current HaXml (Closes: #629784) * Upload to unstable -- Joachim Breitner Sat, 18 May 2013 16:00:03 +0200 darcs-monitor (0.4.2-1) experimental; urgency=low * New upstream version. * control: Standards-Version: Bump to 3.9.2, no changes needed. -- Marco Túlio Gontijo e Silva Mon, 13 Jun 2011 11:28:02 -0300 darcs-monitor (0.4.1-1) experimental; urgency=low * Use ghc instead of ghc6 * New upstream version. * Bump Standards-Version to 3.9.2. -- Marco Túlio Gontijo e Silva Wed, 13 Apr 2011 18:10:03 -0300 darcs-monitor (0.4.0-1) experimental; urgency=low [ Joachim Breitner ] * Added watch file [ Marco Túlio Gontijo e Silva ] * New upstream version. * control: Bump Standards-Version to 3.9.0. No changes needed. * Improve debian/install. -- Marco Túlio Gontijo e Silva Wed, 08 Sep 2010 17:45:10 -0300 darcs-monitor (0.3.8-2) unstable; urgency=low * Fix "default-template is installed in the wrong directory" by changing the installation directory. (Closes: #596127) -- Marco Túlio Gontijo e Silva Wed, 08 Sep 2010 16:52:32 -0300 darcs-monitor (0.3.8-1) unstable; urgency=low * New upstream version. * Fix "override disparity" Changed Section: to vcs. (Closes: #527934) * debian/install: Install default-template in the correct dir. -- Marco Túlio Gontijo e Silva Sun, 07 Mar 2010 12:46:04 -0300 darcs-monitor (0.3.7-1) unstable; urgency=low * New upstream version. * debian/control: Addopt by the Debian Haskell Group. * debian/control: Update Homepage: field. * debian/control: Bump Standards-Version to 3.8.4, no changes needed. * debian/control: Add fields Vcs-*. * Use haskell-devscripts. * debian/source/format: Use 3.0 (quilt) source format. -- Marco Túlio Gontijo e Silva Sun, 28 Feb 2010 11:36:22 -0300 darcs-monitor (0.3.6-2) unstable; urgency=low * Update the HaXml versioned build-dependency to the new epoch. Closes: #552719 (FTBFS) Reported by Lucas Nussbaum -- Antti-Juhani Kaijanaho Thu, 29 Oct 2009 21:30:33 +0200 darcs-monitor (0.3.6-1) unstable; urgency=low * New upstream release Closes: #527824 (FTBFS: Couldn't match expected type `[Char]') Reported by Lucas Nussbaum . * debian-control (Build-Depends): add version limit to HaXml to match the Cabal one * debian-control (Standards-Version): Now 3.8.1. -- Antti-Juhani Kaijanaho Sat, 09 May 2009 13:30:43 +0300 darcs-monitor (0.3.4-2) unstable; urgency=low * debian/rules (clean-build): run Setup only if it is executable * darcs-monitor.cabal (License-File): Remove Closes: #480766 (contains extra copy of GPL) Reported by Jelmer Vernooij . * debian/control (Standards-Version): Now 3.8.0. -- Antti-Juhani Kaijanaho Fri, 04 Jul 2008 20:05:15 +0300 darcs-monitor (0.3.4-1) unstable; urgency=low * New upstream release - fixes FTBFS with ghc 6.8 Closes: #470375 (FTBFS: Couldn't match expected type against inferred type) Reported by Lucas Nussbaum . * debian/copyright: Update copyright years * debian/control: Rename XSB-Homepage as Homepage * debian/control: Build-Depend on ghc >= 6.8 * debian/control: Update Standards-Version to 3.7.3 (no changes required) * darcs-monitor.1.in: Add \& in front of each ellipsis in synposis -- Antti-Juhani Kaijanaho Sun, 04 May 2008 15:24:36 +0300 darcs-monitor (0.3.2-2) unstable; urgency=low * Compile Setup.hs instead of using runghc, as runghc is not supported on all Debian architectures (Fixes an unreported FTBFS bug.) -- Antti-Juhani Kaijanaho Sat, 08 Sep 2007 18:52:26 +0300 darcs-monitor (0.3.2-1) unstable; urgency=low * Initial release, closes: #439940 (ITP). -- Antti-Juhani Kaijanaho Sat, 01 Sep 2007 15:25:38 +0300 debian/source/0000755000000000000000000000000012036246577010502 5ustar debian/source/format0000644000000000000000000000001412036246577011710 0ustar 3.0 (quilt)