[DRE-commits] [diaspora] 01/02: move upstream-compat to separate branch

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Aug 30 16:33:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository diaspora.

commit 9371fab594b76e7509a6160eb9321f917267d4f1
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Aug 30 22:00:52 2015 +0530

    move upstream-compat to separate branch
---
 debian/control                           | 35 ---------------
 debian/diaspora-upstream-compat.postinst | 77 --------------------------------
 2 files changed, 112 deletions(-)

diff --git a/debian/control b/debian/control
index 36f6e18..697321a 100644
--- a/debian/control
+++ b/debian/control
@@ -143,38 +143,3 @@ Description: distributed social networking service
  Learn more about diaspora at http://diasporafoundation.org
  .
  This package configures PostgreSQL as the database and Nginx as the web server.
-
-Package: diaspora-upstream-compat
-Section: contrib/web
-Architecture: all
-XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
-Conflicts: ruby-roxml (>> 3.1.6),
- ruby-redcarpet (<< 3.3.2),
- ruby-rails-timeago (>> 2.11.0),
- ruby-rails-assets-jquery (>> 1.11.2),
- ruby-sass-rails (>> 5.0.1),
- ruby-compass-rails (>> 2.0.4)
-Replaces: ruby-roxml (>> 3.1.6),
- ruby-redcarpet (<< 3.3.2),
- ruby-rails-timeago (>> 2.11.0),
- ruby-rails-assets-jquery (>> 1.11.2),
- ruby-sass-rails (>> 5.0.1),
- ruby-compass-rails (>> 2.0.4)
-Provides: ruby-roxml (= 3.1.6),
- ruby-redcarpet (= 3.3.2),
- ruby-rails-assets-jquery (= 1.11.2),
- ruby-rails-timeago (= 2.11.0),
- ruby-sass-rails (= 5.0.1),
- ruby-compass-rails (= 2.0.4)
-Description: distributed social networking service - upstream compatibility
- Diaspora (currently styled diaspora* and formerly styled DIASPORA*) is a free
- personal web server that implements a distributed social networking service.
- .
- This package provides compatibility with upstream gem dependency graph. This 
- is mainly for reproducing bugs with an upstream supported dependency graph.
- .
- You may be interested in diaspora-installer package which installs diaspora
- with upstream supported gem dependency graph.
- .
- This is a dependency package
diff --git a/debian/diaspora-upstream-compat.postinst b/debian/diaspora-upstream-compat.postinst
deleted file mode 100755
index 4358210..0000000
--- a/debian/diaspora-upstream-compat.postinst
+++ /dev/null
@@ -1,77 +0,0 @@
-#! /bin/sh
-# postinst script for gnukhata-core-engine
-# copied from postinst script for hplip
-# $Id: hplip.postinst,v 1.1 2005/10/15 21:39:04 hmh Exp $
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-gem_install() {
-if ! gem list ^$1$ | grep "$1 ($2)"
-	then 
-		if echo $1 |grep ^rails-assets
-		then
-			gem install --source https://rails-assets.org -v=$2 $1
-		else
-			gem install -v=$2 $1
-		fi
-fi
-}
-
-case "$1" in
-    configure)
-
-	. /etc/diaspora/diaspora-common.conf
-	echo "Installing gems with rubygems..."
-	echo "(they have a version in debian which differ from upstream"
-	echo "supported dependency graph)"
-# These gems need more work before they can be kept in sync
-	invoke-rc.d diaspora stop
-	gem_install roxml 3.1.6
-	gem_install redcarpet 3.3.2
-	gem_install rails-timeago 2.11.0
-	gem_install compass-rails 2.0.4
-	gem_install rails-assets-jquery 1.11.2
-	
-	echo "Verifying we have all required libraries..."
-	cd ${diaspora_home}
-	. ${diaspora_conf}
-	su diaspora -s /bin/sh -c "rm ${diaspora_home}/Gemfile.lock"
-	su diaspora -s /bin/sh -c 'bundle install --local'
-	su diaspora -s /bin/sh -c 'bundle exec rake tmp:cache:clear assets:precompile'	
-#	invoke-rc.d diaspora start
-# TODO: figure out why inovke-rc.d fails to start diaspora
-	echo "To start diaspora, run # /etc/init.d/diaspora start"
-   ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-#DEBHELPER#
-
-exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora.git



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