Commit ae4d6159 authored by Jaret Cantu's avatar Jaret Cantu

Use Replaces interface to provide udev packages.

This allows systemd to provide its version of udev support as well.
parent e84abdcd
eudev (215:1.9-1) UNRELEASED; urgency=medium
eudev (1.9-1) UNRELEASED; urgency=medium
* Fork eudev package from systemd.
......
......@@ -30,56 +30,71 @@ Build-Depends: debhelper (>= 9),
libgirepository1.0-dev (>= 1.31.1),
gobject-introspection (>= 1.31.1)
Package: udev
Package: eudev
Section: admin
Priority: important
Architecture: linux-any
Multi-Arch: foreign
Replaces: udev (<< 215-18+devuan1),
udev-systemd
Conflicts: udev-systemd
Pre-Depends: debconf (>= 1.4.69) | debconf-2.0
Depends: ${shlibs:Depends},
${misc:Depends},
adduser,
libudev1 (= ${binary:Version}),
libeudev1 (= ${binary:Version}),
lsb-base (>= 3.0-6),
util-linux (>= 2.16),
s390-tools (>> 1.6.2) [s390],
procps
Breaks: consolekit (<< 0.4.6-1),
kmod (<< 14),
systemd,
plymouth (<< 0.9.0-7)
plymouth (<< 0.9.0-7),
udev (<< 215-18+devuan1)
Description: /dev/ and hotplug management daemon
udev is a daemon which dynamically creates and removes device nodes from
/dev/, handles hotplug events and loads drivers at boot time.
Package: libudev1
Package: libeudev1
Section: libs
Priority: important
Architecture: linux-any
Multi-Arch: same
Replaces: libudev1 (<< 215-18+devuan1),
libudev-systemd1
Breaks: libudev1 (<< 215-18+devuan1)
Conflicts: libudev-systemd1
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends}
Description: libudev shared library
This library provides access to udev device information.
Package: libudev-dev
Package: libeudev-dev
Section: libdevel
Priority: optional
Architecture: linux-any
Multi-Arch: same
Replaces: libudev-dev (<< 215-18+devuan1),
libudev-systemd-dev
Breaks: libudev-dev (<< 215-18+devuan1)
Conflicts: libudev-systemd-dev
Depends: ${shlibs:Depends},
${misc:Depends},
libudev1 (= ${binary:Version})
libeudev1 (= ${binary:Version})
Description: libudev development files
This package contains the files needed for developing applications that
use libudev.
Package: udev-udeb
Package: eudev-udeb
XC-Package-Type: udeb
Section: debian-installer
Priority: optional
Architecture: linux-any
Replaces: udev-udeb (<< 215-18+devuan1),
udev-systemd-udeb
Breaks: udev-udeb (<< 215-18+devuan1)
Conflicts: udev-systemd-udeb
Depends: ${shlibs:Depends},
${misc:Depends},
util-linux-udeb
......@@ -89,11 +104,15 @@ Description: /dev/ and hotplug management daemon
.
This is a minimal version, only for use in the installation system.
Package: libudev1-udeb
Package: libeudev1-udeb
Package-Type: udeb
Section: debian-installer
Priority: optional
Architecture: linux-any
Replaces: libudev1-udeb (<< 215-18+devuan1),
libudev-systemd1-udeb
Breaks: libudev1-udeb (<< 215-18+devuan1)
Conflicts: libudev-systemd1-udeb
Depends: ${shlibs:Depends},
${misc:Depends}
Description: libudev shared library
......@@ -101,11 +120,15 @@ Description: libudev shared library
.
This is a minimal version, only for use in the installation system.
Package: libgudev-1.0-0
Package: libgeudev-1.0-0
Section: libs
Priority: optional
Architecture: linux-any
Multi-Arch: same
Replaces: libgudev-1.0-0 (<< 215-18+devuan1),
libgudev-systemd-1.0-0
Breaks: libgudev-1.0-0 (<< 215-18+devuan1)
Conflicts: libgudev-systemd-1.0-0
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends}
......@@ -115,10 +138,14 @@ Description: GObject-based wrapper library for libudev
programming languages, such as Javascript, because of GObject introspection
support.
Package: gir1.2-gudev-1.0
Package: gir1.2-geudev-1.0
Section: introspection
Priority: optional
Architecture: linux-any
Replaces: gir1.2-gudev-1.0 (<< 215-18+devuan1),
gir1.2-gudev-systemd-1.0
Breaks: gir1.2-gudev-1.0 (<< 215-18+devuan1)
Conflicts: gir1.2-gudev-systemd-1.0
Depends: ${shlibs:Depends},
${misc:Depends},
${gir:Depends}
......@@ -126,14 +153,18 @@ Description: libgudev-1.0 introspection data
This package contains the GObject-introspection data of libgudev-1.0 in
binary typelib format.
Package: libgudev-1.0-dev
Package: libgeudev-1.0-dev
Section: libdevel
Priority: optional
Architecture: linux-any
Replaces: libgudev-1.0-dev (<< 215-18+devuan1),
libgudev-systemd-1.0-dev
Breaks: libgudev-1.0-dev (<< 215-18+devuan1)
Conflicts: libgudev-systemd-1.0-dev
Depends: ${shlibs:Depends},
${misc:Depends},
libgudev-1.0-0 (= ${binary:Version}),
gir1.2-gudev-1.0 (= ${binary:Version}),
libgeudev-1.0-0 (= ${binary:Version}),
gir1.2-geudev-1.0 (= ${binary:Version}),
libglib2.0-dev,
pkg-config
Description: libgudev-1.0 development files
......@@ -145,8 +176,8 @@ Architecture: linux-any
Section: debug
Priority: extra
Depends: ${misc:Depends},
udev (= ${binary:Version}),
libudev1 (= ${binary:Version})
eudev (= ${binary:Version}),
libeudev1 (= ${binary:Version})
Description: /dev/ and hotplug management daemon (debug symbols)
eudev is a fork of systemd with the aim of isolating udev from any
particular flavor of system initialization.
......
......@@ -69,68 +69,68 @@ override_dh_install:
rm -rf debian/install/*/usr/lib/rpm/
rm -rf debian/install/*/etc/kernel/
find debian/install/ -name '*.la' -delete
dh_install -pudev-udeb -plibudev1-udeb --sourcedir=debian/install/udeb
dh_install $(BOOTSTRAP_DH_FLAGS) -Nudev-udeb -Nlibudev1-udeb --sourcedir=debian/install/deb --fail-missing
dh_install -peudev-udeb -plibeudev1-udeb --sourcedir=debian/install/udeb
dh_install $(BOOTSTRAP_DH_FLAGS) -Neudev-udeb -Nlibeudev1-udeb --sourcedir=debian/install/deb --fail-missing
# install some files manually, --sourcedir makes that necessary
# udev-udeb
# eudev-udeb
install -D --mode=755 debian/extra/udev.startup \
debian/udev-udeb/lib/debian-installer/start-udev
debian/eudev-udeb/lib/debian-installer/start-udev
install -D --mode=755 debian/extra/udev.base-installer \
debian/udev-udeb/usr/lib/base-installer.d/05udev
mkdir -p debian/udev-udeb/lib/udev/rules.d/
debian/eudev-udeb/usr/lib/base-installer.d/05udev
mkdir -p debian/eudev-udeb/lib/udev/rules.d/
install -D --mode=644 \
debian/extra/rules/73-idrac.rules \
debian/extra/rules/75-persistent-net-generator.rules \
debian/udev-udeb/lib/udev/rules.d/
mkdir -p debian/udev-udeb/lib/udev
debian/eudev-udeb/lib/udev/rules.d/
mkdir -p debian/eudev-udeb/lib/udev
install -D --mode=644 \
debian/extra/hotplug.functions \
debian/extra/rule_generator.functions \
debian/udev-udeb/lib/udev/
debian/eudev-udeb/lib/udev/
install -D --mode=755 \
debian/extra/write_net_rules \
debian/udev-udeb/lib/udev/
debian/eudev-udeb/lib/udev/
# udev: initramfs-tools support
install -D --mode=755 debian/extra/initramfs.hook \
debian/udev/usr/share/initramfs-tools/hooks/udev
debian/eudev/usr/share/initramfs-tools/hooks/udev
install -D --mode=755 debian/extra/initramfs.top \
debian/udev/usr/share/initramfs-tools/scripts/init-top/udev
debian/eudev/usr/share/initramfs-tools/scripts/init-top/udev
install -D --mode=755 debian/extra/initramfs.bottom \
debian/udev/usr/share/initramfs-tools/scripts/init-bottom/udev
debian/eudev/usr/share/initramfs-tools/scripts/init-bottom/udev
# udev: debian specific rules and helpers
install -D --mode=644 debian/extra/rules/* \
debian/udev/lib/udev/rules.d/
debian/eudev/lib/udev/rules.d/
install -D --mode=644 debian/extra/fbdev-blacklist.conf \
debian/udev/etc/modprobe.d/fbdev-blacklist.conf
debian/eudev/etc/modprobe.d/fbdev-blacklist.conf
install -D --mode=644 \
debian/extra/hotplug.functions \
debian/extra/rule_generator.functions \
debian/udev/lib/udev/
debian/eudev/lib/udev/
install -D --mode=755 \
debian/extra/dsl-modem.agent \
debian/extra/logger.agent \
debian/extra/net.agent \
debian/extra/udev-finish \
debian/extra/write_net_rules \
debian/udev/lib/udev/
debian/eudev/lib/udev/
# use symlinked doc directories as the old udev package did
override_dh_installdocs:
dh_installdocs -pudev -plibudev-dev --link-doc=libudev1
dh_installdocs -peudev -plibeudev-dev --link-doc=libeudev1
# we have to manually install udev's README for the above
install -D --mode 644 debian/udev.README.Debian debian/libudev1/usr/share/doc/libudev1/README.Debian
dh_installdocs -pgir1.2-gudev-1.0 -plibgudev-1.0-dev --link-doc=libgudev-1.0-0
install -D --mode 644 debian/eudev.README.Debian debian/libudev1/usr/share/doc/libudev1/README.Debian
dh_installdocs -pgir1.2-geudev-1.0 -plibgeudev-1.0-dev --link-doc=libgeudev-1.0-0
dh_installdocs --remaining-packages
override_dh_installinit:
dh_installinit --no-start
dh_installinit --name=udev --no-start
dh_installinit --name=udev-finish --no-start
dh_installinit --name=udevtrigger --no-start
dh_installinit --name=udevmonitor --no-start
dh_installinit --name=udev-fallback-graphics --no-start
override_dh_makeshlibs:
dh_makeshlibs -plibudev1 --add-udeb=libudev1-udeb
dh_makeshlibs -plibeudev1 --add-udeb=libeudev1-udeb
dh_makeshlibs --remaining-packages
autoreconf:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment