Commit 0591a7da authored by Antonio Terceiro's avatar Antonio Terceiro

Remove all references to alioth

parent d3f1939c
......@@ -11,8 +11,8 @@ suitable for packaging according to the needs of Debian developers.
Please see the following pages for more information, specially about why this
is needed:
* http://pkg-ruby-extras.alioth.debian.org/rubygems.html
* http://pkg-ruby-extras.alioth.debian.org/upstream-devs.html
* https://wiki.debian.org/Teams/Ruby/RubyExtras/OnRubygems
* https://wiki.debian.org/Teams/Ruby/RubyExtras/UpstreamDevelopers
There is a lot of Ruby developers that only release software as gems on
http://rubygems.org/. gemwatch is an application to circumvent this practice:
......@@ -27,7 +27,7 @@ Debian package maintainers can use the following syntax in their watch files to
be properly warned of new upstream releases::
version=4
https://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/${gem} .*/${gem}-(.*)\.tar\.gz
https://gemwatch.debian.net/${gem} .*/${gem}-(.*)\.tar\.gz
Gem conversion to tarball
-------------------------
......@@ -59,17 +59,11 @@ Running as CGI
** ``http://mysite.com/cgi-bin/gemwatch``, where ``gemwatch`` is a symlink to gemwatch's ``cgi`` script
** ``http://mysite.com/gemwatch`` is a symlink (or an alias) to gemwatch's ``public`` directory.
Deploying to alioth
-------------------
To deploy gemwatch to alioth, it is sufficient to run ``rake alioth`` under
gemwatch root directory (the one containing the Rakefile).
License
-------
Copyright © 2010, Antonio Terceiro <terceiro@softwarelivre.org> and the Debian
pkg-ruby-extras team <http://pkg-ruby-extras.alioth.debian.org/>.
Copyright © 2010-2018, Antonio Terceiro <terceiro@debian.org> and the Debian
pkg-ruby-extras team <https://wiki.debian.org/Teams/Ruby>.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
......
ENV['LC_ALL'] = 'POSIX'
ALIOTH_DEPLOY_DIR = '/var/lib/gforge/chroot/home/groups/pkg-ruby-extras/gemwatch'
# The `2>/dev/null || true` in the commands below to ignore errors when trying
# to change file attributes under tmp/, because the files there are created by
# the www-data user
ALIOTH_DEPLOY_COMMANDS = [
"chgrp -R pkg-ruby-extras #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
"chmod -R a+rX #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
"ln -sfT /home/groups/pkg-ruby-extras/gemwatch.cache #{ALIOTH_DEPLOY_DIR}/tmp",
"chmod -R g+w #{ALIOTH_DEPLOY_DIR} 2>/dev/null || true",
].join('; ')
desc "Deploys gemwatch on alioth.debian.org"
task :deploy do
if !system('git diff-index --quiet HEAD')
puts "E: can't deploy with uncommitted changes"
system 'git status'
exit(1)
end
sh 'git push'
sh "rsync -avtPC --exclude /.git --exclude /tmp --exclude /.bundle ./ alioth.debian.org:#{ALIOTH_DEPLOY_DIR}/"
sh "ssh alioth.debian.org '#{ALIOTH_DEPLOY_COMMANDS}'"
sh 'git tag $(date --utc +%Y-%m-%d-%H-%M-$USER)'
sh 'git push --tags'
end
task :alioth => :deploy
task :default do
system 'rake -T -s'
end
......@@ -5,14 +5,7 @@ require 'haml'
require 'restclient'
require 'json'
begin
# alioth
require 'gem2tgz'
rescue LoadError
# local, up to date enviroment
require 'gem2deb/gem2tgz'
Gem2Tgz = Gem2Deb::Gem2Tgz
end
require 'gem2tgz'
require 'open-uri'
......
......@@ -21,7 +21,7 @@
%div
Copyright &copy; 2010 - the
%a{:href => "http://www.debian.org/"} Debian
%a{:href => "http://pkg-ruby-extras.alioth.debian.org/"} pkg-ruby-extras team.
%a{:href => "https://wiki.debian.org/Teams/Ruby"} Debian Ruby team.
%div
gemwatch is free software, released under the
%a{:href => 'http://www.gnu.org/licenses/agpl.html'} GNU Affero General Public License.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment