1*4882a593SmuzhiyunSUMMARY = "The RARP daemon." 2*4882a593SmuzhiyunDESCRIPTION = "RARP (Reverse Address Resolution Protocol) is a protocol which \ 3*4882a593Smuzhiyunallows individual devices on an IP network to get their own IP addresses from \ 4*4882a593Smuzhiyunthe RARP server. Some machines (e.g. SPARC boxes) use this protocol instead \ 5*4882a593Smuzhiyunof e.g. DHCP to query their IP addresses during network bootup. \ 6*4882a593SmuzhiyunLinux kernels up to 2.2 used to provide a kernel daemon for this service, \ 7*4882a593Smuzhiyunbut since 2.3 kernels it is served by this userland daemon. \ 8*4882a593SmuzhiyunYou should install rarpd if you want to set up a RARP server on your \ 9*4882a593Smuzhiyunnetwork." 10*4882a593SmuzhiyunSECTION = "System Environment/Daemons" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BP}.tar.gz/be2a88f8ccddf2a40ac484cb3294fedc/${BP}.tar.gz" 13*4882a593SmuzhiyunSRC_URI[md5sum] = "be2a88f8ccddf2a40ac484cb3294fedc" 14*4882a593SmuzhiyunSRC_URI[sha256sum] = "4d6145d435a5d8b567b9798620f57f9b0a464078a1deba267958f168fbe776e6" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSRC_URI += "file://0001-rarpd.8-add-man-file.patch \ 17*4882a593Smuzhiyun file://0002-Makefile-modify-compile-parameters.patch \ 18*4882a593Smuzhiyun file://0003-rarpd.c-bug-fix.patch \ 19*4882a593Smuzhiyun file://0004-rarpd.init-add-new-init-file.patch \ 20*4882a593Smuzhiyun file://0005-ethernet.c-remove-it.patch \ 21*4882a593Smuzhiyun file://ethers.sample \ 22*4882a593Smuzhiyun file://rarpd.service \ 23*4882a593Smuzhiyun" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 26*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://rarpd.c;md5=199b20b172ea93121bc613a9c77b6931" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunS = "${WORKDIR}/${BPN}" 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunEXTRA_OEMAKE = "-e MAKEFLAGS=" 31*4882a593Smuzhiyun 32*4882a593Smuzhiyundo_install() { 33*4882a593Smuzhiyun install -d ${D}${sysconfdir}/init.d 34*4882a593Smuzhiyun install -d ${D}${sbindir} 35*4882a593Smuzhiyun install -d ${D}${mandir}/man8 36*4882a593Smuzhiyun install -m 755 rarpd.init ${D}${sysconfdir}/init.d/rarpd 37*4882a593Smuzhiyun install -m 755 rarpd ${D}${sbindir}/rarpd 38*4882a593Smuzhiyun install -m 644 rarpd.8 ${D}${mandir}/man8/rarpd.8 39*4882a593Smuzhiyun install -m 644 ${WORKDIR}/ethers.sample ${D}${sysconfdir}/ethers 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun install -d ${D}${systemd_unitdir}/system 42*4882a593Smuzhiyun install -m 0644 ${WORKDIR}/rarpd.service ${D}${systemd_unitdir}/system/ 43*4882a593Smuzhiyun} 44*4882a593Smuzhiyun 45*4882a593Smuzhiyuninherit systemd 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunSYSTEMD_PACKAGES = "${PN}" 48*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "rarpd.service" 49*4882a593SmuzhiyunSYSTEMD_AUTO_ENABLE = "disable" 50*4882a593Smuzhiyun 51*4882a593SmuzhiyunRDEPENDS:${PN} += "bash" 52