diff options
Diffstat (limited to 'meta/recipes-support/debianutils')
-rw-r--r-- | meta/recipes-support/debianutils/debianutils_4.11.2.bb | 55 | ||||
-rw-r--r-- | meta/recipes-support/debianutils/debianutils_5.17.bb | 58 |
2 files changed, 58 insertions, 55 deletions
diff --git a/meta/recipes-support/debianutils/debianutils_4.11.2.bb b/meta/recipes-support/debianutils/debianutils_4.11.2.bb deleted file mode 100644 index 0eeb2954f7..0000000000 --- a/meta/recipes-support/debianutils/debianutils_4.11.2.bb +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | SUMMARY = "Miscellaneous utilities specific to Debian" | ||
2 | SECTION = "base" | ||
3 | LICENSE = "GPLv2 & SMAIL_GPL" | ||
4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=9b912cd0cc654134c0ef3424a0705b94" | ||
5 | |||
6 | SRC_URI = "http://snapshot.debian.org/archive/debian/20200929T025235Z/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz" | ||
7 | # the package is taken from snapshots.debian.org; that source is static and goes stale | ||
8 | # so we check the latest upstream from a directory that does get updated | ||
9 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/" | ||
10 | |||
11 | SRC_URI[sha256sum] = "3b680e81709b740387335fac8f8806d71611dcf60874e1a792e862e48a1650de" | ||
12 | |||
13 | inherit autotools update-alternatives | ||
14 | |||
15 | S = "${WORKDIR}/debianutils" | ||
16 | do_configure_prepend() { | ||
17 | sed -i -e 's:tempfile.1 which.1:which.1:g' ${S}/Makefile.am | ||
18 | } | ||
19 | |||
20 | do_install_append() { | ||
21 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
22 | # Debian places some utils into ${base_bindir} as does busybox | ||
23 | install -d ${D}${base_bindir} | ||
24 | for app in run-parts tempfile; do | ||
25 | mv ${D}${bindir}/$app ${D}${base_bindir}/$app | ||
26 | done | ||
27 | fi | ||
28 | } | ||
29 | |||
30 | # Note that we package the update-alternatives name. | ||
31 | # | ||
32 | PACKAGES =+ "${PN}-run-parts" | ||
33 | FILES_${PN}-run-parts = "${base_bindir}/run-parts.debianutils" | ||
34 | |||
35 | RDEPENDS_${PN} += "${PN}-run-parts" | ||
36 | RDEPENDS_${PN}_class-native = "" | ||
37 | |||
38 | ALTERNATIVE_PRIORITY = "30" | ||
39 | ALTERNATIVE_${PN} = "add-shell installkernel remove-shell savelog tempfile which" | ||
40 | |||
41 | ALTERNATIVE_PRIORITY_${PN}-run-parts = "60" | ||
42 | ALTERNATIVE_${PN}-run-parts = "run-parts" | ||
43 | |||
44 | ALTERNATIVE_${PN}-doc = "which.1" | ||
45 | ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1" | ||
46 | |||
47 | ALTERNATIVE_LINK_NAME[add-shell] = "${sbindir}/add-shell" | ||
48 | ALTERNATIVE_LINK_NAME[installkernel] = "${sbindir}/installkernel" | ||
49 | ALTERNATIVE_LINK_NAME[remove-shell] = "${sbindir}/remove-shell" | ||
50 | ALTERNATIVE_LINK_NAME[run-parts] = "${base_bindir}/run-parts" | ||
51 | ALTERNATIVE_LINK_NAME[savelog] = "${bindir}/savelog" | ||
52 | ALTERNATIVE_LINK_NAME[tempfile] = "${base_bindir}/tempfile" | ||
53 | ALTERNATIVE_LINK_NAME[which] = "${bindir}/which" | ||
54 | |||
55 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/debianutils/debianutils_5.17.bb b/meta/recipes-support/debianutils/debianutils_5.17.bb new file mode 100644 index 0000000000..c5f25bae40 --- /dev/null +++ b/meta/recipes-support/debianutils/debianutils_5.17.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 = "baf12e98a02883d1b76081e32f2185ee3497570b" | ||
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" | ||