2010-11-18 23:44:37 +00:00
|
|
|
SUMMARY = "Universal Addresses to RPC Program Number Mapper"
|
2010-09-01 07:59:08 +00:00
|
|
|
DESCRIPTION = "The rpcbind utility is a server that converts RPC \
|
|
|
|
program numbers into universal addresses."
|
|
|
|
SECTION = "console/network"
|
|
|
|
HOMEPAGE = "http://sourceforge.net/projects/rpcbind/"
|
|
|
|
BUGTRACKER = "http://sourceforge.net/tracker/?group_id=201237&atid=976751"
|
2012-02-11 00:06:10 +00:00
|
|
|
DEPENDS = "libtirpc quota"
|
|
|
|
|
2010-09-01 07:59:08 +00:00
|
|
|
LICENSE = "BSD"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
|
|
|
|
file://src/rpcinfo.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24"
|
|
|
|
|
2010-09-02 18:52:24 +00:00
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
|
2012-06-07 23:36:52 +00:00
|
|
|
file://init.d \
|
2015-04-29 07:29:56 +00:00
|
|
|
file://remove-sys-queue.patch \
|
2013-01-24 05:54:08 +00:00
|
|
|
${UCLIBCPATCHES} \
|
2015-04-06 17:36:52 +00:00
|
|
|
${MUSLPATCHES} \
|
2013-09-04 11:05:01 +00:00
|
|
|
file://rpcbind.conf \
|
2014-10-09 05:35:07 +00:00
|
|
|
file://rpcbind.socket \
|
2013-09-04 11:05:01 +00:00
|
|
|
file://rpcbind.service \
|
2010-09-02 18:52:24 +00:00
|
|
|
"
|
2015-04-06 17:36:52 +00:00
|
|
|
MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
|
2010-09-01 07:59:08 +00:00
|
|
|
|
2013-01-24 05:54:08 +00:00
|
|
|
UCLIBCPATCHES ?= ""
|
2015-04-06 17:36:52 +00:00
|
|
|
MUSLPATCHES ?= ""
|
2013-01-24 05:54:08 +00:00
|
|
|
|
2017-02-07 05:37:22 +00:00
|
|
|
SRC_URI[md5sum] = "cf10cd41ed8228fc54c316191c1f07fe"
|
|
|
|
SRC_URI[sha256sum] = "074a9a530dc7c11e0d905aa59bcb0847c009313f02e98d3d798aa9568f414c66"
|
2010-09-01 07:59:08 +00:00
|
|
|
|
2014-06-02 20:04:59 +00:00
|
|
|
inherit autotools update-rc.d systemd pkgconfig
|
2012-06-07 23:36:52 +00:00
|
|
|
|
2013-05-31 02:26:25 +00:00
|
|
|
PACKAGECONFIG ??= "tcp-wrappers"
|
|
|
|
PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
|
|
|
|
|
2012-06-07 23:36:52 +00:00
|
|
|
INITSCRIPT_NAME = "rpcbind"
|
2013-11-11 09:26:09 +00:00
|
|
|
INITSCRIPT_PARAMS = "start 12 2 3 4 5 . stop 60 0 1 6 ."
|
2012-06-07 23:36:52 +00:00
|
|
|
|
2015-03-13 18:43:23 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "rpcbind.service"
|
2013-09-04 11:05:01 +00:00
|
|
|
|
2014-03-04 10:07:57 +00:00
|
|
|
inherit useradd
|
|
|
|
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
2014-08-29 21:15:15 +00:00
|
|
|
USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \
|
2014-03-04 10:07:57 +00:00
|
|
|
--shell /bin/false --user-group rpc"
|
|
|
|
|
2017-02-27 13:02:50 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
2015-01-13 02:24:23 +00:00
|
|
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/, \
|
|
|
|
--without-systemdsystemunitdir, \
|
|
|
|
systemd \
|
|
|
|
"
|
|
|
|
|
2014-03-04 10:07:57 +00:00
|
|
|
EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
|
2013-09-04 11:05:01 +00:00
|
|
|
|
2012-06-07 23:36:52 +00:00
|
|
|
do_install_append () {
|
2013-08-13 06:52:37 +00:00
|
|
|
mv ${D}${bindir} ${D}${sbindir}
|
2012-06-07 23:36:52 +00:00
|
|
|
|
2013-08-13 06:52:37 +00:00
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
sed -e 's,/etc/,${sysconfdir}/,g' \
|
|
|
|
-e 's,/sbin/,${sbindir}/,g' \
|
|
|
|
${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind
|
|
|
|
chmod 0755 ${D}${sysconfdir}/init.d/rpcbind
|
2013-09-04 11:05:01 +00:00
|
|
|
|
|
|
|
install -m 0755 ${WORKDIR}/rpcbind.conf ${D}${sysconfdir}
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
2014-10-09 05:35:07 +00:00
|
|
|
install -m 0644 ${WORKDIR}/rpcbind.socket ${D}${systemd_unitdir}/system
|
2013-09-04 11:05:01 +00:00
|
|
|
install -m 0644 ${WORKDIR}/rpcbind.service ${D}${systemd_unitdir}/system
|
|
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' \
|
|
|
|
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
|
|
|
${D}${systemd_unitdir}/system/rpcbind.service
|
2012-06-07 23:36:52 +00:00
|
|
|
}
|