Browse Source

Migrate build to meson.

tags/debian-devuan_common
Mark Hindley 3 years ago
parent
commit
8baa30d03a
3 changed files with 28 additions and 19 deletions
  1. +1
    -5
      debian/control
  2. +8
    -3
      debian/elogind.install
  3. +19
    -11
      debian/rules

+ 1
- 5
debian/control View File

@@ -10,11 +10,7 @@ Build-Depends: debhelper (>= 11),
dpkg-dev (>= 1.16.0),
pkg-config,
docbook-xsl,
dh-autoreconf,
automake (>= 1.11),
autoconf,
libtool,
intltool,
meson,
gperf,
gtk-doc-tools,
python3-lxml,


+ 8
- 3
debian/elogind.install View File

@@ -1,7 +1,11 @@
usr/bin/
bin/
etc/elogind/logind.conf
/usr/lib/elogind/elogind /usr/sbin/
/usr/lib/elogind/elogind-cgroups-agent
lib/elogind/elogind /usr/sbin/
lib/elogind/libelogind-shared*.so
lib/elogind/elogind-cgroups-agent
lib/elogind/elogind-uaccess-command
lib/elogind/system-sleep/.keep_dir
lib/elogind/system-shutdown/.keep_dir
lib/udev/rules.d/
usr/share/bash-completion/
usr/share/dbus-1/
@@ -10,6 +14,7 @@ usr/share/locale/
usr/share/doc/elogind/README
usr/share/doc/elogind/NEWS
usr/share/man/man1/loginctl.1
usr/share/man/man1/elogind-inhibit.1
usr/share/man/man5/logind.conf.5
usr/share/man/man7/elogind.*.7
usr/share/man/man8/elogind.8


+ 19
- 11
debian/rules View File

@@ -12,21 +12,29 @@
# Need to sort out which tests could be run

CONFFLAGS = \
--with-pamlibdir=/lib/$(DEB_HOST_MULTIARCH)/security \
--with-udevrulesdir=/lib/udev/rules.d \
--without-kill-user-processes \
--disable-lto \
--disable-tests
-Dpamlibdir=/lib/$(DEB_HOST_MULTIARCH)/security \
-Drootlibdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
-Ddocdir=/usr/share/doc/elogind \
-Dudevrulesdir=/lib/udev/rules.d \
-Ddefault-kill-user-processes=false \
-Db_lto=false \
-Dselinux=false \
-Dtests=false

CONFFLAGS_CGROUPCTRL_ELOGIND= \
--with-cgroup-controller=elogind

override_dh_autoreconf:
dh_autoreconf ./autogen.sh
-Dcgroup-controller=elogind

override_dh_auto_configure:
dh_auto_configure --builddirectory=build \
-- $(CONFFLAGS) $(CONFFLAGS_CGROUPCTRL_ELOGIND)
-- $(CONFFLAGS) $(CONFFLAGS_CGROUPCTRL_ELOGIND)

override_dh_auto_install:
dh_auto_install --builddirectory=build

override_dh_auto_clean:
dh_auto_clean --builddirectory=build
# remove Python byte code files
rm -rf tools/__pycache__/

override_dh_missing:
dh_missing --list-missing
@@ -35,4 +43,4 @@ override_dh_shlibdeps:
dh_shlibdeps -- -xlibeudev1
%:
dh $@ --builddirectory=build --with autoreconf --parallel
dh $@ --builddirectory=build --without autoreconf,systemd --buildsystem=meson

Loading…
Cancel
Save