add debian packaging
This commit is contained in:
parent
d692ff02fb
commit
3752529bc5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
*.user
|
||||
|
||||
.crossbuilder
|
||||
|
||||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
nymea-mqtt (0.1.0) UNRELEASED; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Michael Zanetti <michael.zanetti@guh.io> Tue, 13 Nov 2018 01:04:13 +0100
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
9
|
||||
35
debian/control
vendored
Normal file
35
debian/control
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
Source: nymea-mqtt
|
||||
Section: comm
|
||||
Priority: optional
|
||||
Maintainer: Michael Zanetti <michael.zanetti@guh.io>
|
||||
Build-Depends:
|
||||
qtbase5-dev,
|
||||
Standards-Version: 4.0.0
|
||||
Homepage: http://nymea.io
|
||||
|
||||
Package: libnymea-mqtt
|
||||
Architecture: any
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${shlibs:Depends},
|
||||
Description: nymea-mqtt libraries
|
||||
nymea-mqtt is a mqtt broker implementation
|
||||
|
||||
Package: libnymea-mqtt-dev
|
||||
Section: devel
|
||||
Architecture: any
|
||||
Depends:
|
||||
libnymea-mqtt (=${binary:Version}),
|
||||
${misc:Depends},
|
||||
Description: nymea-mqtt libaries - development files
|
||||
nymea-mqtt is a mqtt broker implementation. This package contains
|
||||
related development files.
|
||||
|
||||
Package: nymea-mqtt-server
|
||||
Architecture: any
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${shlibs:Depends},
|
||||
Description: nymea-mqtt standalone server
|
||||
nymea-mqtt is a mqtt broker implementation. This package contains
|
||||
a standalone mqtt server.
|
||||
2
debian/libnymea-mqtt-dev.install.in
vendored
Normal file
2
debian/libnymea-mqtt-dev.install.in
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-mqtt.so
|
||||
usr/include/nymea-mqtt/
|
||||
3
debian/libnymea-mqtt.install.in
vendored
Normal file
3
debian/libnymea-mqtt.install.in
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-mqtt.so.1
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-mqtt.so.1.0
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-mqtt.so.1.0.0
|
||||
1
debian/nymea-mqtt-server.install
vendored
Normal file
1
debian/nymea-mqtt-server.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
/usr/bin/nymea-mqttserver
|
||||
25
debian/rules
vendored
Executable file
25
debian/rules
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
export DH_VERBOSE=1
|
||||
|
||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
|
||||
PREPROCESS_FILES := $(wildcard debian/*.in)
|
||||
|
||||
$(PREPROCESS_FILES:.in=): %: %.in
|
||||
sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@
|
||||
|
||||
|
||||
override_dh_install: $(PREPROCESS_FILES:.in=)
|
||||
dh_install
|
||||
|
||||
override_dh_auto_test:
|
||||
LD_LIBRARY_PATH=`pwd`/libnymea-mqtt/ dh_auto_test
|
||||
|
||||
override_dh_auto_clean:
|
||||
dh_auto_clean
|
||||
rm -rf $(PREPROCESS_FILES:.in=)
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=qmake --parallel
|
||||
2
debian/source/format
vendored
Normal file
2
debian/source/format
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
3.0 (native)
|
||||
|
||||
@ -1,22 +1,30 @@
|
||||
TARGET = nymea-mqtt
|
||||
|
||||
QT -= gui
|
||||
QT += network
|
||||
|
||||
CONFIG += c++11 console static
|
||||
CONFIG += c++11 console static shared
|
||||
CONFIG -= app_bundle
|
||||
|
||||
target.path = /usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')
|
||||
INSTALLS += target
|
||||
|
||||
SOURCES += \
|
||||
mqttserver.cpp \
|
||||
mqttpacket.cpp \
|
||||
mqttsubscription.cpp \
|
||||
$$PWD/mqttclient.cpp
|
||||
|
||||
HEADERS += \
|
||||
PRIVATE_HEADERS = \
|
||||
mqttpacket_p.h \
|
||||
mqttclient_p.h \
|
||||
mqttserver_p.h
|
||||
|
||||
PUBLIC_HEADERS = \
|
||||
mqttserver.h \
|
||||
mqttpacket.h \
|
||||
mqtt.h \
|
||||
mqttsubscription.h \
|
||||
$$PWD/mqttclient.h \
|
||||
$$PWD/mqttpacket_p.h \
|
||||
$$PWD/mqttclient_p.h \
|
||||
$$PWD/mqttserver_p.h
|
||||
mqttclient.h \
|
||||
|
||||
HEADERS += $$PRIVATE_HEADERS + $$PUBLIC_HEADERS
|
||||
|
||||
@ -2,3 +2,9 @@ TEMPLATE = lib
|
||||
TARGET = nymea-mqtt
|
||||
|
||||
include(libnymea-mqtt.pri)
|
||||
|
||||
# install headers
|
||||
pubheaders.files += $$PUBLIC_HEADERS
|
||||
pubheaders.path = /usr/include/nymea-mqtt/
|
||||
INSTALLS += pubheaders
|
||||
|
||||
|
||||
@ -10,3 +10,6 @@ INCLUDEPATH += $$top_srcdir/libnymea-mqtt/
|
||||
SOURCES += main.cpp
|
||||
|
||||
LIBS += -L$$top_builddir/libnymea-mqtt/ -lnymea-mqtt
|
||||
|
||||
target.path = /usr/bin/
|
||||
INSTALLS += target
|
||||
|
||||
Reference in New Issue
Block a user