diff --git a/.gitignore b/.gitignore index 1b9245b..5dbaa80 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ local-data pgloader.1 pgloader.html pgloader.pdf +debian/pgloader.debhelper.log +debian/pgloader.substvars +debian/pgloader/ \ No newline at end of file diff --git a/Makefile b/Makefile index 98767a1..1374a75 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ BUILDAPP = build/buildapp MANIFEST = build/manifest.ql PGLOADER = build/pgloader.exe +DEBUILD_ROOT = /tmp/pgloader + all: $(PGLOADER) docs: pandoc pgloader.1.md -o pgloader.1 - pandoc pgloader.1.md -o pgloader.html - pandoc pgloader.1.md -o pgloader.pdf ~/quicklisp/local-projects/qmynd: git clone https://github.com/qitab/qmynd.git $@ @@ -91,6 +91,13 @@ vm-build: vm test: $(MAKE) PGLOADER=$(realpath $(PGLOADER)) -C test all +deb: + mkdir -p $(DEBUILD_ROOT) && rm -rf $(DEBUILD_ROOT)/* + rsync -Ca --exclude=build/* ./ $(DEBUILD_ROOT)/ + cd $(DEBUILD_ROOT) && make -f debian/rules orig + cd $(DEBUILD_ROOT) && debuild -us -uc -sa + cp -a /tmp/pgloader_* build/ + check: test ; .PHONY: test diff --git a/bootstrap.sh b/bootstrap.sh index a68e2ec..34aa9c7 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -20,6 +20,7 @@ sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3 \ postgresql-9.3-ip4r \ sbcl \ git patch unzip \ + devscripts \ libsqlite3-dev sudo DEBIAN_FRONTEND=noninteractive \ diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..c75475f --- /dev/null +++ b/debian/README.source @@ -0,0 +1,6 @@ +pgloader for Debian +------------------- + +See https://github.com/dimitri/pgloader + + -- Dimitri Fontaine , Mon, 9 Dec 2013 11:59:38 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e50cd22 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pgloader (3.0.94-1) unstable; urgency=low + + * Release Candidate 4. + + -- Dimitri Fontaine Mon, 09 Dec 2013 14:58:51 +0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..99630f9 --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: pgloader +Section: database +Priority: extra +Maintainer: Dimitri Fontaine +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.3 +Homepage: https://github.com/dimitri/pgloader +Vcs-Git: https://github.com/dimitri/pgloader.git +Vcs-Browser: https://github.com/dimitri/pgloader + +Package: pgloader +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: extract, transform and load data into PostgreSQL + pgloader imports data from different kind of sources and COPY it into + PostgreSQL. + . + The command language is described in the manual page and allows to describe + where to find the data source, its format, and to describe data processing + and transformation. + . + Supported source formats include CSV, fixed width flat files, dBase3 files + (DBF), and SQLite and MySQL databases. In most of those formats, pgloader + is able to auto-discover the schema and create the tables and the indexes + in PostgreSQL. In the MySQL case it's possible to edit CASTing rules from + the pgloader command directly. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c09eeb9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pgloader +Source: https://github.com/dimitri/pgloader + +Files: * +Copyright: 2013 Dimitri Fontaine + +License: The PostgreSQL Licence + +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 UNIVERSITY OF CALIFORNIA 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 UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + +THE UNIVERSITY OF CALIFORNIA 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 UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO +PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. \ No newline at end of file diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..bab84cd --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.md +pgloader.1.md diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..217ef5a --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +pgloader_3.0.94-1_amd64.deb database extra diff --git a/debian/pgloader.install b/debian/pgloader.install new file mode 100644 index 0000000..dfe51f3 --- /dev/null +++ b/debian/pgloader.install @@ -0,0 +1 @@ +build/pgloader.exe /usr/bin diff --git a/debian/pgloader.links b/debian/pgloader.links new file mode 100644 index 0000000..2560077 --- /dev/null +++ b/debian/pgloader.links @@ -0,0 +1 @@ +usr/bin/pgloader.exe usr/bin/pgloader diff --git a/debian/pgloader.manpages b/debian/pgloader.manpages new file mode 100644 index 0000000..5937f10 --- /dev/null +++ b/debian/pgloader.manpages @@ -0,0 +1 @@ +pgloader.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c4c5369 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +PKGVERS = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }') +EXCLUDE = --exclude-vcs --exclude=debian --exclude=build + +orig: clean + cd .. && tar czf pgloader_$(PKGVERS).orig.tar.gz $(EXCLUDE) pgloader + +override_dh_auto_test: + # do nothing + +override_dh_strip: + # do nothing + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/params.lisp b/src/params.lisp index 5dcb3a0..9b54ed1 100644 --- a/src/params.lisp +++ b/src/params.lisp @@ -29,7 +29,7 @@ (in-package :pgloader.params) -(defparameter *version-string* "3.0.93" +(defparameter *version-string* "3.0.94" "pgloader version strings, following Emacs versionning model.") ;; we can't use pgloader.utils:make-pgstate yet because params is compiled