[neon/backports-focal/iio-sensor-proxy/Neon/unstable] debian: Add debian/ work

Ritesh Raj Sarraf null at kde.org
Fri Oct 9 07:46:06 BST 2020


Git commit 3dd786a96f73b2d65f4290f99d84a34e978c2314 by Ritesh Raj Sarraf.
Committed on 01/07/2015 at 18:07.
Pushed by bshah into tag 'Neon/unstable'.

Add debian/ work

A  +5    -0    debian/changelog
A  +1    -0    debian/compat
A  +34   -0    debian/control
A  +33   -0    debian/copyright
A  +41   -0    debian/patches/fix-build-on-debian.patch
A  +63   -0    debian/patches/fix-makefile.patch
A  +1    -0    debian/patches/series
A  +15   -0    debian/rules
A  +1    -0    debian/source/format

https://invent.kde.org/neon/backports-focal/iio-sensor-proxy/commit/3dd786a96f73b2d65f4290f99d84a34e978c2314

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..17e8da1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+iio-sensor-proxy (1.0-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #789812)
+
+ -- Ritesh Raj Sarraf <rrs at debian.org>  Wed, 01 Jul 2015 22:34:05 +0530
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..72ea404
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: iio-sensor-proxy
+Section: utils
+Priority: optional
+Maintainer: Ritesh Raj Sarraf <rrs at debian.org>
+Build-Depends: debhelper (>= 9.20120312), libgudev-1.0-dev, gnome-common (>= 3.14), gtk-doc-tools (>= 1.0)
+Standards-Version: 3.9.3
+Homepage: https://github.com/hadess/iio-sensor-proxy
+Vcs-Git: git://anonscm.debian.org/collab-maint/iio-sensor-proxy
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/iio-sensor-proxy.git;a=summary
+
+Package: iio-sensor-proxy
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}, systemd 
+Description: IIO sensors to D-Bus proxy
+ Industrial I/O subsystem is intended to provide support for devices that
+ in some sense are analog to digital or digital to analog convertors 
+ .
+ Devices that fall into this category are:
+ * ADCs
+ * Accelerometers
+ * Gyros
+ * IMUs
+ * Capacitance to Digital Converters (CDCs)
+ * Pressure Sensors
+ * Color, Light and Proximity Sensors
+ * Temperature Sensors
+ * Magnetometers
+ * DACs
+ * DDS (Direct Digital Synthesis)
+ * PLLs (Phase Locked Loops)
+ * Variable/Programmable Gain Amplifiers (VGA, PGA)
+ .
+ Many ultrabooks ship with such devices. iio-sensor-proxy is intended to serve
+ as a proxy, providing access to these devices through a D-Bus interface
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b8ccf38
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: iio-sensor-proxy
+Upstream-Contact: Bastien Nocera <hadess at hadess.net>
+Source: https://github.com/hadess/iio-sensor-proxy
+
+Files: src/uinput.h
+Copyright: Marcel Holtmann <marcel at holtmann.org>
+License: GPL-2+
+
+Files: *
+Copyright: Bastien Nocera <hadess at hadess.net>
+License: GPL-2
+
+Files: debian/*
+Copyright: 2015 Ritesh Raj Sarraf <rrs at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ 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; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ 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 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/patches/fix-build-on-debian.patch b/debian/patches/fix-build-on-debian.patch
new file mode 100644
index 0000000..c5ece16
--- /dev/null
+++ b/debian/patches/fix-build-on-debian.patch
@@ -0,0 +1,41 @@
+Fix build on Debian.
+
+See bug: https://github.com/hadess/iio-sensor-proxy/issues/33
+--- a/src/drivers.h
++++ b/src/drivers.h
+@@ -58,7 +58,7 @@
+ 	void     (*close)       (void);
+ };
+ 
+-inline gboolean
++static inline gboolean
+ driver_discover (SensorDriver *driver,
+ 		 GUdevDevice  *device)
+ {
+@@ -69,7 +69,7 @@
+ 	return driver->discover (device);
+ }
+ 
+-inline gboolean
++static inline gboolean
+ driver_open (SensorDriver       *driver,
+ 	     GUdevDevice        *device,
+ 	     ReadingsUpdateFunc  callback_func,
+@@ -83,7 +83,7 @@
+ 	return driver->open (device, callback_func, user_data);
+ }
+ 
+-inline void
++static inline void
+ driver_set_polling (SensorDriver *driver,
+ 		    gboolean      state)
+ {
+@@ -95,7 +95,7 @@
+ 	driver->set_polling (state);
+ }
+ 
+-inline void
++static inline void
+ driver_close (SensorDriver *driver)
+ {
+ 	g_return_if_fail (driver);
diff --git a/debian/patches/fix-makefile.patch b/debian/patches/fix-makefile.patch
new file mode 100644
index 0000000..06bb872
--- /dev/null
+++ b/debian/patches/fix-makefile.patch
@@ -0,0 +1,63 @@
+Index: ioapps/Makefile
+===================================================================
+--- ioapps.orig/Makefile	2013-04-07 14:15:20.451664888 +0530
++++ ioapps/Makefile	2013-04-07 14:15:20.447664888 +0530
+@@ -1,10 +1,11 @@
+ .PHONY : all clean
+ 
++DESTDIR=/
+ DISTFILES=ioreplay
+ DOCDIR=man
+ IOPROFILER=ioprofiler
+ INSTALL=install
+-TARGET_PATH=/usr/bin
++TARGET_PATH=$(DESTDIR)/usr/bin
+ SOURCES=ioreplay.c print.c in_common.c in_strace.c in_binary.c replicate.c simulate.c stats.c fdmap.c namemap.c simfs.c adt/list.c adt/hash_table.c adt/fs_trie.c
+ CFLAGS=-c -g -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I. -O3
+ OBJFILES=$(subst .c,.o,$(SOURCES))
+@@ -26,6 +27,8 @@
+ install: install_replay install_profiler
+ 
+ install_replay: replay
++	mkdir -p $(TARGET_PATH)
++
+ 	$(INSTALL) $(DISTFILES) $(TARGET_PATH)
+ 	$(MAKE) -C $(DOCDIR) install
+ 
+Index: ioapps/man/Makefile
+===================================================================
+--- ioapps.orig/man/Makefile	2013-04-07 14:15:20.451664888 +0530
++++ ioapps/man/Makefile	2013-04-07 14:15:20.447664888 +0530
+@@ -1,5 +1,5 @@
+ MANPAGE=ioreplay.1
+-MANDIR=/usr/share/man/man1/
++MANDIR=$(DESTDIR)/usr/share/man/man1/
+ INSTALL=install
+ 
+ all: $(MANPAGE)
+@@ -11,4 +11,5 @@
+ 	rm -f $(MANPAGE)
+ 
+ install:
++	mkdir -p $(MANDIR)
+ 	$(INSTALL) $(MANPAGE) $(MANDIR)
+Index: ioapps/ioprofiler/Makefile
+===================================================================
+--- ioapps.orig/ioprofiler/Makefile	2013-04-07 14:15:20.451664888 +0530
++++ ioapps/ioprofiler/Makefile	2013-04-07 14:15:51.943663699 +0530
+@@ -1,12 +1,13 @@
+ PYTHON=python
+ INSTALL=install
+-TARGET_PATH=/usr/bin/
++DESTDIR=/
++TARGET_PATH=$(DESTDIR)/usr/bin/
+ 
+ all:
+ 	python setup.py build
+ 
+ install:
+-	python setup.py install
++	python setup.py install --root $(CURDIR)/debian/tmp --install-layout=deb --prefix=/usr
+ 
+ clean:
+ 	python setup.py clean
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2c71def
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-build-on-debian.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f438181
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+#
+
+# Enable Hardening
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+%:
+	dh $@ 
+
+override_dh_auto_configure:
+	./autogen.sh
+	./configure --prefix=/usr
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)



More information about the Neon-commits mailing list