[DRE-commits] [SCM] samizdat.git branch, master, updated. upstream/0.6.2.20110917-2-g52e929d

Dmitry Borodaenko angdraug at debian.org
Mon Sep 19 22:00:20 UTC 2011


The following commit has been merged in the master branch:
commit 52e929d672beb1d2fbc4ccf5d430f56b0143a6a0
Author: Dmitry Borodaenko <angdraug at debian.org>
Date:   Tue Sep 20 00:15:34 2011 +0300

    First repackaged build
    
    * Merge in earlier packaging information (control, changelog, watch)
    * Update copyright to DEP5
    * Add Conflicts/Breaks/Replaces and transitional packages for the rename
    * Override dh_install to generate .mo files and set exec for cgi-bin

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..070887b
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,69 @@
+Samizdat Setup on Debian
+========================
+
+Synopsis
+--------
+
+1) Install all required and recommended packages:
+
+apt-get install samizdat postgresql-8.3 apache2-mpm-prefork \
+  libapache2-mod-ruby libapache-ruby1.8 libgettext-ruby1.8 \
+  libalgorithm-diff-ruby1.8 libredcloth-ruby1.8
+
+2) Configure Apache:
+
+Copy example configuration file:
+
+gzip -dc /usr/share/samizdat/doc/examples/apache.conf.gz > \
+  /etc/apache2/sites-available/samizdat
+
+Enable it:
+
+ln -s /etc/apache2/sites-available/samizdat \
+  /etc/apache2/sites-enabled/samizdat
+
+Create required directories:
+
+mkdir -p /var/www/samizdat /var/www/samizdat/content \
+  /var/log/apache2/samizdat
+chown www-data:www-data /var/www/samizdat/content
+
+3) Create PostgreSQL database and configure IDENT access for CGI
+scripts:
+
+/usr/bin/samizdat-create-database samizdat pgsql
+echo 'samizdat www-data samizdat' \
+  >> /etc/postgresql/8.3/main/pg_ident.conf
+
+pg_hba.conf:
+
+  # Database administrative login by UNIX sockets
+  local   all         postgres                          ident sameuser
+
+  # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
+  local   samizdat    all                               ident samizdat
+
+  # "local" is for Unix domain socket connections only
+  local   all         all                               ident sameuser
+  # IPv4 local connections:
+  host    all         all         127.0.0.1/32          md5
+  # IPv6 local connections:
+  host    all         all         ::1/128               md5
+
+4) Restart Apache and Samizdat and look at http://localhost/samizdat/
+with a web browser. To test a remote server, you will have to modify
+default Apache and Samizdat configuration files first.
+
+
+Explanations
+------------
+
+(1) If you want full Samizdat functionality, install all Ruby libraries
+that samizdat package recommends. Samizdat works with both mod_ruby and
+FastCGI, mod_ruby generally gives better performance and memory usage,
+while FastCGI would allow you to isolate Ruby interpreter from Apache
+process if you need that.
+
+(2) Copy example/apache.conf to a place where your Apache can find it.
+If you change site name from 'samizdat' to something else, go through
+the config and change it in all appropriate places.
diff --git a/debian/changelog b/debian/changelog
index 60589b3..dcbcffa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,767 @@
-samizdat (0.6.2.20110917-1) UNRELEASED; urgency=low
+samizdat (0.6.2.20110917-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * New upstream snapshot 2011-09-17:
+    - Sanitize, Cache, and Storage libraries are split into subprojects
+    - $samizdat_current_request global replaced with Site class
+    - Antispam module refactored into spam_merge plugin
+    - email_blacklist and poison_field spam protection plugins added
+    - X-(Forwarded-)Scheme and -Port/-Proto headers support
+    - samizdatd Mongrel-based daemon
+    - ruby-magic library is now used instead of Mahoro
+  * Samizdat subprojects split:
+    - add Depends on libwhitewash-ruby1.8, syncache, libgraffiti-ruby1.8
+    - wrap Antispam (spam_merge) into samizdat package
+    - drop libsamizdat-ruby* and add Replaces/Conflicts: libsamizdat-ruby1.8
+    - drop samizdat-drb-server (provided by syncache package).
+  * Include ChangeLog.old (old CVS changelog) in the package.
+  * Switch to gem2deb-based packaging:
+    - source and binary packages renamed to ruby-sqlite3
+    - transitional packages added
+    - source format changed to 3.0 (quilt).
+  * Dependencies rearranged:
+    - Dependency on httpd-cgi downgraded to Suggests: httpd (nginx combined
+      with Mongrel or Webrick is enough, and it doesn't have to be running on
+      the same host)
+    - mongrel added to the list of supported CGI implementations, which was
+      downgraded from Recommends to Suggests
+    - PostgreSQL downgraded from Recommends to Suggests (can be accessed from
+      another host), suggested default PostgreSQL upgraded to postgresql-8.4.
+  * Add Vcs-Browser and Vcs-Mtn fields to debian/control.
+  * Standards-Version upgraded to 3.9.2 (no changes).
+  * Upload to unstable.
 
  -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 17 Sep 2011 18:01:09 +0300
+
+samizdat (0.6.2.20090610-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-06-10
+    - use member_link in page header
+    - update the <del> monkey patch for RedCloth4
+    - include subproperties in properties menu in query editor
+    - fix *_update_part triggers to react when only part_of_subproperty is
+    changed
+    - source code management switched from CVS to Monotone.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri, 12 Jun 2009 13:42:44 +0300
+
+samizdat (0.6.2.20090422.1-1) experimental; urgency=low
+
+  * Upstream bugfix snapshot:
+    - fixed brown-paper-bag bug in timestamp based message locking.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 22 Apr 2009 18:22:08 +0300
+
+samizdat (0.6.2.20090422-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-22:
+    - simple message locking via timestamps
+    - major front and tag page generation speedup
+    - case insensitive sort for tag names.
+  * Added Recommends: libtzinfo-ruby1.8 to samizdat package.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 22 Apr 2009 16:06:53 +0300
+
+samizdat (0.6.2.20090420-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-20:
+    - Savannah patch: #6167 (monolanguage)
+    - render Top Tags as tags cloud
+    - support for OpenDocument formats: odg, odp, ods, odt.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 20 Apr 2009 17:49:55 +0300
+
+samizdat (0.6.2.20090416-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-16:
+    - Savannah patch: #6560 (undetermined language)
+    - Savannah bugs: #24157 (samizdat-role), #23687 (user-friendliness),
+      #23700 ('English' is a wrong msgid)
+    - blog RSS feed, blog links in message info
+    - option to show all replies in one page, including nested
+    - major overhaul of message part links rewriting.
+  * en.po added.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 16 Apr 2009 22:18:10 +0300
+
+samizdat (0.6.2.20090410-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-10:
+    - Savannah patches merged: #6278 (more_links), #6467 (antispam_titles),
+      #6505 (timezone), #6531 (optional sort_languages).
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri, 10 Apr 2009 18:14:20 +0300
+
+samizdat (0.6.2.20090409-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-09:
+    - don't send Accept-Language header when importing feeds (Savannah patch
+      #5881)
+    - allow to force preferred language via URL (Savannah patch #6171)
+    - moderators list (Savannah patch #6283)
+    - translations updated: Belarusian, Russian.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 09 Apr 2009 12:41:20 +0300
+
+samizdat (0.6.2.20090402-2) experimental; urgency=low
+
+  * Disable forced login downcasing to fix logins with capital letters.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 02 Apr 2009 12:34:54 +0300
+
+samizdat (0.6.2.20090402-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-02:
+    - critical bugfixes
+    - blog route rewriting plugin
+    - usability improvements
+    - translations updated: Belarusian, Russian.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 02 Apr 2009 11:54:34 +0300
+
+samizdat (0.6.2.20090401-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-04-01:
+    - usability fixes
+    - updated diagrams
+    - translations updated: Belarusian, Russian.
+  * Section for libsamizdat* changed to ruby.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 01 Apr 2009 16:29:28 +0300
+
+samizdat (0.6.2.20090330-1) experimental; urgency=low
+
+  * New upstream snapshot 2009-03-30:
+    - massive RDF storage update
+    - back to PostgreSQL-only until new triggers are ported
+    - generic resource parts
+    - upload queue
+    - lots of other features, see upstream changelog for details.
+  * Added migration script to documentation.
+  * Copyright file updated.
+  * Debhelper compat level upgraded to 5.
+  * Standards-Version upgraded to 3.8.1.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 30 Mar 2009 22:46:31 +0300
+
+samizdat (0.6.2-2) unstable; urgency=low
+
+  * Upload to unstable.
+  * Added reference to upgrade instructions to NEWS.Debian; only include
+    NEWS.Debian in samizdat package, it's not relevant to libsamizdat-ruby*.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 21 Feb 2009 12:53:39 +0200
+
+samizdat (0.6.2-1) experimental; urgency=low
+
+  * New upstream release:
+    - fixed XSS vulnerability exploitable via message title and member full
+      name (CVE-2009-0359)
+    - upgraded passwords encryption to salted SHA512
+    - added alternative mime types for mp3 and ogg uploads
+    - improved tidy error handling
+    - use IE- and HTML4-compatible numeric entity to escape single quote
+    - updated flowplayer plugin for Flowplayer 3.0.3
+    - documentation and unit tests updated.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 12 Feb 2009 14:49:48 +0200
+
+samizdat (0.6.1.20081028-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-10-28.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 28 Oct 2008 20:54:06 +0200
+
+samizdat (0.6.1.20081025-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-10-25:
+    - allow to force HTTPS-only logins, use secure session cookies
+    - catch REXML::Formatters NameError in Sanitize (Savannah bug #23848)
+    - RdfDataSet fixed to use optional parameter hash in cache key (Savannah
+      bug #24091)
+    - Antispam fixes (Savannah bug #24361 and more)
+    - Flowplayer removed from the package, the plugin code and configuration
+      updated to handle external Flowplayer binaries.
+  * Alternative Depends on libtidy-ruby1.8 downgraded to Suggests until
+    #500461 is fixed. Recommends of libsamizdat-ruby1.8 is not changed: the
+    library is still usable if $SAFE == 0.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 25 Oct 2008 23:41:14 +0300
+
+samizdat (0.6.1.20080928-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-09-28:
+    - compatibility with Ruby/DBI 0.4.0
+    - sensible default redirect for /member/index (Savannah bug #24185)
+    - small (StringIO) uploads fixed.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 28 Sep 2008 22:35:39 +0300
+
+samizdat (0.6.1.20080921-2) experimental; urgency=low
+
+  * In previous version, Recommends of libsamizdat-ruby1.8 package was updated
+    for the Tidy fix, but Depends of samizdat package was missed. In this
+    version, the latter is brought in sync.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 22 Sep 2008 12:41:16 +0300
+
+samizdat (0.6.1.20080921-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-09-21:
+    - Samizdat::Sanitize fixed to use tidy binary via pipe as alternative to
+      (currently broken) Ruby/Tidy DL-based library wrapper.
+  * Recommend tidy in preference to libtidy-ruby.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 21 Sep 2008 16:32:16 +0300
+
+samizdat (0.6.1.20080831-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-08-31:
+    - fixed RSS feeds caching bug
+    - Flowplayer updated to version 2.2.2
+    - flashembed updated to version 0.31
+    - translations updated: Spanish, French, Japanese, Polish
+    - new themes: torun, nihon, venezuela-centro.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 31 Aug 2008 21:06:07 +0300
+
+samizdat (0.6.1.20080811-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-08-11:
+    - fixed display of accounts with unset full name.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 11 Aug 2008 11:37:37 +0300
+
+samizdat (0.6.1.20080807-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-08-07:
+    - bugfix: account creation didn't work, full name is now optional (see
+      NEWS.Debian on database migration)
+    - MIME type for .wmv fixed, for .rm (RealMedia) added
+    - clarifications of config files comments by Boud
+    - documentation update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 07 Aug 2008 19:37:38 +0300
+
+samizdat (0.6.1.20080703-2) experimental; urgency=low
+
+  * debian/rules updated to include Japanese translation.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 03 Jul 2008 23:32:11 +0300
+
+samizdat (0.6.1.20080703-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-07-03:
+    - bugfixes: flv mime type, message_content == nil, ordered inserts in
+      RDF#assert, VoteComponent
+    - Dia diagrams and LVEE-2008 slides added
+    - Flowplayer updated to version 2.2.1
+    - Polish and Japanese translations are updated, Japanese translation is
+      now enabled by default.
+  * Install Dia diagrams in documentation.
+  * Updated to Standards-Version 3.8.0:
+    - Homepage: field added to control file.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 03 Jul 2008 22:46:14 +0300
+
+samizdat (0.6.1.20080525-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-05-25:
+    - use Mahoro library to detect file types (instead of content_type coming
+      with the CGI request which is unreliable and untrustworthy)
+    - minor bugfixes in l10n and error reporting.
+  * Added dependency on libmahoro-ruby1.8.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 25 May 2008 19:01:49 +0300
+
+samizdat (0.6.1.20080510-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-05-10:
+    - license upgraded to GPL 3
+    - Flowplayer flash video player integrated
+    - member settings rearranged
+    - role-based access control plugin (requires a db update).
+  * copyright updated.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 10 May 2008 20:11:31 +0300
+
+samizdat (0.6.1.20080412-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-04-12:
+    - SAFE level handling fixes
+    - SAFE level is at least 1 even without mod_ruby.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 12 Apr 2008 00:18:25 +0300
+
+samizdat (0.6.1.20080407-4) experimental; urgency=low
+
+  * Fixed another mod_ruby security error.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 07 Apr 2008 01:39:43 +0300
+
+samizdat (0.6.1.20080407-3) experimental; urgency=low
+
+  * Added depends on librmagick-ruby1.8.
+  * Fixed mod_ruby security error.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 07 Apr 2008 00:55:17 +0300
+
+samizdat (0.6.1.20080407-2) experimental; urgency=low
+
+  * Fix missing plugins directory.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 07 Apr 2008 00:44:42 +0300
+
+samizdat (0.6.1.20080407-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-04-07:
+    - plugins system
+    - image thumbnails.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 07 Apr 2008 00:31:18 +0300
+
+samizdat (0.6.1.20080322-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-03-22:
+    - include description in RSS feeds (by mend0za)
+    - include request route in exception reports.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 22 Mar 2008 16:46:00 +0200
+
+samizdat (0.6.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Upload to unstable.
+  * Updated depends on PostgreSQL to version 8.3, added alternate depends on
+    MySQL and SQLite3 DBDs for Samizdat engine.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 04 Mar 2008 15:56:15 +0200
+
+samizdat (0.6.0.20080225-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-02-25:
+    - Storage module can be used stand-alone again
+    - minor bugfixes.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 25 Feb 2008 16:58:43 +0200
+
+samizdat (0.6.0.20080224-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-02-24:
+    - minor fixes and optimizations
+    - database schema changed (index added).
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 24 Feb 2008 12:43:38 +0200
+
+samizdat (0.6.0.20080223-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-02-23:
+    - resource rendering improvements
+    - bugfixes
+    - translations updated: Belarusian, Russian.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 23 Feb 2008 02:16:39 +0200
+
+samizdat (0.6.0.20080214-2) experimental; urgency=low
+
+  * Fixed pagination bug caused by spurious modification of GetText strings.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 14 Feb 2008 21:59:05 +0200
+
+samizdat (0.6.0.20080214-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-02-14:
+    - optional sub-patterns in RDF queries
+    - DataSet based pagination system
+    - minor moderation system bugfixes
+    - force lowercase login names.
+  * Fixed bashism in samizdat init script (closes: #465353).
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 14 Feb 2008 20:49:24 +0200
+
+samizdat (0.6.0.20080120-1) experimental; urgency=low
+
+  * New upstream snapshot 2008-01-20:
+    - notify moderator functionality added
+    - upstream bugs fixed: #20678 and more (see upstream changelog)
+    - translations updated: Belarusian, Russian.
+  * Added alternative recommends on SQLite3 and MySQL DBDs for
+    libsamizdat-ruby1.8 (samizdat itself still depends on PostgreSQL).
+  * Updated for Standards-Version 3.7.3.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 20 Jan 2008 18:25:14 +0200
+
+samizdat (0.6.0.20071112-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-11-12:
+    - show non-inline message file size
+    - rate-limit cache.flush
+    - inform guest users that they can't edit even open-for-all messages
+    - translations updated: Belarusian, Russian.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 12 Nov 2007 00:17:06 +0000
+
+samizdat (0.6.0.20071104-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-11-04 "Bonfire Night":
+    - per-resource moderation logs
+    - reverted back to not swapping message with its preferred translation in
+      full mode
+    - upstream bugs fixed: #21286, #20932, #21490, #21242, and more (see
+      upstream changelog)
+    - translations updated: Spanish, French, Japanese, Polish, Belarusian,
+      Russian
+  * Added versioned depends on Ruby with sync.rb fix and Ruby-GetText with
+    support for ISO-639 language tag extraction.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 04 Nov 2007 23:43:39 +0000
+
+samizdat (0.6.0.20070818-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-08-18:
+    - import feeds patch by Boud refactored and integrated
+    - Antipam module unbundled from engine into standalone library
+    - upstream bugs fixed: #19830, #20303, #20305, #20678, #20491
+    - translations updated: Polish, French, Spanish, Belarusian, Russian.
+  * Expanded Apache configuration instructions in README.Debian (thanks Boud).
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 18 Aug 2007 17:58:10 +0100
+
+samizdat (0.6.0.20070618-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-06-18:
+    - fixed yet another logic fault in message editing
+    - translations overhaul: swap completely preferred translation and
+      original.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 18 Jun 2007 20:41:40 +0100
+
+samizdat (0.6.0.20070617-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-06-17:
+    - fixed several security bugs around message ownership
+    - antispam patch by Boud integrated
+    - updated translations: French, Polish
+    - new translation: Japanese (experimental)
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 17 Jun 2007 19:00:17 +0100
+
+samizdat (0.6.0.20070519-2) experimental; urgency=low
+
+  * Don't cache MessageComponent#info.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 19 May 2007 13:58:18 +0100
+
+samizdat (0.6.0.20070519-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-05-19:
+    - monkey fix to sync.rb included in cache.rb
+    - mutual recursion between MessageComponent and Focus fixed
+    - documentation updates.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 19 May 2007 13:41:48 +0100
+
+samizdat (0.6.0.20070509-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-05-09:
+    - Cache rewritten for better deadlock avoidance
+    - requires a patch to be applied to sync.rb in libruby1.8
+    - README.Debian added.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 09 May 2007 21:34:57 +0100
+
+samizdat (0.6.0.20070506-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-05-06:
+    - use cache instead of database for CSRF protection to avoid deadlocks
+    - more input validation.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 06 May 2007 13:02:38 +0100
+
+samizdat (0.6.0.20070505-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-05-05:
+    - language list restored (thanks Boud)
+    - account creation fixed
+    - RSS and input validation fixes.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 05 May 2007 14:22:05 +0100
+
+samizdat (0.6.0.20070501-2) experimental; urgency=low
+
+  * Brown paper bag version: missed some essential directories in debian/rules.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 02 May 2007 01:01:16 +0100
+
+samizdat (0.6.0.20070501-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-05-01:
+    - refactored into MVC pattern (Apache config change required)
+    - passwd renamed to password (database change required)
+    - compatible with Ruby 1.8.6
+    - CSRF protection added
+    - lighttpd support added
+    - diff now includes images and file links
+    - actions in moderation log translated
+    - updated translations: Spanish, Russian, Belarusian
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 01 May 2007 22:19:58 +0100
+
+samizdat (0.6.0.20070218-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-02-18:
+    - more hidden messages fixes
+    - closed loophole in sanitization of absolute image paths
+    - minor ellipsis encoding and Front Page link translation link fixes
+    - updated translations: Polish.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 18 Feb 2007 18:17:22 +0000
+
+samizdat (0.6.0.20070202-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-02-02:
+    - new translations: Spanish, German
+    - updated translations: French, Polish
+    - hidden messages are displayed line-through.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri, 02 Feb 2007 23:16:26 +0000
+
+samizdat (0.6.0.20070120-1) experimental; urgency=low
+
+  * New upstream snapshot 2007-01-20:
+    - better error reporting
+    - MySQL and SQLite support (still not ready for production)
+    - renamed 'displace' to 'replace'
+    - fixed redirect on posting to a multi-page thread.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 20 Jan 2007 12:42:15 +0000
+
+samizdat (0.6.0.20061207-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-12-07:
+    - Sanitize: allow ':' in URI
+    - refactoring: MessageContent
+    - usability: sort replies by id
+    - privacy: send Apache error.log to /dev/null by default.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 07 Dec 2006 21:48:25 +0000
+
+samizdat (0.6.0-3) unstable; urgency=low
+
+  * First upload to unstable.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 04 Dec 2006 12:59:01 +0000
+
+samizdat (0.6.0-2) experimental; urgency=low
+
+  * Catch up to the final release tarball:
+    - SAMIZDAT_VERSION set to 0.6.0
+    - copyrights updated.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 29 Nov 2006 17:46:28 +0000
+
+samizdat (0.6.0-1) experimental; urgency=low
+
+  * New upstream release 0.6.0:
+    - unit and functional tests fully up to date
+    - auto-url in default message format
+    - French translation update
+    - documentation update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 29 Nov 2006 17:06:25 +0000
+
+samizdat (0.5.5.20061127-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-11-27:
+    - manpages for scripts added.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 27 Nov 2006 08:36:14 +0000
+
+samizdat (0.5.5.20061126-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-11-26:
+    - login timeout increased to 4 hours
+    - Polish and French translations updated
+    - fixed query UI bug with unsubstituted literals.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 26 Nov 2006 15:55:48 +0000
+
+samizdat (0.5.5.20061116-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-11-16:
+    - fixed ampersand in URLs
+    - Belarusian and Russian translations updated
+    - documentation update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 16 Nov 2006 04:12:28 +0000
+
+samizdat (0.5.5.20061029-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-10-29:
+    - HTML diff, view source for Textile and HTML
+    - message publishing and deployment cleanup.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 29 Oct 2006 11:07:09 +0000
+
+samizdat (0.5.5.20061024-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-10-24:
+    - fix for memory leak in Tidy.path=()
+    - GetText and sites.yaml fixes by Boud
+    - cache fix for front page image links.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 24 Oct 2006 01:37:34 +0100
+
+samizdat (0.5.5.20060924-1) experimental; urgency=low
+
+  * New upstream snapshot 2006-09-24:
+    - database generation script
+    - experimental SQLite3 support
+    - default login timeouts reduced for tighter security
+    - documentation and unit tests updated
+    - uploads fixed
+    - by Boud: french translation, support old GetText versions < 1.6.0 (sarge
+    has 0.8.0).
+  * Removed version from libgettext-ruby depends.
+  * Debian Policy conformance:
+    - upgraded recommends of httpd-cgi to depends
+    - moved cgi-bin scripts to /usr/share.
+  * Updated description for libsamizdat-ruby.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 24 Sep 2006 14:50:04 +0100
+
+samizdat (0.5.5.20060914-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-09-14:
+    - now works with new libgettext-ruby
+    - block cross-site images in xhtml.yaml.
+  * Samizdat DRB server now enabled by default.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 14 Sep 2006 13:35:16 +0100
+
+samizdat (0.5.5.20060913-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-09-13:
+    - new deployment method: configuration moved from environment variables to
+    files in /etc/samizdat
+    - FastCGI now works with multi-site setups
+    - Apache config example provided
+    - Esperanto translation updated.
+  * Updated Recommends to postgresql-8.1, apache2-mpm-prefork (multi-threaded
+    Apache2 MPMs cause trouble with mod_ruby), libapache2-mod-fcgid and
+    libfcgi-ruby1.8.
+  * Versioned recommends on libgettext-ruby (API changed).
+  * Added LSB init info to the init script.
+  * Bumped Standards-Version to 3.7.2.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Wed, 13 Sep 2006 13:57:07 +0100
+
+samizdat (0.5.5.20060417-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-04-17:
+    - fixed cross-site config cache corruption
+    - selective cache flush, 'All Replies' link of front page
+    - translations updated.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Mon, 17 Apr 2006 16:16:05 +0300
+
+samizdat (0.5.5.20060416-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-04-16:
+    - fixed RSS/DRbUnknown bug
+    - synchronized Cache
+    - more security improvements.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun, 16 Apr 2006 15:05:10 +0300
+
+samizdat (0.5.5.20060409-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-04-09:
+    - fixed: previous uriref focus fix broke normal focuses
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sun,  9 Apr 2006 22:10:43 +0300
+
+samizdat (0.5.5.20060407-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-04-07:
+    - fixed NULL new message language and virtual uriref focus
+    - documentation update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri,  7 Apr 2006 13:15:59 +0300
+
+samizdat (0.5.5.20060228-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-02-28:
+    - Belarussian and Russian translations updated.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 28 Feb 2006 17:44:34 +0200
+
+samizdat (0.5.5.20060221-2) experimental; urgency=low
+
+  * Brown paper bug with 'add new focus' menu fixed
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 21 Feb 2006 19:45:48 +0200
+
+samizdat (0.5.5.20060221-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-02-21:
+    - new focus management interface
+    - massive RDF update
+    - better input validation
+    - Pingback removed.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 21 Feb 2006 18:59:25 +0200
+
+samizdat (0.5.5.20051219-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-12-19:
+    - message publishing UI improvements
+    - Message#nrelated bugfix
+    - moderation log link on front page
+    - documentation and translations update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 20 Dec 2005 13:17:19 +0200
+
+samizdat (0.5.5.20051202-2) experimental; urgency=low
+
+  * Typo in Polish translation fixed.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri, 02 Dec 2005 17:33:52 +0200
+
+samizdat (0.5.5.20051202-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-12-02:
+    - Polish translation added.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Fri, 02 Dec 2005 17:14:14 +0200
+
+samizdat (0.5.5.20051110-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-11-10:
+    - RSS feed for RDF query results
+    - pagination improvement
+    - better fix for Samizdat::Cache
+    - xhtml.yaml lookup instead of absolute path in Template
+    - updated unit tests
+    - updated Belarusian, Russian, Ukrainian translations
+    - minor documentation update.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 10 Nov 2005 21:34:44 +0200
+
+samizdat (0.5.5.20051027-1) experimental; urgency=low
+
+  * New upstream snapshot 2005-10-27:
+    - hidden messages support
+    - bugfixes in RDF, RedCloth, Samizdat::Cache
+    - major documentation update
+    - minor fixes.
+  * Make use of LSB init-functions in samizdat.init when lsb-base is available.
+  * Don't install the unfinished samizdat-site and samizdat-webrick-server.
+  * Updated debian/watch file.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 27 Oct 2005 21:58:56 +0300
+
+samizdat (0.5.5-1) experimental; urgency=low
+
+  * Initial release. Closes: #311271 (ITP).
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 20 Aug 2005 15:01:05 +0300
diff --git a/debian/control b/debian/control
index 2f2c17a..f49c5d0 100644
--- a/debian/control
+++ b/debian/control
@@ -1,19 +1,43 @@
 Source: samizdat
-Section: ruby
+Section: web
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Dmitry Borodaenko <angdraug at debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~), gettext, ruby-graffiti, ruby-whitewash, ruby-rmagick, ruby-magic, libgettext-ruby1.8, libgettext-ruby1.9.1, libtzinfo-ruby1.8, libtzinfo-ruby1.9.1
 Standards-Version: 3.9.2
-#Vcs-Git: git://git.debian.org/pkg-ruby-extras/samizdat.git
-#Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/samizdat.git;a=summary
-Homepage: FIXME
+Vcs-Git: git://github.com/angdraug/samizdat.git
+Vcs-Browser: https://github.com/angdraug/samizdat
+Homepage: http://samizdat.nongnu.org/
 XS-Ruby-Versions: all
 
 Package: samizdat
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-Description: FIXME
- <insert long description, indented with spaces>
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-graffiti, ruby-whitewash, ruby-rmagick, ruby-magic
+Recommends: libgettext-ruby1.8 | libgettext-ruby1.9.1, ruby-algorithm-diff, ruby-redcloth, libtzinfo-ruby1.8 | libtzinfo-ruby1.9.1
+Suggests: nginx | httpd, postgresql, mongrel | libapache2-mod-ruby | libapache2-mod-fcgid, libfcgi-ruby1.8
+Replaces: libsamizdat-ruby (<< 0.6.2.20110917-1~), libsamizdat-ruby1.8 (<< 0.6.2.20110917-1~)
+Breaks: libsamizdat-ruby (<< 0.6.2.20110917-1~), libsamizdat-ruby1.8 (<< 0.6.2.20110917-1~)
+Provides: libsamizdat-ruby, libsamizdat-ruby1.8
+Description: Web collaboration and open publishing engine
+ Generic RDF-based Web engine intended for building collaboration and open
+ publishing web sites. Samizdat engine allows everyone to publish, view,
+ comment, edit, and aggregate text and multimedia resources, vote on ratings
+ and classifications, filter resources by flexible sets of criteria.
+
+Package: libsamizdat-ruby
+Section: oldlibs
+Architecture: all
+Depends: ${misc:Depends}, samizdat
+Description: Transitional package for samizdat
+ This is a transitional package to ease upgrades to the samizdat
+ package. It can safely be removed.
+
+Package: libsamizdat-ruby1.8
+Section: oldlibs
+Architecture: all
+Depends: ${misc:Depends}, samizdat
+Description: Transitional package for samizdat
+ This is a transitional package to ease upgrades to the samizdat
+ package. It can safely be removed.
diff --git a/debian/copyright b/debian/copyright
index f13cc34..85be340 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,33 +1,53 @@
 Format: http://dep.debian.net/deps/dep5
 Upstream-Name: samizdat
-Source: FIXME <http://example.com/>
+Source: http://samizdat.nongnu.org/
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
- 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.
+Copyright: 2002-2009 Dmitry Borodaenko <angdraug at debian.org>
+License: GPL-3+
+
+Files: data/samizdat/js/flashembed.js
+Copyright: 2008, Anssi Piirainen
+License: Expat or GPL-2+
+
+Files: debian/*
+Copyright: 2005-2011 Dmitry Borodaenko <angdraug at debian.org>
+License: GPL-3+
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
  .
- 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.
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
  .
- 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
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 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 THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License: GPL-2+
+ The files hereby included are 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.
  .
- On Debian systems, the full text of the GNU General Public
- License version 2 can be found in the file
- `/usr/share/common-licenses/GPL-2'.
+ On Debian systems, the full text of the GNU General Public License
+ version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
 
-Files: debian/*
-Copyright: 2011 Dmitry Borodaenko <angdraug at debian.org>
-License:
- [LICENSE TEXT]
+License: GPL-3+
+ The files hereby included are 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 3 of the
+ License, or (at your option) any later version.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/ruby-samizdat.docs b/debian/ruby-samizdat.docs
deleted file mode 100644
index d0b0785..0000000
--- a/debian/ruby-samizdat.docs
+++ /dev/null
@@ -1,6 +0,0 @@
-# FIXME: doc/ dir found in source. Consider installing the docs.
-# Examples:
-# doc/manual.html
-# doc/site/*
-# FIXME: READMEs found
-# README
diff --git a/debian/ruby-samizdat.install b/debian/ruby-samizdat.install
deleted file mode 100644
index 0d710f5..0000000
--- a/debian/ruby-samizdat.install
+++ /dev/null
@@ -1,3 +0,0 @@
-# FIXME: data/ dir found in source. Consider installing it somewhere.
-# Examples:
-# data/* /usr/share/samizdat/
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
new file mode 100644
index 0000000..8098f27
--- /dev/null
+++ b/debian/ruby-test-files.yaml
@@ -0,0 +1,2 @@
+--- 
+- test/ts_samizdat.rb
diff --git a/debian/rules b/debian/rules
index a5e7dc8..d496040 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,11 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_install:
+	dh_install
+	chmod 755 debian/samizdat/usr/share/samizdat/cgi-bin/*
+	for lang in be de en eo es fr ja pl ru ua; do \
+		mkdir -p debian/samizdat/usr/share/locale/$$lang/LC_MESSAGES; \
+		msgfmt po/$$lang.po -o debian/samizdat/usr/share/locale/$$lang/LC_MESSAGES/samizdat.mo; \
+	done
diff --git a/debian/samizdat.NEWS b/debian/samizdat.NEWS
new file mode 100644
index 0000000..e981c19
--- /dev/null
+++ b/debian/samizdat.NEWS
@@ -0,0 +1,57 @@
+samizdat (0.6.2.20110917-1) unstable; urgency=low
+
+  As of this version, Sanitize, Cache, and Storage libraries were split
+  into their own subprojects: whitewash, syncache, and graffiti. The
+  layout of the package was changed accordingly.
+
+  In particular, syncache is now used instead of samizdat-drb-server, so
+  you need to make sure that your Samizdat sites can access it: if you
+  changed the default DRb URI from druby://localhost:9000 to something
+  else, you have to modify /etc/default/syncache accordingly.
+
+  This version also introduces samizdatd, a Mongrel-based application server
+  which can be used to run Samizdat in conjunction with a simple Web server in
+  a reverse proxy mode. See samizdatd(1) manpage and the example of nginx
+  configuration for more details.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 17 Sep 2011 18:01:09 +0300
+
+samizdat (0.6.2-2) unstable; urgency=low
+
+  If you are upgrading from Samizdat 0.6.1, follow upgrade instructions in the
+  Samizdat 0.6.2 release notes:
+
+  http://samizdat.nongnu.org/release-notes/samizdat-0.6.2.html#upgrade
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 21 Feb 2009 12:53:39 +0200
+
+samizdat (0.6.1.20081025-1) experimental; urgency=low
+
+  As of this version, Flowplayer binary is no longer included with the
+  samizdat package, if you use it you have to download it from
+  http://flowplayer.org/download.html and put it where your Web server can
+  serve it from. See comments in defaults.yaml for more details.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Sat, 25 Oct 2008 23:41:14 +0300
+
+samizdat (0.6.1.20080807-1) experimental; urgency=low
+
+  As of this version, Member.full_name may be NULL, use the following SQL to
+  update your database schema:
+
+  ALTER TABLE Member ALTER COLUMN full_name DROP NOT NULL;
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Thu, 07 Aug 2008 19:27:50 +0300
+
+samizdat (0.6.0.20070501-1) experimental; urgency=low
+
+  If you are upgrading from a package version lower than 0.6.0.20070501-1, you
+  will need to update database schema. Run following SQL for every site:
+
+  ALTER TABLE Member RENAME COLUMN passwd TO password;
+
+  You should also bring your Apache and Samizdat configuration files in line
+  with new config versions, some incompatible changes were made in this
+  release.
+
+ -- Dmitry Borodaenko <angdraug at debian.org>  Tue, 01 May 2007 22:19:58 +0100
diff --git a/debian/samizdat.default b/debian/samizdat.default
new file mode 100644
index 0000000..eed1831
--- /dev/null
+++ b/debian/samizdat.default
@@ -0,0 +1,13 @@
+# /etc/default/samizdat
+# Dmitry Borodaenko
+
+# Change to "1" to enable starting samizdatd on boot
+ENABLED=0
+
+# Hostname or IP address to bind to. Change this only if your front-end
+# HTTP server is running on a different host.
+#HOST=localhost
+
+# Comma-separated list of ports to bind to, one process per port. For
+# optimal performance, start at least one process per CPU core.
+#PORTS=3000
diff --git a/debian/samizdat.docs b/debian/samizdat.docs
new file mode 100644
index 0000000..508c273
--- /dev/null
+++ b/debian/samizdat.docs
@@ -0,0 +1,9 @@
+README
+NEWS
+TODO
+AUTHORS
+ChangeLog.cvs
+ChangeLog.mtn
+doc/*.txt
+doc/diagrams
+doc/migration
diff --git a/debian/samizdat.init b/debian/samizdat.init
new file mode 100755
index 0000000..a7a4f92
--- /dev/null
+++ b/debian/samizdat.init
@@ -0,0 +1,100 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          samizdat
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Should-Start:      syncache postgresql
+# Should-Stop:       syncache postgresql
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# X-Start-Before:
+# X-Stop-After:
+# Short-Description: Samizdat Mongrel server
+# Description: Samizdat application server based on Mongrel.
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+CHUID=www-data
+DAEMON=/usr/bin/samizdatd
+NAME=samizdatd
+SNAME=samizdat
+DESC="Samizdat Mongrel server"
+PIDFILE="/var/run/$SNAME/$NAME.pid"
+ERROR_LOG="/var/log/$SNAME/$NAME.log"
+PNAME=$NAME
+
+# use dummy lsb init-functions if lsb-base is not installed
+if [ -r /lib/lsb/init-functions ]; then
+    . /lib/lsb/init-functions
+else
+    log_begin_msg() { echo -n "$@"; }
+    log_progress_msg() { echo -n " $@"; }
+    log_success_msg() { echo "$@"; }
+    log_failure_msg() { echo "$@"; }
+    log_warning_msg() { echo "$@"; }
+    log_end_msg() { if [ "$1" = "0" ]; then echo "."; else echo " failed!"; fi }
+fi
+
+# Apparently people have trouble if this isn't explicitly set...
+export TMPDIR=/tmp
+
+# Defaults - don't touch, edit /etc/default/samizdat
+ENABLED=0
+OPTIONS="--user $CHUID --pidfile $PIDFILE --error-log $ERROR_LOG"
+NICE=
+
+test -f "/etc/default/$SNAME" && . /etc/default/"$SNAME"
+
+if [ "$ENABLED" = "0" ]; then
+    log_success_msg "$DESC: disabled, see /etc/default/$SNAME"
+    exit 0
+fi
+
+test -f $DAEMON || exit 0
+
+[ -n "$HOST" ] && OPTIONS="$OPTIONS --host $HOST"
+[ -n "$PORTS" ] && OPTIONS="$OPTIONS --ports $PORTS"
+
+set -e
+
+case "$1" in
+  start)
+	log_begin_msg "Starting $DESC:"
+	log_progress_msg $NAME
+	start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \
+	    $NICE --oknodo --startas $DAEMON -- $OPTIONS
+	log_end_msg $?
+	;;
+
+  stop)
+	log_begin_msg "Stopping $DESC:"
+	log_progress_msg "$NAME"
+	start-stop-daemon --stop --pidfile $PIDFILE --oknodo
+	log_end_msg $?
+	;;
+
+  reload|force-reload)
+	log_begin_msg "Reloading $DESC:"
+	log_progress_msg $NAME
+	start-stop-daemon --stop --pidfile $PIDFILE --signal HUP
+	log_end_msg $?
+	;;
+
+  restart)
+	log_begin_msg "Restarting $DESC:"
+	log_progress_msg $NAME
+	start-stop-daemon --stop --pidfile $PIDFILE --oknodo
+	start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \
+	    $NICE --oknodo --startas $DAEMON -- $OPTIONS
+	log_end_msg $?
+	;;
+
+  *)
+	N=/etc/init.d/$SNAME
+	log_failure_msg "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
diff --git a/debian/samizdat.install b/debian/samizdat.install
new file mode 100644
index 0000000..bda96bd
--- /dev/null
+++ b/debian/samizdat.install
@@ -0,0 +1,5 @@
+data/* /usr/share/samizdat/
+cgi-bin/* /usr/share/samizdat/cgi-bin/
+data/samizdat/sites.yaml /etc/samizdat
+data/samizdat/defaults.yaml /etc/samizdat
+data/samizdat/config.yaml /etc/samizdat/sites/samizdat.yaml
diff --git a/debian/samizdat.manpages b/debian/samizdat.manpages
new file mode 100644
index 0000000..f24bd33
--- /dev/null
+++ b/debian/samizdat.manpages
@@ -0,0 +1 @@
+doc/man/*
diff --git a/debian/samizdat.postinst b/debian/samizdat.postinst
new file mode 100644
index 0000000..603176b
--- /dev/null
+++ b/debian/samizdat.postinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+PACKAGE="samizdat"
+PIDDIR="/var/run/$PACKAGE"
+LOGDIR="/var/log/$PACKAGE"
+
+case "$1" in
+	configure)
+	[ -d "$PIDDIR" ] || install -o www-data -g www-data -d "$PIDDIR"
+	[ -d "$LOGDIR" ] || install -d "$LOGDIR"
+	;;
+
+	failed-upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing)
+	;;
+
+	*)
+	echo "postinst called with unknown argument \`$1'" >&2;
+	exit 1;
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/samizdat.postrm b/debian/samizdat.postrm
new file mode 100644
index 0000000..b3b636c
--- /dev/null
+++ b/debian/samizdat.postrm
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+PACKAGE="samizdat"
+PIDDIR="/var/run/$PACKAGE"
+
+#DEBHELPER#
+
+case "$1" in
+	purge)
+	rm -rf "$PIDDIR"
+	;;
+
+	remove|upgrade|disappearfailed-install|abort-install|abort-upgrade|failed-upgrade)
+	;;
+
+	*)
+	echo "postrm called with unknown argument \`$1'" >&2;
+	;;
+esac
+
+exit 0
diff --git a/debian/watch b/debian/watch
index 6d4cd48..e975f11 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/samizdat .*/samizdat-(.*).tar.gz
+http://savannah.nongnu.org/download/samizdat/ samizdat-([\d\.]*).tar.gz

-- 
samizdat.git



More information about the Pkg-ruby-extras-commits mailing list