Initial debian packaging

This commit is contained in:
Jason Rhinelander 2020-03-13 18:11:01 -03:00
parent 1176b946e5
commit 0f0a683ced
11 changed files with 121 additions and 0 deletions

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
lokimq (1.0.0-1) unstable; urgency=medium
* Initial LokiMQ release
-- Jason Rhinelander <jason@imaginary.ca> Fri, 13 Mar 2020 17:51:00 -0300

37
debian/control vendored Normal file
View file

@ -0,0 +1,37 @@
Source: lokimq
Priority: optional
Maintainer: Jason Rhinelander <jason@imaginary.ca>
Build-Depends: debhelper-compat (= 11), cmake (>= 3.5), g++, pkg-config, libzmq3-dev (>= 4.3), libsodium-dev, libmapbox-variant-dev
Standards-Version: 4.4.1
Section: libs
Homepage: https://github.com/loki-project/loki-mq
Package: liblokimq-dev
Section: libdevel
Architecture: all
Depends: liblokimq0 (= ${binary:Version}), ${misc:Depends}, libzmq3-dev (>= 4.3), libmapbox-variant-dev
Description: zeromq-based Loki message passing library (headers)
This C++14 library contains an abstraction layer around ZeroMQ to support
integration with Loki authentication, RPC, and message passing. It is
designed to be usable as the underlying communication mechanism of SN-to-SN
communication ("quorumnet"), the RPC interface used by wallets and local
daemon commands, communication channels between lokid and auxiliary services
(storage server, lokinet), and also provides a local multithreaded job
scheduling within a process.
.
This package contains the library headers and other development files needed
to build software using lokimq.
Package: liblokimq0
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: zeromq-based Loki message passing library
This C++14 library contains an abstraction layer around ZeroMQ to support
integration with Loki authentication, RPC, and message passing. It is
designed to be usable as the underlying communication mechanism of SN-to-SN
communication ("quorumnet"), the RPC interface used by wallets and local
daemon commands, communication channels between lokid and auxiliary services
(storage server, lokinet), and also provides a local multithreaded job
scheduling within a process.
.
This package contains the library file needed by software built using lokimq.

32
debian/copyright vendored Normal file
View file

@ -0,0 +1,32 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lokimq
Upstream-Contact: Jason Rhinelander <jason@imaginary.ca>
Source: <https://github.com/loki-project/loki-mq.git>
Files: *
Copyright: 2020 The Loki Project
License: BSD-3-Clause
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 copyright holder 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 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.

11
debian/gbp.conf vendored Normal file
View file

@ -0,0 +1,11 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian/sid
upstream-tag = v%(version)s
[buildpackage]
ignore-new = true
pbuilder = true
dist = sid
submodules = true

2
debian/liblokimq-dev.dirs vendored Normal file
View file

@ -0,0 +1,2 @@
usr/lib
usr/include

3
debian/liblokimq-dev.install vendored Normal file
View file

@ -0,0 +1,3 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*

1
debian/liblokimq0.dirs vendored Normal file
View file

@ -0,0 +1 @@
usr/lib

1
debian/liblokimq0.install vendored Normal file
View file

@ -0,0 +1 @@
usr/lib/*/lib*.so.*

27
debian/rules vendored Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@ --buildsystem=cmake --parallel
override_dh_auto_configure:
dh_auto_configure -- -DLOKIMQ_INSTALL_MAPBOX_VARIANT=OFF -DLOKIMQ_INSTALL_CPPZMQ=ON
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View file

@ -0,0 +1 @@
diff-ignore=^build|(^|/)\.git