--- postgresql-hll-2.7.orig/hll.c +++ postgresql-hll-2.7/hll.c @@ -27,6 +27,7 @@ #include "catalog/pg_type.h" #include "MurmurHash3.h" +#include "utils/int8.h" #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC; --- postgresql-hll-2.7.orig/debian/copyright +++ postgresql-hll-2.7/debian/copyright @@ -0,0 +1,31 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: postgresql-hll +Source: https://github.com/aggregateknowledge/postgresql-hll + +Files: * +Copyright: 2013 Timon Karnezos +License: Apache License version 2.0 + This program is licensed under the Apache License version 2.0. + . + On Debian systems, the full text of the Apache License version 2.0 + can be found in the file + `/usr/share/common-licenses/Apache-2.0'. + +Files: debian/* +Copyright: 2013 Cyril Bouthors +License: GPL-2+ + This package 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. + . + This package 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. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". --- postgresql-hll-2.7.orig/debian/rules +++ postgresql-hll-2.7/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/postgresql-common/pgxs_debian_control.mk + +%: + dh $@ + +SRCDIR = $(CURDIR) + +#override_dh_auto_configure: +# +pg_buildext configure $(CURDIR) version-%v "--libdir=/usr/lib/postgresql/%v/lib --datadir=/usr/share/postgresql-%v-hll" +# +pg_buildext build $(CURDIR) version-%v + +override_dh_auto_clean: + $(MAKE) PG_CONFIG=pg_config clean +# +pg_buildext clean $(CURDIR) build-%v + +override_dh_auto_build: + $(MAKE) PG_CONFIG=pg_config +# +pg_buildext build $(CURDIR) version-%v postgresql-%v-hll + +override_dh_auto_install: + $(MAKE) PG_CONFIG=pg_config DESTDIR=$$PWD/debian/postgresql-hll install +# +pg_buildext install $(CURDIR) build-%v postgresql-%v-hll --- postgresql-hll-2.7.orig/debian/docs +++ postgresql-hll-2.7/debian/docs @@ -0,0 +1 @@ +README.markdown --- postgresql-hll-2.7.orig/debian/compat +++ postgresql-hll-2.7/debian/compat @@ -0,0 +1 @@ +8 --- postgresql-hll-2.7.orig/debian/control +++ postgresql-hll-2.7/debian/control @@ -0,0 +1,25 @@ +Source: postgresql-hll +Section: database +Priority: optional +Maintainer: Cyril Bouthors +Uploaders: Cyril Bouthors +Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all +Standards-Version: 3.9.3 +Homepage: https://github.com/aggregateknowledge/postgresql-hll + +Package: postgresql-hll +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: HyperLogLog extension for PostgreSQL + This Postgres module introduces a new data type `hll` which is a HyperLogLog + data structure. HyperLogLog is a **fixed-size**, set-like structure used for + distinct value counting with tunable precision. For example, in 1280 bytes + `hll` can estimate the count of tens of billions of distinct values with only a + few percent error. + . + In addition to the algorithm proposed in the original paper, this + implementation is augmented to improve its accuracy and memory use without + sacrificing much speed. + . + The full description can be found at + https://github.com/aggregateknowledge/postgresql-hll/blob/master/README.markdown --- postgresql-hll-2.7.orig/debian/changelog +++ postgresql-hll-2.7/debian/changelog @@ -0,0 +1,12 @@ +postgresql-hll (2.7-2) unstable; urgency=low + + * Removed useless sentence in the package description (Closes: #705300). + Thanks to Jonas Smedegaard for pointing this out. + + -- Cyril Bouthors Sat, 13 Apr 2013 10:15:25 +0200 + +postgresql-hll (2.7-1) unstable; urgency=low + + * Initial release (Closes: #701101). + + -- Cyril Bouthors Thu, 21 Feb 2013 16:15:00 +0100 --- postgresql-hll-2.7.orig/debian/pgversions +++ postgresql-hll-2.7/debian/pgversions @@ -0,0 +1,4 @@ +8.4 +9.0 +9.1 +9.2