blob: 52e30267f507fbd97bc9efaf5ba8632e23261f7f [file] [log] [blame]
Brad Bishop79641f22019-09-10 07:20:22 -04001SUMMARY = "lsb_release support for OpenEmbedded"
2SECTION = "console/utils"
3HOMEPAGE = "http://prdownloads.sourceforge.net/lsb"
4LICENSE = "GPLv2+"
5
6# lsb_release needs getopt
7RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_getopt}"
8
9LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz \
12 file://0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch \
13 "
14
15SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4"
16SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172"
17
18UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/lsb/files/lsb_release/"
19UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/"
20
21CLEANBROKEN = "1"
22
23do_install() {
24 oe_runmake install prefix=${D}${root_prefix} mandir=${D}${datadir}/man/ DESTDIR=${D}
25
26 mkdir -p ${D}${sysconfdir}/lsb-release.d
27
28 echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release
29 echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release
30 if [ -n "${DISTRO_CODENAME}" ]; then
31 echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release
32 fi
33 echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release
34}
35
36FILES_${PN} += "${base_libdir}"