mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 11:43:04 +01:00
* The SRC_URI and S in portmap.inc was for portmap 5, but we don't have
it any more.
* Remove DEPENDS = "virtual/fakeroot-native" and fakeroot before
do_install.
* Remove sbindir = "/sbin" and use "${base_sbindir}" in FILES.
* Move patches from dir portmap-6.0 to portmap.
(From OE-Core rev: b341066d625d5ff7980a4bdffb338fc83940502b)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
1.1 KiB
BlitzBasic
32 lines
1.1 KiB
BlitzBasic
require portmap.inc
|
|
|
|
PR = "r9"
|
|
|
|
SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz \
|
|
file://destdir-no-strip.patch \
|
|
file://tcpd-config.patch \
|
|
file://portmap.init \
|
|
file://portmap.service"
|
|
|
|
SRC_URI[md5sum] = "ac108ab68bf0f34477f8317791aaf1ff"
|
|
SRC_URI[sha256sum] = "02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de"
|
|
|
|
S = "${WORKDIR}/${BPN}_${PV}/"
|
|
|
|
PACKAGECONFIG ??= "tcp-wrappers"
|
|
PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers"
|
|
|
|
CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS -DHOSTS_ACCESS"
|
|
CFLAGS += "-Wall -Wstrict-prototypes -fPIC"
|
|
EXTRA_OEMAKE += "'NO_TCP_WRAPPER=${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '', '1', d)}'"
|
|
|
|
do_install() {
|
|
install -d ${D}${mandir}/man8/ ${D}${base_sbindir} ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${WORKDIR}/portmap.init ${D}${sysconfdir}/init.d/portmap
|
|
oe_runmake install DESTDIR=${D}
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 0644 ${WORKDIR}/portmap.service ${D}${systemd_unitdir}/system
|
|
sed -i -e 's,@BASE_SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/portmap.service
|
|
}
|