Navigation Menu

Skip to content

Commit

Permalink
Support Ubuntu package
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 28, 2015
1 parent 1a4d2bd commit 5324725
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Rakefile
Expand Up @@ -3,6 +3,14 @@
package = "pgroonga"
rsync_base_path = "packages@packages.groonga.org:public"
gpg_uid = "45499429"
groonga_source_dir_candidates = [
"../groonga.clean",
"../groonga",
]
groonga_source_dir = groonga_source_dir_candidates.find do |candidate|
File.exist?(candidate)
end
groonga_source_dir = File.expand_path(groonga_source_dir) if groonga_source_dir

def find_version(package)
control_content = File.read("#{package}.control")
Expand All @@ -13,6 +21,13 @@ def find_version(package)
end
end

def launchpad_uploader_pgp_key
env = "LAUNCHPAD_UPLOADER_PGP_KEY"
key = ENV[env]
raise "Specify #{env} environment variable" if key.nil?
key
end

version = find_version(package)

archive_base_name = "#{package}-#{version}"
Expand Down Expand Up @@ -142,4 +157,17 @@ postgresql-devel
"#{rsync_path}/#{distribution}")
end
end

namespace :ubuntu do
desc "Upload package"
task :upload do
ruby("#{groonga_source_dir}/packages/ubuntu/upload.rb",
"--package", package,
"--version", version,
"--source-archive", archive_name,
"--code-names", "utopic",
"--debian-directory", "packages/debian",
"--pgp-sign-key", launchpad_uploader_pgp_key)
end
end
end
5 changes: 5 additions & 0 deletions packages/debian/changelog
@@ -0,0 +1,5 @@
pgroonga (0.2.0-1) unstable; urgency=low

* Initial release

-- Kouhei Sutou <kou@clear-code.com> Thu, 29 Jan 2015 00:00:00 +0900
1 change: 1 addition & 0 deletions packages/debian/compat
@@ -0,0 +1 @@
9
22 changes: 22 additions & 0 deletions packages/debian/control
@@ -0,0 +1,22 @@
Source: pgroonga
Section: libs
Priority: optional
Maintainer: PGroonga Project <packages@groonga.org>
Build-Depends:
debhelper (>= 9),
pkg-config,
libgroonga-dev,
postgresql-server-dev-9.4
Standards-Version: 3.9.3
Homepage: https://github.com/pgroonga/pgroonga

Package: postgresql-9.4-pgroonga
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
libgroonga0,
postgresql-server-9.4
Description: Fast full-text search plugin for PostgreSQL based on Groonga
PGroonga is a PostgreSQL plugin. It provides fast full-text search feature.
It is based on Groonga full-text search engine.
35 changes: 35 additions & 0 deletions packages/debian/copyright
@@ -0,0 +1,35 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Contact: Kouhei Sutou <kou at clear-code.com>
Source: http://packages.groonga.org/source/pgroonga/

Files: *
Copyright: 2015 Kouhei Sutou <kou@clear-code.com>
License: PostgreSQL

Files: pgroonga.c
pgroonga.h
pgroonga_types.c
pgroonga--*.sql
Copyright: 2015 Kouhei Sutou <kou@clear-code.com>
2010 Itagaki Takahiro
2009-2010, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
1996-2010, The PostgreSQL Global Development Group
1994, The Regents of the University of California
License: PostgreSQL

License: PostgreSQL
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose, without fee, and without a written
agreement is hereby granted, provided that the above copyright notice and
this paragraph and the following two paragraphs appear in all copies.
.
IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE TO ANY PARTY FOR DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
IF THE COPYRIGHT HOLDERS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.
THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
AND THE COPYRIGHT HOLDERS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Empty file added packages/debian/patches/series
Empty file.
13 changes: 13 additions & 0 deletions packages/debian/rules
@@ -0,0 +1,13 @@
#!/usr/bin/make -f
# -*- makefile-gmake -*-
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
dh $@

# disable 'make check'.
override_dh_auto_test:
1 change: 1 addition & 0 deletions packages/debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions packages/debian/watch
@@ -0,0 +1,2 @@
version=3
http://packages.groonga.org/source/pgroonga/pgroonga-(.+).tar.gz

0 comments on commit 5324725

Please sign in to comment.