diff options
Diffstat (limited to 'meta/recipes-support/debianutils/debianutils_5.16.bb')
| -rw-r--r-- | meta/recipes-support/debianutils/debianutils_5.16.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-support/debianutils/debianutils_5.16.bb b/meta/recipes-support/debianutils/debianutils_5.16.bb new file mode 100644 index 0000000000..ec629d8b73 --- /dev/null +++ b/meta/recipes-support/debianutils/debianutils_5.16.bb | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | SUMMARY = "Miscellaneous utilities specific to Debian" | ||
| 2 | DESCRIPTION = "Provides a number of small utilities which are used \ | ||
| 3 | primarily by the installation scripts of Debian packages, although \ | ||
| 4 | you may use them directly. " | ||
| 5 | HOMEPAGE = "https://packages.debian.org/sid/debianutils" | ||
| 6 | BUGTRACKER = "https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=debianutils;dist=unstable" | ||
| 7 | SECTION = "base" | ||
| 8 | LICENSE = "GPL-2.0-only & SMAIL_GPL" | ||
| 9 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=4b667f30411d21bc8fd7db85d502a8e9" | ||
| 10 | |||
| 11 | SRC_URI = "git://salsa.debian.org/debian/debianutils.git;protocol=https;branch=master \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRCREV = "9e0facf19b17b6d090a5dcc8cacb0c16e5ad9f72" | ||
| 15 | |||
| 16 | inherit autotools update-alternatives | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | # Disable po4a (translated manpages) sub-directory, as that requires po4a to build | ||
| 21 | do_configure:prepend() { | ||
| 22 | sed -i -e 's:po4a::g' ${S}/Makefile.am | ||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | do_install:append() { | ||
| 27 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
| 28 | # Debian places some utils into ${base_bindir} as does busybox | ||
| 29 | install -d ${D}${base_bindir} | ||
| 30 | for app in run-parts; do | ||
| 31 | mv ${D}${bindir}/$app ${D}${base_bindir}/$app | ||
| 32 | done | ||
| 33 | fi | ||
| 34 | mv ${D}${bindir}/which.debianutils ${D}${bindir}/which | ||
| 35 | } | ||
| 36 | |||
| 37 | # Note that we package the update-alternatives name. | ||
| 38 | # | ||
| 39 | PACKAGES =+ "${PN}-run-parts" | ||
| 40 | FILES:${PN}-run-parts = "${base_bindir}/run-parts.debianutils" | ||
| 41 | |||
| 42 | RDEPENDS:${PN} += "${PN}-run-parts" | ||
| 43 | RDEPENDS:${PN}:class-native = "" | ||
| 44 | |||
| 45 | ALTERNATIVE_PRIORITY = "30" | ||
| 46 | ALTERNATIVE:${PN} = "add-shell installkernel remove-shell savelog which" | ||
| 47 | |||
| 48 | ALTERNATIVE_PRIORITY_${PN}-run-parts = "60" | ||
| 49 | ALTERNATIVE:${PN}-run-parts = "run-parts" | ||
| 50 | |||
| 51 | ALTERNATIVE_LINK_NAME[add-shell] = "${sbindir}/add-shell" | ||
| 52 | ALTERNATIVE_LINK_NAME[installkernel] = "${sbindir}/installkernel" | ||
| 53 | ALTERNATIVE_LINK_NAME[remove-shell] = "${sbindir}/remove-shell" | ||
| 54 | ALTERNATIVE_LINK_NAME[run-parts] = "${base_bindir}/run-parts" | ||
| 55 | ALTERNATIVE_LINK_NAME[savelog] = "${bindir}/savelog" | ||
| 56 | ALTERNATIVE_LINK_NAME[which] = "${bindir}/which" | ||
| 57 | |||
| 58 | BBCLASSEXTEND = "native" | ||
