[Debian-iot-packaging] [yder] 02/02: Import Debian changes 1.1-2

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Aug 28 20:01:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository yder.

commit e7a5d90af17e04ac87c6ed597604c3d3c9ce3a00
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Mon Jul 24 20:18:42 2017 +0200

    Import Debian changes 1.1-2
    
    yder (1.1-2) unstable; urgency=medium
    
      * update dependencies
    
    yder (1.1-1) unstable; urgency=medium
    
      * Initial release
---
 debian/changelog               | 11 ++++++
 debian/compat                  |  1 +
 debian/control                 | 37 +++++++++++++++++++
 debian/copyright               | 81 ++++++++++++++++++++++++++++++++++++++++++
 debian/libyder-dev.install     |  2 ++
 debian/libyder2.0.install      |  1 +
 debian/patches/hardening.patch | 29 +++++++++++++++
 debian/patches/series          |  1 +
 debian/rules                   | 22 ++++++++++++
 debian/source/format           |  1 +
 debian/watch                   |  7 ++++
 11 files changed, 193 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2c42c8e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+yder (1.1-2) unstable; urgency=medium
+
+  * update dependencies
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Mon, 24 Jul 2017 20:18:42 +0200
+
+yder (1.1-1) unstable; urgency=medium
+
+  * Initial release
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sun, 23 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..b604823
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: yder
+Section: devel
+Priority: optional
+Maintainer: Thorsten Alteholz <debian at alteholz.de>
+Build-Depends: debhelper (>= 10)
+	, liborcania-dev
+	, libjansson-dev
+Standards-Version: 4.0.0
+Homepage: https://github.com/babelouest/yder
+#Vcs-Git: https://anonscm.debian.org/collab-maint/oauth2-server.git
+#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/oauth2-server.git
+
+Package: libyder2.0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: logging library written in C
+ Simple and easy to use logging library. You can log messages to the 
+ console, a file or syslog.
+ .
+ Yder is mono-thread, which mean that you can use only one instance 
+ of yder log at the same time in your program.
+
+Package: libyder-dev
+Architecture: any
+Section: libdevel
+Depends: libyder2.0 (= ${binary:Version})
+        , ${misc:Depends}
+	, liborcania-dev
+        , libjansson-dev
+Description: logging library written in C - development
+ Simple and easy to use logging library. You can log messages to the 
+ console, a file or syslog.
+ .
+ Yder is mono-thread, which mean that you can use only one instance 
+ of yder log at the same time in your program.
+ .
+ This package contains the development files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3768b94
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,81 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: yder
+Source: https://github.com/babelouest/yder
+
+Files: *
+Copyright: 2017 Nicolas Mora
+License: LGPL-2.1
+
+Files: test/yder_test.c
+Copyright: 2017 nobody
+License: public-domain
+
+Files: Makefile
+Copyright: 2014-2015 Nicolas Mora <mail at babelouest.org>
+License: Expat
+
+Files: test/Makefile
+Copyright: 2015 Nicolas Mora <mail at babelouest.org>
+License: GPL-3
+
+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: 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: GPL-3
+ This package 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 3 of the License
+ .
+ This package 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 General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: public-domain
+ Public domain, no copyright. Use at your own risk.
diff --git a/debian/libyder-dev.install b/debian/libyder-dev.install
new file mode 100644
index 0000000..b99040a
--- /dev/null
+++ b/debian/libyder-dev.install
@@ -0,0 +1,2 @@
+src/yder.h usr/include
+src/lib*.so usr/lib
diff --git a/debian/libyder2.0.install b/debian/libyder2.0.install
new file mode 100644
index 0000000..6ac0115
--- /dev/null
+++ b/debian/libyder2.0.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..12c8ed3
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,29 @@
+Description: add hardening flags
+Author: Thorsten Alteholz <debian at alteholz.de>
+Index: yder-1.1/src/Makefile
+===================================================================
+--- yder-1.1.orig/src/Makefile	2017-05-25 14:44:28.000000000 +0200
++++ yder-1.1/src/Makefile	2017-07-18 15:51:53.404125171 +0200
+@@ -20,7 +20,7 @@
+ #
+ PREFIX=/usr/local
+ CC=gcc
+-CFLAGS=-c -fPIC -Wall -D_REENTRANT $(ADDITIONALFLAGS)
++CFLAGS+=-c -fPIC -Wall -D_REENTRANT $(ADDITIONALFLAGS)
+ LIBS=-lc -lorcania
+ OUTPUT=libyder.so
+ VERSION=2.0
+@@ -28,11 +28,11 @@
+ all: release
+ 
+ libyder.so: yder.o
+-	$(CC) -shared -Wl,-soname,$(OUTPUT) -o $(OUTPUT).$(VERSION) yder.o $(LIBS)
++	$(CC) -shared -Wl,-soname,$(OUTPUT).$(VERSION) -o $(OUTPUT).$(VERSION) yder.o $(LIBS) $(LDFLAGS)
+ 	ln -sf $(OUTPUT).$(VERSION) $(OUTPUT)
+ 
+ yder.o: yder.h yder.c
+-	$(CC) $(CFLAGS) yder.c
++	$(CC) $(CFLAGS) $(CPPFLAGS) yder.c
+ 
+ clean:
+ 	rm -f *.o *.so $(OUTPUT) $(OUTPUT).*
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..814900f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hardening.patch
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..e833c6b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=4
+
+# https://github.com/babelouest/yder
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%yder-$1.tar.gz%" \
+   https://github.com/babelouest/yder/tags \
+   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/yder.git



More information about the Debian-iot-packaging mailing list