summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/portmap/portmap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/portmap/portmap.inc')
-rw-r--r--meta/recipes-connectivity/portmap/portmap.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/portmap/portmap.inc b/meta/recipes-connectivity/portmap/portmap.inc
new file mode 100644
index 0000000000..f5f7fde8be
--- /dev/null
+++ b/meta/recipes-connectivity/portmap/portmap.inc
@@ -0,0 +1,34 @@
1SUMMARY = "RPC program number mapper"
2HOMEPAGE = "http://neil.brown.name/portmap/"
3SECTION = "console/network"
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://portmap.c;beginline=2;endline=31;md5=51ff67e66ec84b2009b017b1f94afbf4 \
6 file://from_local.c;beginline=9;endline=35;md5=1bec938a2268b8b423c58801ace3adc1"
7DEPENDS = "virtual/fakeroot-native"
8
9SRC_URI = "${DEBIAN_MIRROR}/main/p/portmap/portmap_5.orig.tar.gz \
10 ${DEBIAN_MIRROR}/main/p/portmap/portmap_${PV}.diff.gz \
11 file://portmap.init \
12 file://make.patch;apply=yes"
13
14S = "${WORKDIR}/portmap_5beta"
15
16INITSCRIPT_NAME = "portmap"
17INITSCRIPT_PARAMS = "start 10 2 3 4 5 . stop 32 0 1 6 ."
18
19inherit update-rc.d systemd
20
21SYSTEMD_SERVICE_${PN} = "portmap.service"
22
23sbindir = "/sbin"
24
25fakeroot do_install() {
26 install -d ${D}${sysconfdir}/init.d
27 install -d ${D}${base_sbindir}
28 install -m 0755 ${WORKDIR}/portmap.init ${D}${sysconfdir}/init.d/portmap
29 oe_runmake 'docdir=${docdir}/portmap' 'DESTDIR=${D}' install
30}
31
32PACKAGES =+ "portmap-utils"
33FILES_portmap-utils = "/sbin/pmap_set /sbin/pmap_dump"
34FILES_${PN}-doc += "${docdir}"