From 76cc80f42e53215b9039ca99dd35687c7518880a Mon Sep 17 00:00:00 2001 From: Andreas Messer Date: Thu, 4 Jan 2018 20:11:20 +0100 Subject: [PATCH] add devuan build control files --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 78 ++++++++++++++++++++++++++++++++++ debian/copyright | 0 debian/elogind.install | 18 ++++++++ debian/libelogind-data.install | 1 + debian/libelogind-dev.install | 6 +++ debian/libelogind.install | 2 + debian/rules | 24 +++++++++++ debian/source/format | 1 + 10 files changed, 136 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/elogind.install create mode 100644 debian/libelogind-data.install create mode 100644 debian/libelogind-dev.install create mode 100644 debian/libelogind.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..9b83d23a6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +elogind (234.4-devuan1) experimental; urgency=medium + + * Initial release. (Closes: #XXXXXX) + + -- Andreas Messer Thu, 04 Jan 2018 19:26:09 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..030d44eba --- /dev/null +++ b/debian/control @@ -0,0 +1,78 @@ +Source: elogind +Section: admin +Priority: optional +Maintainer: Andreas Messer +Standards-Version: 3.9.8 +Vcs-Git: https://git.devuan.org/amesser/elogind.git +Vcs-Browser: https://git.devuan.org/amesser/elogind.git +Homepage: https://github.com/elogind/elogind +Build-Depends: debhelper, + dpkg-dev (>= 1.16.0), + pkg-config, + docbook-xsl, + dh-autoreconf, + automake (>= 1.11), + autoconf, + libtool, + intltool, + gperf, + gtk-doc-tools, + python3-lxml, + libcap-dev, + libeudev-dev, + libmount-dev (>= 2.20), + libseccomp-dev (>= 1.0), + libblkid-dev (>= 2.24), + libpam0g-dev (>= 1.1.2), + libacl1-dev, + libselinux1-dev, + libglib2.0-dev + +Package: elogind +Section: admin +Priority: optional +Architecture: linux-any +Multi-Arch: same +Pre-Depends: debconf, ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libelogind (= ${binary:Version}) +Recommends: dbus (>= 1.4), policykit-1 +Conflicts: openrc +Description: user, seat and session management daemon + elogind is a session management daemon extracted from systmd project's + "logind" + +Package: libelogind +Section: libs +Priority: optional +Architecture: linux-any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libelogind (= ${binary:Version}), + libelogind-data (= ${binary:Version}) +Description: libelogind shared library + This library provides access to elongd session management + +Package: libelogind-data +Section: libs +Priority: optional +Architecture: all +Description: elogind common data + This package contains common files of elogind and libelogind + +Package: libelogind-dev +Section: libdevel +Priority: optional +Architecture: linux-any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libelogind (= ${binary:Version}) +Description: libelogind development files + This package contains the files needed for developing applications that + use libelogind + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..e69de29bb diff --git a/debian/elogind.install b/debian/elogind.install new file mode 100644 index 000000000..39c7e9b00 --- /dev/null +++ b/debian/elogind.install @@ -0,0 +1,18 @@ +etc/elogind/logind.conf +etc/pam.d/elogind-user +lib/udev/rules.d/*.rules +usr/bin/loginctl +usr/bin/elogind-inhibit +usr/lib/elogind/elogind +usr/lib/elogind/elogind-cgroups-agent +usr/share/polkit-1/* +usr/share/bash-completion/* +usr/share/man/man1/loginctl.1 +usr/share/man/man5/logind.conf.5 +usr/share/man/man7/elogind.*.7 +usr/share/man/man8/pam_elogind.8 +usr/share/man/man8/elogind.8 +usr/share/zsh/* +usr/share/doc/elogind/* +usr/share/dbus-1/* +usr/share/factory/* diff --git a/debian/libelogind-data.install b/debian/libelogind-data.install new file mode 100644 index 000000000..3270a4849 --- /dev/null +++ b/debian/libelogind-data.install @@ -0,0 +1 @@ +usr/share/locale/* diff --git a/debian/libelogind-dev.install b/debian/libelogind-dev.install new file mode 100644 index 000000000..3665adf61 --- /dev/null +++ b/debian/libelogind-dev.install @@ -0,0 +1,6 @@ +usr/lib/*/pkgconfig/libelogind.pc +usr/lib/*/security/pam_elogind.la +usr/lib/*/libelogind.la +usr/share/man/man3/* +usr/include/elogind/* +usr/include/elogind/systemd/* diff --git a/debian/libelogind.install b/debian/libelogind.install new file mode 100644 index 000000000..ed9f10199 --- /dev/null +++ b/debian/libelogind.install @@ -0,0 +1,2 @@ +usr/lib/*/libelogind.so.* +usr/lib/*/security/pam_elogind.so diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..99bed2610 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#! /usr/bin/make -f + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +# disable lto because this does not work for me. Building static libraries with i +# libtool/ar failes. I think this a apackage problem, it should use gcc-ar instead +CONFFLAGS = \ + --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ + --enable-kdbus \ + --disable-lto \ + --disable-tests + +autoreconf: + ./autogen.sh + +override_dh_autoreconf: + dh_autoreconf debian/rules -- autoreconf + +override_dh_auto_configure: + dh_auto_configure --builddirectory=build \ + -- $(CONFFLAGS) + +%: + dh $@ --builddirectory=build --with autoreconf --parallel diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- 2.30.2