Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require portmap.inc |
| 2 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 3 | DEPENDS_append_libc-musl = " libtirpc " |
| 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | PR = "r9" |
| 6 | |
| 7 | SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz \ |
| 8 | file://destdir-no-strip.patch \ |
| 9 | file://tcpd-config.patch \ |
| 10 | file://portmap.init \ |
| 11 | file://portmap.service" |
| 12 | |
| 13 | SRC_URI[md5sum] = "ac108ab68bf0f34477f8317791aaf1ff" |
| 14 | SRC_URI[sha256sum] = "02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de" |
| 15 | |
| 16 | S = "${WORKDIR}/${BPN}_${PV}/" |
| 17 | |
| 18 | PACKAGECONFIG ??= "tcp-wrappers" |
| 19 | PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers" |
| 20 | |
| 21 | CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS -DHOSTS_ACCESS" |
| 22 | CFLAGS += "-Wall -Wstrict-prototypes -fPIC" |
| 23 | EXTRA_OEMAKE += "'NO_TCP_WRAPPER=${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '', '1', d)}'" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc " |
| 25 | LDFLAGS_append_libc-musl = " -ltirpc " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | |
| 27 | do_install() { |
| 28 | install -d ${D}${mandir}/man8/ ${D}${base_sbindir} ${D}${sysconfdir}/init.d |
| 29 | install -m 0755 ${WORKDIR}/portmap.init ${D}${sysconfdir}/init.d/portmap |
| 30 | oe_runmake install DESTDIR=${D} |
| 31 | |
| 32 | install -d ${D}${systemd_unitdir}/system |
| 33 | install -m 0644 ${WORKDIR}/portmap.service ${D}${systemd_unitdir}/system |
| 34 | sed -i -e 's,@BASE_SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/portmap.service |
| 35 | } |