[Debian-iot-packaging] [ulfius] 02/02: Import Debian changes 2.1.0-1
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Aug 28 20:01:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository ulfius.
commit 52f12a7c188d88b5f01b53f764e7ed6fedf6c8f7
Author: Thorsten Alteholz <debian at alteholz.de>
Date: Tue Jul 25 19:32:33 2017 +0200
Import Debian changes 2.1.0-1
ulfius (2.1.0-1) unstable; urgency=medium
* Initial release
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 46 ++++++++++++++++++++++
debian/copyright | 87 ++++++++++++++++++++++++++++++++++++++++++
debian/libulfius-dev.install | 2 +
debian/libulfius2.1.install | 1 +
debian/patches/hardening.patch | 26 +++++++++++++
debian/patches/series | 3 ++
debian/patches/use-lib.patch | 17 +++++++++
debian/rules | 22 +++++++++++
debian/source/format | 1 +
debian/watch | 7 ++++
12 files changed, 218 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9de3709
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ulfius (2.1.0-1) unstable; urgency=medium
+
+ * Initial release
+
+ -- Thorsten Alteholz <debian at alteholz.de> Tue, 25 Jul 2017 19:32:33 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..02b9187
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: ulfius
+Section: devel
+Priority: optional
+Maintainer: Thorsten Alteholz <debian at alteholz.de>
+Build-Depends: debhelper (>= 10)
+ , libmicrohttpd-dev
+ , libcurl4-gnutls-dev
+ , libjansson-dev
+ , liborcania-dev
+ , libyder-dev
+Standards-Version: 4.0.0
+Homepage: https://github.com/babelouest/ulfius
+#Vcs-Git: https://anonscm.debian.org/collab-maint/oauth2-server.git
+#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/oauth2-server.git
+
+Package: libulfius2.1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Web Framework for REST Applications in C
+ Based on GNU Libmicrohttpd for the backend web server, Jansson for the
+ json manipulation library, and Libcurl for the http/smtp client API.
+ .
+ Used to facilitate creation of web applications in C programs with a
+ small memory footprint, as in embedded systems applications.
+ .
+ One can create webservices in HTTP or HTTPS mode, stream data, or
+ implement server websockets.
+
+Package: libulfius-dev
+Architecture: any
+Section: libdevel
+Depends: libulfius2.1 (= ${binary:Version})
+ , ${misc:Depends}
+ , liborcania-dev
+ , libyder-dev
+Description: Web Framework for REST Applications in - development
+ Based on GNU Libmicrohttpd for the backend web server, Jansson for the
+ json manipulation library, and Libcurl for the http/smtp client API.
+ .
+ Used to facilitate creation of web applications in C programs with a
+ small memory footprint, as in embedded systems applications.
+ .
+ One can create webservices in HTTP or HTTPS mode, stream data, or
+ implement server websockets.
+ .
+ This package contains the development files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..dae25d3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,87 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ulfius
+Source: https://github.com/babelouest/ulfius
+
+Files: *
+Copyright: 2017 Nicolas Mora
+License: LGPL-2.1
+
+Files: test/*.c
+Copyright: 2017 nobody
+License: public-domain
+
+Files: example_callbacks/*
+Copyright: 2016-2017 Nicolas Mora <mail at babelouest.org>
+License: LGPL-3
+
+Files: example_programs/*
+Copyright: 2015-2017 Nicolas Mora <mail at babelouest.org>
+License: Expat
+
+Files: Makefile
+Copyright: 2014-2017 Nicolas Mora <mail at babelouest.org>
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Thorsten Alteholz <debian at alteholz.de>
+License: LGPL-2.1
+
+License: LGPL-2.1
+ Permission to use and copy is granted subject to the terms of the "GNU
+ Lesser General Public License" (LGPL) as published by the Free Software
+ Foundation; version 2.1 of the License
+ .
+ This library 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
+ Lesser General Public License for more details.
+License-Comment:
+ On Debian GNU systems, the complete text of the GNU Lesser General
+ Public License (LGPL) version 2.1 is available at
+ '/usr/share/common-licenses/LGPL-2.1'.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/>.
+
+License: LGPL-3
+ Permission to use and copy is granted subject to the terms of the "GNU
+ Lesser General Public License" (LGPL) as published by the Free Software
+ Foundation; version 3 of the License
+ .
+ This library 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
+ Lesser General Public License for more details.
+License-Comment:
+ On Debian GNU systems, the complete text of the GNU Lesser General
+ Public License (LGPL) version 3 is available at
+ '/usr/share/common-licenses/LGPL-3'.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/>.
+
+License: Expat
+ 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,
+ subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ 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 OR COPYRIGHT HOLDERS
+ 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.
+
+License: public-domain
+ Public domain, no copyright. Use at your own risk.
diff --git a/debian/libulfius-dev.install b/debian/libulfius-dev.install
new file mode 100644
index 0000000..b45a184
--- /dev/null
+++ b/debian/libulfius-dev.install
@@ -0,0 +1,2 @@
+src/ulfius.h usr/include
+src/lib*.so usr/lib
diff --git a/debian/libulfius2.1.install b/debian/libulfius2.1.install
new file mode 100644
index 0000000..6ac0115
--- /dev/null
+++ b/debian/libulfius2.1.install
@@ -0,0 +1 @@
+src/lib*.so.* usr/lib
diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..0a1e365
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,26 @@
+Description: add hardening flags
+Author: Thorsten Alteholz <debian at alteholz.de>
+Index: ulfius-2.1.0/src/Makefile
+===================================================================
+--- ulfius-2.1.0.orig/src/Makefile 2017-06-07 02:08:13.000000000 +0200
++++ ulfius-2.1.0/src/Makefile 2017-07-18 16:19:24.602963856 +0200
+@@ -23,8 +23,8 @@
+ LIBYDER_LOCATION=../lib/yder/src
+ PREFIX=/usr/local
+ CC=gcc
+-CFLAGS=-c -fPIC -Wall -D_REENTRANT -I$(PREFIX)/include -I$(LIBORCANIA_LOCATION) -I$(LIBYDER_LOCATION) $(ADDITIONALFLAGS) $(JANSSONFLAG) $(CURLFLAG) $(WEBSOCKETFLAG)
+-LIBS=-L$(PREFIX)/lib -L$(LIBORCANIA_LOCATION) -L$(LIBYDER_LOCATION) -lc -lmicrohttpd -lyder -lorcania -lpthread
++CFLAGS+=-c -fPIC -Wall -D_REENTRANT -I$(PREFIX)/include -I$(LIBORCANIA_LOCATION) -I$(LIBYDER_LOCATION) $(ADDITIONALFLAGS) $(JANSSONFLAG) $(CURLFLAG) $(WEBSOCKETFLAG) $(CPPFLAGS)
++LIBS=-L$(PREFIX)/lib -L$(LIBORCANIA_LOCATION) -L$(LIBYDER_LOCATION) -lc -lmicrohttpd -lyder -lorcania -lpthread $(LDFLAGS)
+ OUTPUT=libulfius.so
+ VERSION=2.1
+
+@@ -43,7 +43,7 @@
+ all: release
+
+ libulfius.so: ulfius.o u_map.o u_request.o u_response.o u_send_request.o u_websocket.o
+- $(CC) -shared -Wl,-soname,$(OUTPUT) -o $(OUTPUT).$(VERSION) ulfius.o u_map.o u_request.o u_response.o u_send_request.o u_websocket.o $(LIBS) $(LJANSSON) $(LCURL) $(LWEBSOCKET)
++ $(CC) -shared -Wl,-soname,$(OUTPUT).$(VERSION) -o $(OUTPUT).$(VERSION) ulfius.o u_map.o u_request.o u_response.o u_send_request.o u_websocket.o $(LIBS) $(LJANSSON) $(LCURL) $(LWEBSOCKET)
+ ln -sf $(OUTPUT).$(VERSION) $(OUTPUT)
+
+ ulfius.o: ulfius.h ulfius.c
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..56c0d40
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+#hardening.patch
+use-lib.patch
+hardening.patch
diff --git a/debian/patches/use-lib.patch b/debian/patches/use-lib.patch
new file mode 100644
index 0000000..4817821
--- /dev/null
+++ b/debian/patches/use-lib.patch
@@ -0,0 +1,17 @@
+Description: use packaged libraries instead of git submodules
+Author: Thorsten Alteholz <debian at alteholz.de>
+Index: ulfius-2.1.0/Makefile
+===================================================================
+--- ulfius-2.1.0.orig/Makefile 2017-06-07 02:08:13.000000000 +0200
++++ ulfius-2.1.0/Makefile 2017-07-18 16:06:00.382831536 +0200
+@@ -37,8 +37,8 @@
+ cd $(LIBULFIUS_LOCATION) && $(MAKE) debug $(ADD_JANSSONFLAG) $(ADD_CURLFLAG) $(ADD_WEBSOCKETFLAG)
+
+ clean:
+- cd $(LIBORCANIA_LOCATION) && $(MAKE) clean
+- cd $(LIBYDER_LOCATION) && $(MAKE) clean
++ #cd $(LIBORCANIA_LOCATION) && $(MAKE) clean
++ #cd $(LIBYDER_LOCATION) && $(MAKE) clean
+ cd $(LIBULFIUS_LOCATION) && $(MAKE) clean
+ cd $(EXAMPLES_LOCATION) && $(MAKE) clean
+ cd $(TESTS_LOCATION) && $(MAKE) clean
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..36a34d0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/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 $@
+
+override_dh_auto_install:
+ echo dh_auto_install
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..86a5f47
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=4
+
+# https://github.com/babelouest/ulfius
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%ulfius-$1.tar.gz%" \
+ https://github.com/babelouest/ulfius/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/ulfius.git
More information about the Debian-iot-packaging
mailing list