Commit d6f42561 authored by Julian Wiesener's avatar Julian Wiesener

initial import

parents
Copyright (c) 2018 UPLEX Nils Goroll Systemoptimierung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
#!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg"
BUILDDIR="${PREFIX}/build"
cd ${DPKGDIR} || exit 1
build_dist () {
DEBRELEASE=$1
ARCH=$2
if [ -z "${DEBRELEASE}" ] || [ -z "${ARCH}" ]; then
echo "Usage build_dist dist arch"
exit 1
fi
SBUILDDIR="${BUILDDIR}/archive/${VERSION}/${DEBRELEASE}"
ERR=0
for dpkg in $(<build_dpkg.list); do
if [ "${dpkg}" == "__push_repo" ]; then
push_repo || exit 1
else
VERSION="${VERSION}" DEBRELEASE="${DEBRELEASE}" \
ARCH="${ARCH}" builddpkg ${dpkg} || let ERR+=1
fi
done
echo "Build for ${DEBRELEASE} done with $ERR failed packages"
return $ERR
}
push_repo () {
aptly repo add ${DEBRELEASE} "${SBUILDDIR}" || return 1
aptly publish update "${DEBRELEASE}" || return 1
return 0
}
if [ -z "${VERSION}" ]; then
VERSION=$(date "+%Y%m%d")
fi
if [ -z "${DEBRELEASE}" ]; then
for dist in $(<build_dist.list); do
ERR=0
build_dist ${dist/\// }
done
else
if [ -z "${ARCH}" ]; then
ARCH="amd64"
fi
build_dist "${DEBRELEASE}" "${ARCH}"
fi
#!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg"
PKGNAME="$1"
BUILDDIR="${PREFIX}/build"
if [ -z "${ARCH}" ]; then
ARCH="amd64"
fi
if [ -z "${PKGNAME}" ]; then
echo "Usage: $0 pkg_name"
exit 1
fi
DEBDIR="${PREFIX}/dpkg/${PKGNAME}/debian"
if ! [ -d "${DEBDIR}" ]; then
echo "ERROR: dpkg directory not found"
exit 1
fi
if ! [ -d "${BUILDDIR}" ]; then
mkdir -p "${BUILDDIR}" || exit 1
fi
cd "${BUILDDIR}" || exit 1
SRCDIR=${PKGNAME}
GIT_UPSTREAM="$(awk '/^Vcs-Git:/ { print $2 }' ${DEBDIR}/control)"
GIT_CHEKOUT="-B master origin/master"
DEFAULT_CHANGE_MSG="Automatic build from git"
if [ -z "${DEBRELEASE}" ]; then
DEBRELEASE="jessie"
fi
if [ -z "${VERSION}" ]; then
VERSION=$(date "+%Y%m%d")
fi
SBUILDDIR="${BUILDDIR}/archive/${VERSION}/${DEBRELEASE}"
if [ -f "${PREFIX}/dpkg/${PKGNAME}/overrides" ]; then
. "${PREFIX}/dpkg/${PKGNAME}/overrides"
fi
FULL_VERSION="${VERSION}+${DEBRELEASE}"
if [ -z "${CHANGE_MSG}" ]; then
CHANGE_MSG="${DEFAULT_CHANGE_MSG}"
fi
if ! [ -d "${SRCDIR}" ]; then
if ! [ -z "${GIT_UPSTREAM}" ]; then
git clone "${GIT_UPSTREAM}" || exit 1
else
echo "No method to fetch source"
exit 1
fi
fi
SRCDIR="${BUILDDIR}/${SRCDIR}"
cd "${SRCDIR}" || exit 1
if ! [ -z "${GIT_CHEKOUT}" ]; then
git fetch || exit 1
git checkout ${GIT_CHEKOUT} || exit 1
fi
if [ -f ./debian/changelog ]; then
rm ./debian/changelog || exit 1
fi
rsync -a ${DEBDIR} ./
if type prep_src >/dev/null 2>&1; then
prep_src || exit 1
fi
sed "s/DPGK_VERSION/${FULL_VERSION}/g" ${DEBDIR}/control > debian/control || exit 1
if [ -f debian/changelog ]; then
dch -u low -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1
else
dch -u low --package "${PKGNAME}" --create -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1
fi
if ! [ -d "${SBUILDDIR}" ]; then
mkdir -p "${SBUILDDIR}" || exit 1
fi
cd "${SBUILDDIR}" || exit 1
sbuild -d ${DEBRELEASE} --arch=${ARCH} ${SRCDIR} || exit 1
rm ${BUILDDIR}/${PKGNAME}_${FULL_VERSION}*
#!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg"
PKGNAME="$1"
if [ -z "${PKGNAME}" ]; then
echo "Usage: $0 pkg_name"
exit 1
fi
if ! [ -d "${DPKGDIR}" ]; then
echo "ERROR: dpkg directory not found"
exit 1
fi
cd "${PREFIX}/dpkg" || exit 1
mkdir "${PKGNAME}" || exit 1
mkdir "${PKGNAME}/debian" || exit 1
TGTDIR="${PREFIX}/dpkg/${PKGNAME}/debian"
cd template_vmod/debian || exit 1
for FI in *; do
sed "s/TEMPLATE_VMOD_NAME/${PKGNAME}/g" ${FI} > ${TGTDIR}/${FI}
done
chmod +x ${TGTDIR}/rules
echo "Done, manual customization needed in ${TGTDIR}"
echo " Set \"Description\" and aditional dependencies in control file"
echo " Add license to copyright file"
jessie/amd64
trusty/amd64
varnish
__push_repo
dcs-classifier
libvmod-blobdigest
libvmod-blobsynth
libvmod-geoip2
libvmod-re
varnish-modules
libvmod-re2
__push_repo
Source: dcs-classifier
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
libcrypt-rc4-perl,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://code.uplex.de/uplex-varnish/dcs_classifier.git
Homepage: https://code.uplex.de/uplex-varnish/dcs_classifier
Package: dcs-classifier
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: Varnish module for Device Classifier Service (DCS) database
.
This Varnish module provides an efficient implementation of device
detection and classification using the downloadable version of the
Netbiscuits Device Classifier Service (DCS) database. or a
self-provided database. An example database is included.
.
Netbiscuits Device Classifier Service (DCS) database
----------------------------------------------------
.
The DCS database is not part of this module and needs to be obtained
from Netbiscuits, please refer to
http://www.netbiscuits.com/device-detection/ as a starting point.
Copyright 2014-2016 UPLEX - Nils Goroll Systemoptimierung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS *AS IS* AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
usr/share/doc/dcs_classifier
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
DCS_KEY="demo" DCS_DBFILE="dcs_demo.db" dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
SRCDIR=dcs_classifier
libmaxminddb (1.3.1-1) unstable; urgency=medium
* New upstream release.
* Bump Standards-Version to 4.1.2, no changes needed.
* Add NOTICE to debian/docs, per Apache-2.0's requirements, as identified by
lintian.
* Add patch to remove Pandoc version from manpages, as that may introduce
deltas between builds on different architecture, thus breaking multi-arch.
(Closes: #874247)
* Add patch to pass -export-symbols-regex to LDFLAGS, to export only MMDB_*
symbols and thus avoid exporting the new data_pool_* symbols, which are
seemingly internal-only.
-- Faidon Liambotis <paravoid@debian.org> Wed, 27 Dec 2017 04:01:35 +0200
libmaxminddb (1.2.1-1) unstable; urgency=medium
* New upstream release.
* Bump Standards-Version to 4.0.0.
* Bump debhelper compatibility level to 10.
-- Faidon Liambotis <paravoid@debian.org> Fri, 04 Aug 2017 22:40:10 +0300
libmaxminddb (1.2.0-1) unstable; urgency=medium
* New upstream release.
* Bump Standards-Version to 3.9.8.
* Pass -O--dbgsym-migration to dh_strip and relax the debhelper dependency
to ease backports.
-- Faidon Liambotis <paravoid@debian.org> Fri, 15 Jul 2016 13:09:07 +0300
libmaxminddb (1.1.5-1) unstable; urgency=medium
* New upstream release. (Closes: #816783)
- Fixes bound checking on several datatypes. (Closes: #805657)
- Drop patch fix-exec-includedir, superseded upstream.
* Bump Standards-Version to 3.9.7, no changes needed.
* Switch Homepage, Vcs-Git and Vcs-Browser to https URLs.
* Ship the pkg-config .pc file in the -dev package.
* Migrate from our own -dbg package to the automatic -dbgsym package.
-- Faidon Liambotis <paravoid@debian.org> Wed, 23 Mar 2016 01:20:35 +0200
libmaxminddb (1.0.4-2) unstable; urgency=medium
* Switch libmaxminddb-dev to multiarch include paths, due to
architecture-dependent header files. (Closes: #788878)
-- Faidon Liambotis <paravoid@debian.org> Sun, 19 Jul 2015 02:22:02 +0300
libmaxminddb (1.0.4-1) unstable; urgency=medium
* Initial release. (Closes: #741199)
-- Faidon Liambotis <paravoid@debian.org> Tue, 12 May 2015 19:30:28 +0300
Source: libmaxminddb
Section: net
Priority: optional
Maintainer: Faidon Liambotis <paravoid@debian.org>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
perl,
libipc-run3-perl,
libtest-output-perl,
# for dev-bin/make-man-pages.pl
pandoc,
libipc-system-simple-perl,
libfile-slurp-perl,
libfile-which-perl
Standards-Version: 3.9.6
Homepage: https://maxmind.github.io/libmaxminddb/
Vcs-Git: git://github.com/maxmind/libmaxminddb.git
Package: libmaxminddb0
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Suggests: mmdb-bin
Description: IP geolocation database library
The libmaxminddb library provides a C library for reading MaxMind DB files,
including the GeoIP2 databases from MaxMind. This is a custom binary format
designed to facilitate fast lookups of IP addresses while allowing for great
flexibility in the type of data associated with an address.
.
The MaxMind DB format is an open format. The spec is available at
http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the Creative
Commons Attribution-ShareAlike 3.0 Unported License.
Package: libmaxminddb-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libmaxminddb0 (= ${binary:Version}), ${misc:Depends}
Description: IP geolocation database library (development headers)
The libmaxminddb library provides a C library for reading MaxMind DB files,
including the GeoIP2 databases from MaxMind. This is a custom binary format
designed to facilitate fast lookups of IP addresses while allowing for great
flexibility in the type of data associated with an address.
.
The MaxMind DB format is an open format. The spec is available at
http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the Creative
Commons Attribution-ShareAlike 3.0 Unported License.
.
This package contains the development files for the libmaxminddb library.
Package: mmdb-bin
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: IP geolocation lookup command-line tool
The libmaxminddb library provides a C library for reading MaxMind DB files,
including the GeoIP2 databases from MaxMind. This is a custom binary format
designed to facilitate fast lookups of IP addresses while allowing for great
flexibility in the type of data associated with an address.
.
The MaxMind DB format is an open format. The spec is available at
http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the Creative
Commons Attribution-ShareAlike 3.0 Unported License.
.
This package contains the command line utilities to resolve IPs using the
libmaxminddb library.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libmaxminddb
Source: http://maxmind.github.io/libmaxminddb/
Files: *
Copyright: 2013-2014 MaxMind, Inc.
License: Apache-2.0
Files: t/maxmind-db/*
Copyright: 2013-2014 MaxMind, Inc.
License: CC-BY-SA
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
Unported License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
Files: t/libtap/*
Copyright: 2012 Jake Gelbman <gelbman@gmail.com>
License: GPL-2+
Files: debian/*
Copyright: 2014 Faidon Liambotis <paravoid@debian.org>
License: GPL-2+
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
License: GPL-2+
This program 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 program 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, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
.
On Debian systems, the complete text of the GNU General Public License can be
found in "/usr/share/common-licenses/GPL".
Files: src/maxminddb-compat-util.h
Copyright: 2005 Pascal Gloor <pascal.gloor@spale.com>
2009 David Schultz <das@FreeBSD.org>
1988, 1993 The Regents of the University of California
Comment: The memmem, strdup, and strndup functions were all copied from the
FreeBSD source, along with the relevant copyright notice.
License: BSD-2-clause and BSD-3-clause and BSD-4-clause
Applies to memmem implementation
.
Copyright (c) 2005 Pascal Gloor <pascal.gloor@spale.com>
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
.
Applies to strnlen implementation
.
Copyright (c) 2009 David Schultz <das@FreeBSD.org>
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
.
Applies to strdup and strndup implementation */
.
Copyright (c) 1988, 1993
The Regents of the University of California. All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
[DEFAULT]
upstream-tree=tag
debian-branch=debian
upstream-tag = %(version)s
no-create-orig = False
submodules = True
usr/include/*
usr/lib/lib*.a
usr/lib/lib*.so
usr/lib/pkgconfig/*
usr/share/man/man3/MMDB*
usr/lib/lib*.so.*
usr/share/man/man3/libmaxminddb.3
libmaxminddb.so.0 libmaxminddb0 #MINVER#
* Build-Depends-Package: libmaxminddb-dev
MMDB_aget_value@Base 1.0.2
MMDB_close@Base 1.0.2
MMDB_dump_entry_data_list@Base 1.0.2
MMDB_free_entry_data_list@Base 1.0.2
MMDB_get_entry_data_list@Base 1.0.2
MMDB_get_metadata_as_entry_data_list@Base 1.0.2
MMDB_get_value@Base 1.0.2
MMDB_lib_version@Base 1.0.2
MMDB_lookup_sockaddr@Base 1.0.2
MMDB_lookup_string@Base 1.0.2
MMDB_open@Base 1.0.2
MMDB_read_node@Base 1.0.2
MMDB_strerror@Base 1.0.2
MMDB_vget_value@Base 1.0.2
usr/bin/*
usr/share/man/man1/*
From: Faidon Liambotis <paravoid@debian.org>
Date: Wed, 27 Dec 2017 02:26:45 +0200
Subject: Remove Pandoc version from manpages
This is to allow needless deltas between builds with slightly different
Pandoc versions, as this breaks multi-arch, cf. #874247.
---
dev-bin/make-man-pages.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev-bin/make-man-pages.pl b/dev-bin/make-man-pages.pl
index e589088..e27d17d 100755
--- a/dev-bin/make-man-pages.pl
+++ b/dev-bin/make-man-pages.pl
@@ -68,6 +68,7 @@ sub _fix_indentation {
edit_file(
sub {
s/^\.IP\n\.nf/.IP "" 4\n.nf/gm;
+ s/(Automatically generated by Pandoc)(.+)$/$1/m;
},
$file
);
From: Faidon Liambotis <paravoid@debian.org>
Date: Wed, 27 Dec 2017 02:57:45 +0200
Subject: Add export-symbols-regexp to Makefile.am
As to only export MMDB_* symbols. Avoids exporting the new data_pool_*
symbols, which are seemingly internal-only.
---
src/Makefile.am | 2 +-
t/Makefile.am | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index feb7340..6d57aca 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libmaxminddb.la
libmaxminddb_la_SOURCES = maxminddb.c maxminddb-compat-util.h \
data-pool.c data-pool.h
-libmaxminddb_la_LDFLAGS = -version-info 0:7:0
+libmaxminddb_la_LDFLAGS = -version-info 0:7:0 -export-symbols-regex '^MMDB_.*'
include_HEADERS = $(top_srcdir)/include/maxminddb.h
pkgconfig_DATA = libmaxminddb.pc
diff --git a/t/Makefile.am b/t/Makefile.am
index b429ce5..95a4aa8 100644
--- a/t/Makefile.am
+++ b/t/Makefile.am
@@ -17,6 +17,7 @@ check_PROGRAMS = \
no_map_get_value_t read_node_t threads_t version_t
data_pool_t_CFLAGS = $(CFLAGS) -I$(top_srcdir)/src
+data_pool_t_SOURCES = data-pool-t.c $(top_builddir)/src/data-pool.c
threads_t_CFLAGS = $(CFLAGS) -pthread
TESTS = $(check_PROGRAMS) compile_c++_t.pl mmdblookup_t.pl
0001-Remove-Pandoc-version-from-manpages.patch
0002-Add-export-symbols-regexp-to-Makefile.am.patch
#!/usr/bin/make -f
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBUG += --enable-debug
endif
%:
dh $@
override_dh_auto_configure:
./bootstrap
dh_auto_configure -- \
--includedir="\$${prefix}/include/$(DEB_HOST_MULTIARCH)" \
$(DEBUG)
override_dh_auto_build:
# build manpages (needs pandoc); these are included in tarballs
dev-bin/make-man-pages.pl
dh_auto_build
override_dh_auto_clean:
dh_auto_clean
rm -rf man/
override_dh_strip:
dh_strip -O--dbgsym-migration='libmaxminddb-dbg (<< 1.1.5-1~)'
override_dh_installchangelogs:
dh_installchangelogs Changes.md
GIT_CHEKOUT=1.3.2
VERSION=1.3.2
Source: libvmod-blobdigest
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://code.uplex.de/uplex-varnish/libvmod-blobdigest.git
Homepage: https://code.uplex.de/uplex-varnish/libvmod-blobdigest
Package: libvmod-blobdigest
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: Digests, checksums and hmacs for the VCL blob type
.
This Varnish Module (VMOD) generates message digests, keyed-hash
message authentication codes (HMACs) and checksums using the VCL data
type BLOB, which may contain arbitrary data of any length.
.
This vmod is intended for use together with the blob vmod from the
Varnish-Cache distribution for binary-to-text encodings, to initialize
data and to save results. The advantage of using BLOBs is that
operations on the data are separated from issues such as encoding.
Copyright (c) 2016 UPLEX Nils Goroll Systemoptimierung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-----
Some code is adapted from librhash by Aleksey Kravchenko:
https://github.com/rhash/RHash
http://rhash.anz.ru/
RHash License
Copyright (c) 2005-2014 Aleksey Kravchenko <rhash.admin@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so.
The Software 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. Use this program at your own risk!
usr/share/doc/libvmod-blobdigest
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
Source: libvmod-blobsynth
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://code.uplex.de/uplex-varnish/libvmod-blobsynth.git
Homepage: https://code.uplex.de/uplex-varnish/libvmod-blobsynth
Package: libvmod-blobsynth
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: Trivial vmod to use blobs for synthetic responses.
Intended only as a transitional solution until support for generating
synthetic responses is generalised in Varnish Cache.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>
usr/share/doc/libvmod-blobsynth
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
Source: libvmod-geoip2
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
libmaxminddb-dev,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://github.com/fgsch/libvmod-geoip2.git
Homepage: https://github.com/fgsch/libvmod-geoip2
Package: libvmod-geoip2
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, libmaxminddb0, ${shlibs:Depends}, ${misc:Depends}
Description: A Varnish module to query MaxMind GeoIP2 DB files.
You will need one or more GeoIP2 or GeoLite2binary databases.
.
See https://dev.maxmind.com/
Copyright (c) 2014-2016, Federico G. Schwindt <fgsch@lodoss.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
usr/share/doc/libvmod-geoip2
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
#disable tests, as theu need maxmind-db source in builddir
override_dh_auto_test:
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
Source: libvmod-re
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://code.uplex.de/uplex-varnish/libvmod-re.git
Homepage: https://code.uplex.de/uplex-varnish/libvmod-re
Package: libvmod-re
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
libpcre3
Description: Varnish Module for Regular Expression Matching with Subexpression Capture
.
Regular expression matching as implemented by the VMOD is equivalent
to VCL's infix operator ``~``. The VMOD is motivated by the fact that
backreference capture in standard VCL requires verbose and suboptimal
use of the ``regsub`` or ``regsuball`` functions.
Copyright (c) 2013-2014 UPLEX Nils Goroll Systemoptimierung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
usr/share/doc/libvmod-re
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
Source: libvmod-re2
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
autoconf-archive,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION),
libre2-dev
Standards-Version: 3.9.6
Vcs-Git: https://code.uplex.de/uplex-varnish/libvmod-re2.git
Homepage: https://code.uplex.de/uplex-varnish/libvmod-re2
Package: libvmod-re2
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: Varnish Module (VMOD) for access to the Google RE2 regular expression engine.
.
Varnish VCL uses the PCRE library (Perl Compatible Regular Expressions) for its native regular expressions, which runs very efficiently for many common uses of pattern matching in VCL, as attested by years of successful use of PCRE with Varnish.
But for certain kinds of patterns, the worst-case running time of the PCRE matcher is exponential in the length of the string to be matched. The matcher uses backtracking, implemented with recursive calls to the internal match() function. In principle there is no upper bound to the possible depth of backtracking and recursion, except as imposed by the varnishd runtime parameters pcre_match_limit and pcre_match_limit_recursion; matches fail if either of these limits are met. Stack overflow caused by deep backtracking has occasionally been the subject of varnishd issues.
.
RE2 differs from PCRE in that it limits the syntax of patterns so that they always specify a regular language in the formally strict sense. Most notably, backreferences within a pattern are not permitted, for example (foo|bar)\1 to match foofoo and barbar, but not foobar or barfoo. See the link in SEE ALSO for the specification of RE2 syntax.
Copyright (c) 2016 UPLEX Nils Goroll Systemoptimierung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
usr/share/doc/libvmod-re2
#!/usr/bin/make -f
DH_VERBOSE=1
export RE2_CFLAGS=-pthread
export RE2_LIBS=-pthread -lre2
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
This diff is collapsed.
Source: re2
Section: libs
Priority: optional
Maintainer: Stefano Rivera <stefanor@debian.org>
Build-Depends:
debhelper (>= 9),
dpkg-dev (>= 1.16~),
g++ (>= 4:4),
python,
unicode-data
Standards-Version: 3.9.8
Homepage: https://github.com/google/re2
Vcs-Git: https://github.com/google/re2.git
Package: libre2
Architecture: any
Multi-Arch: same
Breaks: libre2-dev (<< 20131024+dfsg-1~)
Replaces: libre2-dev (<< 20131024+dfsg-1~)
Depends: ${misc:Depends}, ${shlibs:Depends}
Built-Using: ${Built-Using}
Description: efficient, principled regular expression library
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python. It is a C++
library.
.
RE2 uses automata theory to guarantee that regular expression searches run in
time linear in the size of the input. RE2 implements memory limits, so that
searches can be constrained to a fixed amount of memory. RE2 is engineered to
use a small fixed C++ stack footprint no matter what inputs or regular
expressions it must process; thus RE2 is useful in multithreaded environments
where thread stacks cannot grow arbitrarily large.
.
On large inputs, RE2 is often much faster than backtracking engines; its use
of automata theory lets it apply optimizations that the others cannot.
Package: libre2-dev
Section: libdevel
Architecture: any
Breaks: libre2-0 (<< 0+hg40+dfsg-1~)
Replaces: libre2-0 (<< 0+hg40+dfsg-1~)
Depends: libre2 (= ${binary:Version}), ${misc:Depends}
Built-Using: ${Built-Using}
Description: efficient, principled regular expression library, development kit
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python. It is a C++
library.
.
RE2 uses automata theory to guarantee that regular expression searches run in
time linear in the size of the input. RE2 implements memory limits, so that
searches can be constrained to a fixed amount of memory. RE2 is engineered to
use a small fixed C++ stack footprint no matter what inputs or regular
expressions it must process; thus RE2 is useful in multithreaded environments
where thread stacks cannot grow arbitrarily large.
.
On large inputs, RE2 is often much faster than backtracking engines; its use
of automata theory lets it apply optimizations that the others cannot.
.
This package contains the static library and header files used in development.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: RE2
Upstream-Contact: The RE2 Authors <re2-dev@googlegroups.com>
Source: https://github.com/google/re2
Files-Excluded:
doc/*xkcd*
re2/perl_groups.cc
re2/unicode_casefold.cc
re2/unicode_groups.cc
Comment: Source Repackaged:
The included XKCD comic (in doc) is under the non-free Creative Commons
Attribution-NonCommercial 2.5 License. It has been stripped from the Debian
version of this package.
.
The source files automatically generated from included Perl and Python scripts
have been stripped, as they are generated during building.
Files: *
Copyright: 2002-2017, Google Inc.,
2014-2017, Samsung Electronics,
2010-2017, Stefano Rivera <stefanor@debian.org>
License: BSD-3-google
Files: util/utf.h util/rune.cc
Copyright: 2002, Lucent Technologies
License: Lucent
Permission to use, copy, modify, and distribute this software for any purpose
without fee is hereby granted, provided that this entire notice is included in
all copies of any software which is or includes a copy or modification of this
software and in all copies of the supporting documentation for such software.
.
THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
Files: debian/*
Copyright: 2010-2017, Stefano Rivera <stefanor@debian.org>
License: BSD-3-google
License: BSD-3-google
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of Google Inc. nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Document: re2
Title: RE2 Syntax Documentation
Author: The RE2 Authors
Abstract: An efficient, principled regular expression C++ library
Section: Programming/C++
Format: HTML
Index: /usr/share/doc/libre2/syntax.html
Files: /usr/share/doc/libre2/syntax.html
Format: Text
Files: /usr/share/doc/libre2/syntax.txt.gz
/usr/include
/usr/lib/*/libre2.a
/usr/lib/*/libre2.so
/usr/lib/*/pkgconfig/re2.pc
/usr/lib/*/libre2.so.*
_ZN3re23RE23Arg10parse_charEPKcjPv@Base 20160901
_ZN3re23RE23Arg10parse_longEPKcjPv@Base 20160901
_ZN3re23RE23Arg10parse_nullEPKcjPv@Base 20160901
_ZN3re23RE23Arg10parse_uintEPKcjPv@Base 20160901
_ZN3re23RE23Arg11parse_floatEPKcjPv@Base 20160901
_ZN3re23RE23Arg11parse_scharEPKcjPv@Base 20160801
_ZN3re23RE23Arg11parse_shortEPKcjPv@Base 20160901
_ZN3re23RE23Arg11parse_ucharEPKcjPv@Base 20160901
_ZN3re23RE23Arg11parse_ulongEPKcjPv@Base 20160901
_ZN3re23RE23Arg12parse_doubleEPKcjPv@Base 20160901
_ZN3re23RE23Arg12parse_stringEPKcjPv@Base 20160901
_ZN3re23RE23Arg12parse_ushortEPKcjPv@Base 20160901
_ZN3re23RE23Arg13parse_int_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg14parse_long_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg14parse_longlongEPKcjPv@Base 20160901
_ZN3re23RE23Arg14parse_uint_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg15parse_int_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg15parse_int_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg15parse_short_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg15parse_ulong_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg15parse_ulonglongEPKcjPv@Base 20160901
_ZN3re23RE23Arg16parse_int_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg16parse_long_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg16parse_long_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg16parse_uint_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg16parse_uint_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg16parse_ushort_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_long_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_short_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_short_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg17parse_stringpieceEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_uint_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_ulong_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg17parse_ulong_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg18parse_longlong_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg18parse_short_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg18parse_ulong_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg18parse_ushort_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg18parse_ushort_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg19parse_ulonglong_hexEPKcjPv@Base 20160901
_ZN3re23RE23Arg19parse_ushort_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg20parse_longlong_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg20parse_longlong_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg21parse_longlong_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg21parse_ulonglong_octalEPKcjPv@Base 20160901
_ZN3re23RE23Arg21parse_ulonglong_radixEPKcjPvi@Base 20160901
_ZN3re23RE23Arg22parse_ulonglong_cradixEPKcjPv@Base 20160901
_ZN3re23RE23Arg9parse_intEPKcjPv@Base 20160901
_ZNK3re211StringPiece4copyEPcjj@Base 0+hg23
_ZNK3re211StringPiece4findERKS0_j@Base 0+hg23
_ZNK3re211StringPiece4findEcj@Base 0+hg23
_ZNK3re211StringPiece5rfindERKS0_j@Base 0+hg23
_ZNK3re211StringPiece5rfindEcj@Base 0+hg23
_ZNK3re211StringPiece6substrEjj@Base 0+hg23
_ZNK3re23RE25MatchERKNS_11StringPieceEjjNS0_6AnchorEPS1_i@Base 20160901
_ZNK3re23RE27DoMatchERKNS_11StringPieceENS0_6AnchorEPjPKPKNS0_3ArgEi@Base 20160901
_ZN3re23RE23Arg10parse_charEPKcmPv@Base 20160901
_ZN3re23RE23Arg10parse_longEPKcmPv@Base 20160901
_ZN3re23RE23Arg10parse_nullEPKcmPv@Base 20160901
_ZN3re23RE23Arg10parse_uintEPKcmPv@Base 20160901
_ZN3re23RE23Arg11parse_floatEPKcmPv@Base 20160901
_ZN3re23RE23Arg11parse_scharEPKcmPv@Base 20160801
_ZN3re23RE23Arg11parse_shortEPKcmPv@Base 20160901
_ZN3re23RE23Arg11parse_ucharEPKcmPv@Base 20160901
_ZN3re23RE23Arg11parse_ulongEPKcmPv@Base 20160901
_ZN3re23RE23Arg12parse_doubleEPKcmPv@Base 20160901
_ZN3re23RE23Arg12parse_stringEPKcmPv@Base 20160901
_ZN3re23RE23Arg12parse_ushortEPKcmPv@Base 20160901
_ZN3re23RE23Arg13parse_int_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg14parse_long_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg14parse_longlongEPKcmPv@Base 20160901
_ZN3re23RE23Arg14parse_uint_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg15parse_int_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg15parse_int_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg15parse_short_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg15parse_ulong_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg15parse_ulonglongEPKcmPv@Base 20160901
_ZN3re23RE23Arg16parse_int_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg16parse_long_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg16parse_long_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg16parse_uint_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg16parse_uint_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg16parse_ushort_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_long_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_short_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_short_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg17parse_stringpieceEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_uint_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_ulong_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg17parse_ulong_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg18parse_longlong_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg18parse_short_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg18parse_ulong_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg18parse_ushort_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg18parse_ushort_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg19parse_ulonglong_hexEPKcmPv@Base 20160901
_ZN3re23RE23Arg19parse_ushort_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg20parse_longlong_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg20parse_longlong_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg21parse_longlong_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg21parse_ulonglong_octalEPKcmPv@Base 20160901
_ZN3re23RE23Arg21parse_ulonglong_radixEPKcmPvi@Base 20160901
_ZN3re23RE23Arg22parse_ulonglong_cradixEPKcmPv@Base 20160901
_ZN3re23RE23Arg9parse_intEPKcmPv@Base 20160901
_ZNK3re211StringPiece4copyEPcmm@Base 0+hg23
_ZNK3re211StringPiece4findERKS0_m@Base 0+hg23
_ZNK3re211StringPiece4findEcm@Base 0+hg23
_ZNK3re211StringPiece5rfindERKS0_m@Base 0+hg23
_ZNK3re211StringPiece5rfindEcm@Base 0+hg23
_ZNK3re211StringPiece6substrEmm@Base 0+hg23
_ZNK3re23RE25MatchERKNS_11StringPieceEmmNS0_6AnchorEPS1_i@Base 20160901
_ZNK3re23RE27DoMatchERKNS_11StringPieceENS0_6AnchorEPmPKPKNS0_3ArgEi@Base 20160901
diff --git a/re2/unicode.py b/re2/unicode.py
index 2899c87..25fa1fb 100644
--- a/re2/unicode.py
+++ b/re2/unicode.py
@@ -9,7 +9,7 @@ import re
import urllib2
# Directory or URL where Unicode tables reside.
-_UNICODE_DIR = "http://www.unicode.org/Public/10.0.0/ucd"
+_UNICODE_DIR = "/usr/share/unicode"
# Largest valid Unicode code value.
_RUNE_MAX = 0x10FFFF
#!/usr/bin/make -f
export DEB_CXXFLAGS_MAINT_APPEND=-pthread -Wall -std=c++11
export DEB_LDFLAGS_MAINT_APPEND=-pthread
CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS | sed s/-O2/-O3/)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIB_PKG = libre2
%:
dh $@ --parallel
override_dh_auto_build:
dh_auto_build -- CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" REBUILD_TABLES=1
override_dh_auto_test:
dh_auto_test -- CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" \
CPPFLAGS="$(CPPFLAGS)"
override_dh_auto_install:
dh_auto_install -- prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_installdocs:
dh_installdocs --link-doc=$(LIB_PKG)
#!/bin/sh
# Replacement for runtests, used by parallel-test.diff
printf "\n%-40s running\n" $1
if bash -c "set -o pipefail; $1 2>&1 | tee $1.log | awk '{printf \".\"; fflush() }'" 2>/dev/null
then
printf "\n%-40s PASS\n" $1
else
printf "\n%-40s FAIL; Output:\n" $1
cat $1.log
exit 1
fi
Tests: smoketest
Depends: g++, libre2-dev
#!/bin/sh
set -efu
cp testinstall.cc "$ADTTMP"
cd "$ADTTMP"
g++ --std=c++11 -Wall -o testinstall testinstall.cc -lre2
./testinstall
GIT_CHEKOUT=2018-04-01
VERSION=20180401
Source: TEMPLATE_VMOD_NAME
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://code.uplex.de/uplex-varnish/TEMPLATE_VMOD_NAME.git
Homepage: https://code.uplex.de/uplex-varnish/TEMPLATE_VMOD_NAME
Package: TEMPLATE_VMOD_NAME
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: TEMPLATE_VMOD_DESC
usr/share/doc/TEMPLATE_VMOD_NAME
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./autogen.sh
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
Source: varnish-modules
Section: web
Priority: extra
Maintainer: Uplex Varnish <varnish@uplex.de>
Build-Depends: debhelper (>= 7),
automake,
autotools-dev,
libtool,
build-essential,
pkg-config,
python-docutils,
varnish (= DPGK_VERSION),
varnish-dev (= DPGK_VERSION)
Standards-Version: 3.9.6
Vcs-Git: git://github.com/varnish/varnish-modules.git
Homepage: https://github.com/varnish/varnish-modules
Package: varnish-modules
Architecture: any
Depends: ${Varnish:strictABI}, ${Varnish:ABI}, ${shlibs:Depends}, ${misc:Depends}
Description: A collection of modules ("vmods") extending Varnish VCL
.
Included:
* Simpler handling of HTTP cookies
* Variable support
* Request and bandwidth throttling
* Modify and change complex HTTP headers
* 3.0-style saint mode,
* Advanced cache invalidations, and more.
* Client request body access
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
usr/share/doc/varnish-modules
#!/usr/bin/make -f
DH_VERBOSE=1
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
VMOD_strictABI = $(shell printf '\#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
| cpp - $(shell pkg-config --cflags varnishapi) \
| sed -e '/^"/!d' -e 's/\"//g' -e 's/^.* /varnishabi-strict-/')
override_dh_auto_configure:
./bootstrap
dh_auto_configure
override_dh_gencontrol: debian/substvars
dh_gencontrol -- -Tdebian/substvars
debian/substvars:
echo "Varnish:ABI=$(VMOD_ABI)" > $@
echo "Varnish:strictABI=$(VMOD_strictABI)" >> $@
%:
dh $@
This diff is collapsed.
Source: varnish
Section: web
Priority: optional
Maintainer: Uplex <varnish@uplex.de>
Build-Depends:
automake,
autotools-dev,
debhelper (>= 9),
libedit-dev,
libjemalloc-dev,
libncurses-dev,
libpcre3-dev,
libtool,
pkg-config,
python-docutils,
python-sphinx,
git
Vcs-Git: git://github.com/varnishcache/pkg-varnish-cache.git
Homepage: https://www.varnish-cache.org/
Standards-Version: 3.9.6
Package: varnish
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
adduser,
gcc,
libc6-dev | libc6.1-dev | libc-dev,
Provides: varnish,
libvarnishapi1,
${Varnish:ABI},
${Varnish:strictABI}
Suggests: varnish-dev
Replaces:
libvarnishapi1,
varnish-dbg,
varnish-doc
Conflicts:
libvarnishapi1,
varnish-dbg,
varnish-doc
Description: state of the art, high-performance web accelerator
Varnish Cache is a state of the art web accelerator written with
performance and flexibility in mind.
.
Varnish Cache stores web pages in memory so web servers don't have to
create the same web page over and over again. Varnish serves pages
much faster than any application server; giving the website a
significant speed up.
.
Some of the features include:
* A modern design
* VCL - a very flexible configuration language
* Load balancing with health checking of backends
* Partial support for ESI - Edge Side Includes
* URL rewriting
* Graceful handling of "dead" backends
Package: varnish-dev
Section: libdevel
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
varnish (= ${binary:Version}),
pkg-config,
python
Provides:
libvarnish-dev,
libvarnishapi-dev
Replaces:
libvarnish-dev,
libvarnishapi-dev
Conflicts:
libvarnish-dev,
libvarnishapi-dev
Description: development files for Varnish Cache
Development files for Varnish Cache HTTP accelerator.
Source: varnish
Section: web
Priority: optional
Maintainer: Varnish Software <opensource@varnish-software.com>
Build-Depends:
automake,
autotools-dev,
debhelper (>= 9),
libedit-dev,
libjemalloc-dev,
libncurses-dev,
libpcre3-dev,
libtool,
pkg-config,
python-docutils,
python-sphinx
Vcs-Git: git://github.com/varnishcache/pkg-varnish-cache.git
Homepage: https://www.varnish-cache.org/
Standards-Version: 3.9.6
Package: varnish
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
adduser,
gcc,
libc6-dev | libc6.1-dev | libc-dev,
Provides: varnish,
libvarnishapi1,
${Varnish:ABI},
${Varnish:strictABI}
Suggests: varnish-dev
Replaces:
libvarnishapi1,
varnish-dbg,
varnish-doc
Conflicts:
libvarnishapi1,
varnish-dbg,
varnish-doc
Description: state of the art, high-performance web accelerator
Varnish Cache is a state of the art web accelerator written with
performance and flexibility in mind.
.
Varnish Cache stores web pages in memory so web servers don't have to
create the same web page over and over again. Varnish serves pages
much faster than any application server; giving the website a
significant speed up.
.
Some of the features include:
* A modern design
* VCL - a very flexible configuration language
* Load balancing with health checking of backends
* Partial support for ESI - Edge Side Includes
* URL rewriting
* Graceful handling of "dead" backends
Package: varnish-dev
Section: libdevel
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
varnish (= ${binary:Version}),
pkg-config,
python
Provides:
libvarnish-dev,
libvarnishapi-dev
Replaces:
libvarnish-dev,
libvarnishapi-dev
Conflicts:
libvarnish-dev,
libvarnishapi-dev
Description: development files for Varnish Cache
Development files for Varnish Cache HTTP accelerator.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
#!/bin/sh
# reload-varnish: Script to reload varnishd from VCL defined in
# /etc/default/varnish.
#
# Stig Sandbeck Mathisen <ssm@debian.org>
# Settings
defaults=/etc/default/varnish
secret=/etc/varnish/secret
# Paths
varnishadm=/usr/bin/varnishadm
date=/bin/date
tempfile=/bin/tempfile
# Messages
# msg_no_varnishadm: varnishadm
msg_no_varnishadm="Error: Cannot execute %s\n"
msg_no_management="Management port disabled. \$DAEMON_OPTS must contain '-T hostname:port'\n"
# msg_defaults_not_readable: defaults
msg_defaults_not_readable="Error: %s is not readable\n"
# msg_defaults_not_there: defaults
msg_defaults_not_there="Error: %s does not exist\n"
msg_no_vcl="Error: No VCL file used, nothing to reload\n"
msg_usage="Usage: $0 [-h][-c][-q]\n\t-h\tdisplay help\n\t-q\tquiet\n\t-c\tcompile only, do not reload\n"
# msg_compile_only: varnishadm, mgmt_interface, vcl_label
msg_compile_only="To activate, run:\n\t%s -T %s \\\\\n\tvcl.use %s\n"
# msg_compile_failed: vcl_label, vcl_file
msg_compile_failed="Error: vcl.load %s %s failed"
# msg_use_ok: vcl_label
msg_use_ok="VCL reloaded, active label is %s\n"
# msg_use_failed: vcl_label
msg_use_failed="Error: vcl.use %s failed\n"
# msg_secret_not_readable: secret
msg_secret_not_readable="Error: Secret file %s is not readable\n"
# msg_secret_not_there: secret
msg_secret_not_there="Error: Secret file %s does not exist\n"
# Generate a label, prefixed with the caller's username, from the
# kernel random uuid generator, fallback to timestamp
if [ -f /proc/sys/kernel/random/uuid ]
then
uuid=$(cat /proc/sys/kernel/random/uuid)
vcl_label="vcl_${LOGNAME}${LOGNAME:+_}${uuid}"
else
vcl_label="vcl_$($date +${LOGNAME}${LOGNAME:+_}%s-%N)"
fi
# Load defaults file
if [ -f "$defaults" ]
then
if [ -r "$defaults" ]
then
. "$defaults"
else
printf >&2 "$msg_defaults_not_readable" $defaults
exit 1
fi
else
printf >&2 "$msg_defaults_not_there" $defaults
exit 1
fi
# parse command line arguments
while getopts hcq flag
do
case $flag in
h)
printf >&2 "$msg_usage"
exit 0
;;
c)
compile_only=1
;;
q)
quiet=1
;;
*)
printf >&2 "$msg_usage\n"
exit 1
;;
esac
done
# Parse $DAEMON_OPTS (options must be kept in sync with varnishd).
# Extract the -f and the -T option, and (try to) ensure that the
# management interface is on the form hostname:address.
OPTIND=1
while getopts a:b:CdFf:g:h:i:j:l:M:n:P:p:S:s:T:t:u:Vw: flag $DAEMON_OPTS
do
case $flag in
f)
if [ -f "$OPTARG" ]; then
vcl_file="$OPTARG"
fi
;;
T)
if [ -n "$OPTARG" -a "$OPTARG" != "${OPTARG%%:*}" ]
then
mgmt_interface="$OPTARG"
fi
;;
S)
secret="$OPTARG"
;;
esac
done
# Get warmup time from defaults or use 0 warmup
warmup_time=${WARMUP_TIME:-0}
# Sanity checks
if [ ! -x "$varnishadm" ]
then
printf >&2 "$msg_no_varnishadm" $varnishadm
exit 1
fi
if [ -z "$mgmt_interface" ]
then
printf >&2 "$msg_no_management"
exit 1
fi
if [ -z "$vcl_file" ]
then
printf >&2 "$msg_no_vcl"
exit 1
fi
# Check secret file
if [ -f "$secret" ]
then
if [ ! -r "$secret" ]
then
printf >&2 "$msg_secret_not_readable" $secret
exit 1
fi
else
printf >&2 "$msg_secret_not_there" $secret
exit 1
fi
logfile=$($tempfile -n /tmp/$vcl_label)
# Compile and maybe reload
if $varnishadm -T $mgmt_interface -S ${secret} vcl.load $vcl_label $vcl_file
then
if [ -n "$compile_only" ]
then
printf "$msg_compile_only" $varnishadm $mgmt_interface $vcl_label
else
sleep $warmup_time
if $varnishadm -T $mgmt_interface -S ${secret} vcl.use $vcl_label
then
printf "$msg_use_ok" $vcl_label
else
printf "$msg_use_failed" $vcl_label
exitstatus=1
fi
fi
else
printf "$msg_compile_failed" $vcl_label $vcl_file
exitstatus=1
fi > $logfile
# Blather
if [ -z "${quiet}" -o -n "$exitstatus" ]
then
grep -v '^$' >&2 $logfile
fi
# Cleanup
rm -f $logfile
exit $exitstatus
#!/usr/bin/make -f
DH_VERBOSE=1
# List of architectures where jemalloc is not available
DISABLE_JEMALLOC_ARCH_LIST := hppa m68k
# Explicitly initialize a variable to select architecture, unless it has been
# defined before. This is compared against the DISABLE_*_LIST variables later
# in this makefile
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# Set local state dir for FHS
LOCAL_CONFIGURE_FLAGS = --localstatedir=/var/lib --libdir=/usr/lib
ifneq ($(filter $(DEB_HOST_ARCH),$(DISABLE_JEMALLOC_ARCH_LIST)),)
LOCAL_CONFIGURE_FLAGS += --disable-jemalloc
endif
VMOD_strictABI = $(shell printf '\#include "vcs_version.h"\nVCS_Version\n' \
| cpp - -Iinclude | sed -e '/^"/!d' -e 's/\"//g' -e 's/^/varnishabi-strict-/')
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - -Iinclude \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
# Main build rule, leave everything to debhelper
%:
dh $@ --parallel
ifeq (,$(filter test,$(LOCAL_BUILD_OPTIONS)))
# Disable automated build tests
override_dh_auto_test:
endif
# Override to add local configure flags
override_dh_auto_configure:
./autogen.sh
dh_auto_configure -- $(LOCAL_CONFIGURE_FLAGS)
override_dh_auto_install:
dh_auto_install -a
install -d debian/tmp/etc/varnish
install -T -m 0644 etc/example.vcl debian/tmp/etc/varnish/default.vcl
@ # Remove .la files
@ # (See http://wiki.debian.org/ReleaseGoals/LAFileRemoval)
find $(CURDIR)/debian/ -name \*.la -delete
@ # Nuke the static libs too
find $(CURDIR)/debian -name \*.a -delete
override_dh_install-arch:
dh_install -a --fail-missing
@ # Override to add the "reload-vcl" script
install -o root -g root -m 755 \
$(CURDIR)/debian/reload-vcl \
$(CURDIR)/debian/varnish/usr/share/varnish/reload-vcl
override_dh_installdocs:
# In 4.0 the built docs need to be copied to the current/4.1 location.
make html
test -d doc/html || cp -pr doc/sphinx/build/html doc/html
dh_installdocs
override_dh_gencontrol:
echo "Varnish:strictABI=$(VMOD_strictABI)" >> debian/substvars
echo "Varnish:ABI=$(VMOD_ABI)" >> debian/substvars
if [ -n "$$DEBIAN_OVERRIDE_BINARY_VERSION" ]; then \
dh_gencontrol -- -Tdebian/substvars -v$$DEBIAN_OVERRIDE_BINARY_VERSION; \
else \
dh_gencontrol -- -Tdebian/substvars; \
fi
# Override to add several init scripts
override_dh_installinit:
dh_installinit -a
dh_installinit --name=varnishncsa
override_dh_compress:
dh_compress -X/usr/share/doc/varnish-doc/html
override_dh_strip:
dh_strip --keep-debug -Xvarnish -Xlibvmod
#!/usr/bin/make -f
DH_VERBOSE=1
# List of architectures where jemalloc is not available
DISABLE_JEMALLOC_ARCH_LIST := hppa m68k
# Explicitly initialize a variable to select architecture, unless it has been
# defined before. This is compared against the DISABLE_*_LIST variables later
# in this makefile
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# Set local state dir for FHS
LOCAL_CONFIGURE_FLAGS = --localstatedir=/var/lib --libdir=/usr/lib
ifneq ($(filter $(DEB_HOST_ARCH),$(DISABLE_JEMALLOC_ARCH_LIST)),)
LOCAL_CONFIGURE_FLAGS += --disable-jemalloc
endif
VMOD_strictABI = $(shell printf '\#include "vcs_version.h"\nVCS_Version\n' \
| cpp - -Iinclude | sed -e '/^"/!d' -e 's/\"//g' -e 's/^/varnishabi-strict-/')
VMOD_ABI = $(shell printf '\#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - -Iinclude \
| sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g')
# Main build rule, leave everything to debhelper
%:
dh $@ --parallel
ifeq (,$(filter test,$(LOCAL_BUILD_OPTIONS)))
# Disable automated build tests
override_dh_auto_test:
endif
# Override to add local configure flags
override_dh_auto_configure:
dh_auto_configure -- $(LOCAL_CONFIGURE_FLAGS)
override_dh_auto_install:
dh_auto_install -a
install -d debian/tmp/etc/varnish
install -T -m 0644 etc/example.vcl debian/tmp/etc/varnish/default.vcl
@ # Remove .la files
@ # (See http://wiki.debian.org/ReleaseGoals/LAFileRemoval)
find $(CURDIR)/debian/ -name \*.la -delete
@ # Nuke the static libs too
find $(CURDIR)/debian -name \*.a -delete
override_dh_install-arch:
dh_install -a --fail-missing
@ # Override to add the "reload-vcl" script
install -o root -g root -m 755 \
$(CURDIR)/debian/reload-vcl \
$(CURDIR)/debian/varnish/usr/share/varnish/reload-vcl
override_dh_installdocs:
# In 4.0 the built docs need to be copied to the current/4.1 location.
test -d doc/html || cp -pr doc/sphinx/build/html doc/html
dh_installdocs
override_dh_gencontrol:
echo "Varnish:strictABI=$(VMOD_strictABI)" >> debian/substvars
echo "Varnish:ABI=$(VMOD_ABI)" >> debian/substvars
if [ -n "$$DEBIAN_OVERRIDE_BINARY_VERSION" ]; then \
dh_gencontrol -- -Tdebian/substvars -v$$DEBIAN_OVERRIDE_BINARY_VERSION; \
else \
dh_gencontrol -- -Tdebian/substvars; \
fi
# Override to add several init scripts
override_dh_installinit:
dh_installinit -a
dh_installinit --name=varnishncsa
override_dh_compress:
dh_compress -X/usr/share/doc/varnish-doc/html
override_dh_strip:
dh_strip --keep-debug -Xvarnish -Xlibvmod
usr/include/varnish
usr/share/aclocal
usr/share/varnish/vmodtool.py
# may cause issues with VC4.x packages! XXX
usr/share/varnish/vsctool.py
usr/lib/pkgconfig/*.pc
# Configuration file for Varnish Cache.
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Note: If systemd is installed, this file is obsolete and ignored. You will
# need to copy /lib/systemd/system/varnish.service to /etc/systemd/system/ and
# edit that file.
# Should we start varnishd at boot? Set to "no" to disable.
START=yes
# Set WARMUP_TIME to force a delay in reload-vcl between vcl.load and vcl.use
# This is useful when backend probe definitions need some time before declaring
# configured backends healthy, to avoid routing traffic to a non-healthy backend.
#WARMUP_TIME=0
# Maximum number of open files (for ulimit -n)
NFILES=131072
# Maximum locked memory size (for ulimit -l)
# Used for locking the shared memory log in memory. If you increase log size,
# you need to increase this number as well
MEMLOCK=82000
DAEMON_OPTS="-a :6081 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"
usr/share/varnish
var/log/varnish
doc/changes.rst
# previously in varnish-doc
doc/html
doc/*.html
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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