Commit b92ec741 authored by Carsten Schoenert's avatar Carsten Schoenert

basic Debianization

parent ff299ec1
Source: libcoap2
Section: libs
Priority: optional
Maintainer: Debian IoT Maintainers <debian-iot-maintainers@lists.alioth.debian.org>
Uploaders:
Carsten Schoenert <c.schoenert@t-online.de>,
Build-Depends:
asciidoc,
debhelper (>= 11~),
doxygen,
exuberant-ctags,
graphviz,
libssl-dev,
pkg-config,
xmlto,
Standards-Version: 4.2.1
Homepage: https://libcoap.net/
Vcs-Browser: https://salsa.debian.org/debian-iot-team/libcoap2
Vcs-Git: https://salsa.debian.org/debian-iot-team/libcoap2.git
Package: libcoap2
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${shlibs:Depends},
Description: C-Implementation of CoAP - libraries API version 2
Lightweight application-protocol for devices that are constrained their
resources such as computing power, RF range, memory, bandwidth, or network
packet sizes. This protocol, CoAP, is developed in the IETF working group
"CoRE", <http://6lowapp.net> and was standardized in RFC 7252.
.
The libcoap library v2 has DTLS functionality included based on TLS
functions provided by OpenSSL in addition to the previous API version.
.
This package contains the various libcoap libraries based on API v2 with
and without DTLS functionality.
Package: libcoap2-bin
Architecture: any
Depends:
libcoap2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Conflicts: libcoap-1-0-bin,
Description: C-Implementation of CoAP - example binaries API version 2
The libcoap provides some example binary files to show the usage of a CoAP
Server, CoAP Client and a Resource Directory implementation. These examples
heavily rely on the libcoap as the core functionality is based there.
.
This package provides the following example binaries without DTLS functions:
* coap-client
A command-line client that allows you to interact with CoAP reasources.
.
* coap-server
Simple server that can provide CoAP resources for simple testing cases.
.
* coap-rd
This binary let you simulate various CoAP resources mostly for testing
purpose.
.
This package providesthe following example binaries with DTLS functions:
* coap-client-openssl
A command-line client that allows you to interact with CoAP reasources
based on TLS functions by OpenSSL.
.
* coap-server-openssl
Simple server that can provide CoAP resources for simple testing cases
based on TLS functions by OpenSSL.
.
* coap-rd-openssl
This binary let you simulate various CoAP resources mostly for testing
purpose based on TLS functions by OpenSSL.
.
You can use these files without any exception no matter as they named
examples. Please see the respectives man pages for usage instructions.
Package: libcoap2-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
libc6-dev,
libcoap2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: C-Implementation of CoAP - development files API version 2
Lightweight application-protocol for devices that are constrained their
resources such as computing power, RF range, memory, bandwidth, or network
packet sizes. This protocol, CoAP, is developed in the IETF working group
"CoRE", <http://6lowapp.net> and was standardized in RFC 7252.
.
This package contains the developer files like headers, the static library
and the pkg-config file.
Package: libcoap2-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends:
libjs-jquery,
${misc:Depends},
Recommends:
libcoap2-dev (= ${binary:Version}),
www-browser,
Description: C-Implementation of CoAP - HTML based documentation files for API v2
Lightweight application-protocol for devices that are constrained their
resources such as computing power, RF range, memory, bandwidth, or network
packet sizes. This protocol, CoAP, is developed in the IETF working group
"CoRE", <http://6lowapp.net> and was standardized in RFC 7252.
.
This package contains the Doxygen generated library API HTML documentation
for libcoap.
They can be accessed by open /usr/share/doc/libcoap2-doc/html/index.html.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libcoap
Source: https://libcoap.net
Files: *
Copyright: 2010-2018, Olaf Bergmann <bergmann@tzi.org>
License: BSD-2-clause
Files: Makefile.am
Copyright: 2012-2018, Olaf Bergmann <bergmann@tzi.org>
2015-2018, Carsten Schoenert <c.schoenert@t-online.de>
2016, Thomas Pettazoni <thomas.petazzoni@free-electrons.com>
License: BSD-2-clause
Files: doc/build_man_files.sh
Copyright: 2018 Jon Shallow <supjps-libcoap@jpshallow.com>
License: BSD-2-clause
Files: doc/Makefile.am
examples/Makefile.am
tests/Makefile.am
Copyright: 2015-2016, Carsten Schoenert <c.schoenert@t-online.de>
License: BSD-2-clause
Files: man/Makefile.am
Copyright: 2018 Jon Shallow <supjps-libcoap@jpshallow.com>
License: BSD-2-clause
Files: debian/*
Copyright: 2018, Carsten Schoenert <c.schoenert@t-online.de>
License: GPL-2+
Files: ltmain.sh
Copyright: 1996-2001, 2003-2006, Free Software Foundation, Inc.
License: GPL-2+
Files: src/coap_openssl.c
Copyright: 2017, Jean-Claude Michelou <jcm@spinetix.com>
2018, Jon Shallow <supjps-libcoap@jpshallow.com>
License: BSD-2-clause
Files: src/coap_session.c
include/coap2/coap_session.h
Copyright: 2017, Jean-Claude Michelou <jcm@spinetix.com>
License: BSD-2-clause
Files: include/coap2/coap_dtls.h
Copyright: 2017, Jean-Claude Michelou <jcm@spinetix.com>
2016, Olaf Bergmann <bergmann@tzi.org>
License: BSD-2-clause
Files: include/coap2/libcoap.h
Copyright: 2015, Carsten Schoenert <c.schoenert@t-online.de>
License: BSD-2-clause
Files: include/coap2/uthash.h
include/coap2/utlist.h
Copyright: 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash
License: BSD-2-clause
License: BSD-2-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(s), this list of conditions and the following disclaimer as
the first lines of this file unmodified other than the possible
addition of one or more copyright notices.
2. Redistributions in binary form must reproduce the above copyright
notice(s), 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 HOLDER(S) ``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(S) 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.
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; version 2 dated June, 1991, or (at
your option) any later version.
.
On Debian systems, the complete text of version 2 of the GNU General
Public License can be found in '/usr/share/common-licenses/GPL-2'.
# Configuration file for git-buildpackage and friends
[DEFAULT]
# use pristine-tar:
pristine-tar = True
# generate bz2 compressed orig.tar file
compression = bz2
debian-branch = debian/sid
upstream-branch = upstream
[pq]
patch-numbers = False
[dch]
id-length = 7
debian-branch = debian/sid
[import-orig]
# filter out unwanted files/dirs from upstream
filter = [ '*.orig', '*.rej', '*/win32/*' ]
#, 'win32/*',]
# filter the files out of the tarball passed to pristine-tar
filter-pristine-tar = True
usr/bin/
usr/share/man/man5
# libcoap is licensed BSD-2-clause only, the GPL part comes in with the
# copyright for the Debian packaging!
libcoap2-bin: possible-gpl-code-linked-with-openssl
usr/include/coap2
usr/lib/@DEB_HOST_MULTIARCH@/libcoap-*.so
usr/lib/@DEB_HOST_MULTIARCH@/libcoap-*.a
usr/lib/@DEB_HOST_MULTIARCH@/pkgconfig
Document: libcoap2-doc
Title: libcoap documentation API v2
Author: libcoap developer
Abstract: The documentation about the API 2.0 of libcoap
The library provides a API documentation created with doxygen which is
useful while developing own applications using the libcoap.
Section: Programming
Format: HTML
Index: /usr/share/doc/libcoap2-doc/html/index.html
Files: /usr/share/doc/libcoap2-doc/html/*
usr/share/doc/libcoap/html usr/share/doc/libcoap2-doc
# source # target
/usr/share/javascript/jquery/jquery.min.js usr/share/doc/libcoap2-doc/html/jquery.js
CONTRIBUTE
TODO
usr/lib/@DEB_HOST_MULTIARCH@/libcoap-*.so.*
# libcoap is licensed BSD-2-clause only, the GPL part comes in with the
# copyright for the Debian packaging!
libcoap2: possible-gpl-code-linked-with-openssl
# This waring is correct but useless as we want to package the various possible
# libraries within this package, it's overkill to package every library in their
# own binary package.
libcoap2: package-name-doesnt-match-sonames libcoap-2-openssl0 libcoap-2-0
# The warning is related to the previous override, we can ignore this.
libcoap2: symbols-declares-dependency-on-other-package libcoap2-openssl0 #MINVER#
libcoap-2.so.0 libcoap2 #MINVER#
*@VER_2 4.2.0~
libcoap-2-openssl.so.0 libcoap2-openssl0 #MINVER#
*@VER_2 4.2.0~
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
export REVDATE := $(shell TZ=UTC date -d@"$(SOURCE_DATE_EPOCH)" +%Y-%m-%d)
DEB_BUILD_DIR = debian/build
INSTDIR := $(CURDIR)/debian/tmp
DEB_CONFIGURE_OPTS = \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--htmldir=\$${prefix}/share/doc/libcoap \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
--build=$(DEB_BUILD_GNU_TYPE) \
--host=$(DEB_HOST_GNU_TYPE) \
--enable-shared \
--enable-static \
--disable-documentation \
--disable-doxygen \
--disable-manpages \
--enable-examples \
$(NULL)
DEB_CONFIGURE_DTLS_NO_OPTS = \
$(DEB_CONFIGURE_OPTS) \
--disable-dtls \
--enable-documentation \
--enable-doxygen \
--enable-manpages \
$(NULL)
DEB_CONFIGURE_DTLS_OPENSSL_OPTS = \
$(DEB_CONFIGURE_OPTS) \
--enable-dtls \
--with-openssl \
$(NULL)
DEB_CONFIGURE_DTLS_GNUTLS_OPTS = \
$(DEB_CONFIGURE_OPTS) \
--enable-dtls \
--with-gnutls \
$(NULL)
PREPROCESS_FILES := $(wildcard debian/*.in)
$(PREPROCESS_FILES:.in=): %: %.in
sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@
%:
dh $@
override_dh_auto_clean:
dh_clean
if [ -f Makefile ]; then \
make clean ;\
fi
for i in `find $(CURDIR) -type f \
\( -name "*Makefile" \
-o -name "libcoap-1.pc" \
-o -name "$(PACKAGE_BASE).dirs" -o -name "$(PACKAGE_BASE)-dev.dirs" \
-o -name "$(PACKAGE_BASE).install" -o -name "$(PACKAGE_BASE)-dev.install" \
-o -name "coap_config.h" \
-o -name ".dirstamp" \
-o -name "tags" \
-o -name "Doxyfile" \)` ;\
do rm -f $$i; done
rm -f config.log config.status libtool stamp-h1
for i in `find $(CURDIR) -type d \
\( -name ".deps" \)` ;\
do rm -rf $$i; done
override_dh_auto_configure:
#sed -i 's/@REVDATE@/$(REVDATE)/' man/coap-*.txt.in
mkdir -p $(DEB_BUILD_DIR)
#
########################################
# configure build with no DTLS support #
########################################
dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/nodtls -- $(DEB_CONFIGURE_DTLS_NO_OPTS)
#
#############################################
# configure build with OpenSSL DTLS support #
#############################################
dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/openssl -- $(DEB_CONFIGURE_DTLS_OPENSSL_OPTS)
#
# currently disabled as no GnuTLS support yet
############################################
# configure build with GnuTLS DTLS support #
############################################
#dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/gnutls -- $(DEB_CONFIGURE_DTLS_GNUTLS_OPTS)
override_dh_auto_build:
#
#######################################
# build libcoap2 with no DTLS support #
#######################################
dh_auto_build --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/nodtls
#
############################################
# build libcoap2 with OpenSSL DTLS support #
############################################
dh_auto_build --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/openssl
#
# currently disabled as no GnuTLS support yet
###########################################
# build libcoap2 with GnuTLS DTLS support #
###########################################
#dh_auto_build --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/gnutls
override_dh_auto_install: $(PREPROCESS_FILES:.in=)
#
####################################################
# installing libcoap2 library with no DTLS support #
####################################################
dh_auto_install --destdir=$(INSTDIR) --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/nodtls
#
#######################################################
# installing libcoap2 library with no OpenSSL support #
#######################################################
dh_auto_install --destdir=$(INSTDIR) --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/openssl
#
# currently disabled as no GnuTLS support yet
####################################################
# installing libcoap2 library with no DTLS support #
####################################################
#dh_auto_install --destdir=$(INSTDIR) --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/gnutls
#override_dh_auto_test:
extend-diff-ignore = "^\.travis\.yml$"
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=4
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/<project>-$1\.tar\.gz/ \
https://github.com/obgm/libcoap/releases .*/?(\d\.\d.\d)\.tar\.gz
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