Rename deb package name

This commit is contained in:
Jason Rhinelander 2021-01-14 15:47:48 -04:00
parent 67e2691063
commit 8faf9ad5c2
11 changed files with 42 additions and 30 deletions

27
debian/control.in vendored
View file

@ -1,4 +1,4 @@
Source: lokimq
Source: oxenmq
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
@ -6,23 +6,23 @@ Standards-Version: 4.4.1
Section: libs
Homepage: https://github.com/loki-project/loki-mq
Package: liblokimq-dev
Package: liboxenmq-dev
Section: libdevel
Architecture: any
Depends: liblokimq@LIB_VERSION@ (= ${binary:Version}), ${misc:Depends}, libzmq3-dev (>= 4.3)
Depends: liboxenmq@LIB_VERSION@ (= ${binary:Version}), ${misc:Depends}, libzmq3-dev (>= 4.3)
Description: zeromq-based Loki message passing library (headers)
This C++17 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
daemon commands, communication channels between oxend 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.
to build software using oxenmq.
Package: liblokimq@LIB_VERSION@
Package: liboxenmq@LIB_VERSION@
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: zeromq-based Loki message passing library
@ -30,8 +30,19 @@ Description: zeromq-based Loki message passing library
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
daemon commands, communication channels between oxend 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.
This package contains the library file needed by software built using oxenmq.
Package: liblokimq-dev
Section: libdevel
Architecture: any
Depends: liboxenmq-dev, ${misc:Depends}
Description: transitional package
This is a transitional package that contains compatibility headers and
pkg-config data for applications still relying on the old lokimq API
namespace and package name.
.
It can be safely removed.

2
debian/copyright vendored
View file

@ -1,5 +1,5 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lokimq
Upstream-Name: oxenmq
Upstream-Contact: Jason Rhinelander <jason@imaginary.ca>
Source: <https://github.com/loki-project/loki-mq.git>

View file

@ -1,15 +0,0 @@
#!/bin/bash
set -e
UPSTREAM_VER="$1"
LIB_VER="${UPSTREAM_VER/[^0-9.]*/}"
if ! grep -q "^Package: liblokimq$LIB_VER\$" debian/control; then
echo -e "\nError: debian/control doesn't contain the correct liblokimq$LIB_VER version; you should run:\n\n ./debian/update-lib-version.sh\n"
exit 1
fi
if ! [ -f debian/liblokimq$LIB_VER ]; then
rm -f debian/liblokimq[0-9]*.install
sed -e "s/@LIB_VER@/$LIB_VER/" debian/liblokimq.install.in >debian/liblokimq$LIB_VER.install
fi

15
debian/gen-liboxenmq-install.sh vendored Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -e
UPSTREAM_VER="$1"
LIB_VER="${UPSTREAM_VER/[^0-9.]*/}"
if ! grep -q "^Package: liboxenmq$LIB_VER\$" debian/control; then
echo -e "\nError: debian/control doesn't contain the correct liboxenmq$LIB_VER version; you should run:\n\n ./debian/update-lib-version.sh\n"
exit 1
fi
if ! [ -f debian/liboxenmq$LIB_VER ]; then
rm -f debian/liboxenmq[0-9]*.install
sed -e "s/@LIB_VER@/$LIB_VER/" debian/liboxenmq.install.in >debian/liboxenmq$LIB_VER.install
fi

View file

@ -1,3 +1,2 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*
usr/include/lokimq
usr/lib/*/pkgconfig/liblokimq*

View file

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

View file

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

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

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

1
debian/liboxenmq.install.in vendored Normal file
View file

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

2
debian/rules vendored
View file

@ -19,7 +19,7 @@ include /usr/share/dpkg/pkg-info.mk
dh $@ --buildsystem=cmake --parallel
override_dh_auto_configure:
debian/gen-liblokimq-install.sh $(DEB_VERSION_UPSTREAM)
debian/gen-liboxenmq-install.sh $(DEB_VERSION_UPSTREAM)
dh_auto_configure -- -DLOKIMQ_INSTALL_CPPZMQ=ON \
-DLOKIMQ_BUILD_TESTS=OFF