Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 1 | SUMARRY = "The ethernet monitor program; for keeping track of ethernet/ip address pairings" |
| 2 | LICENSE = "BSD-4-Clause" |
| 3 | HOME_PAGE = "http://ee.lbl.gov/" |
Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://configure;md5=0f6cca2f69f384a14e2f5803210ca92e" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 5 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 6 | DEPENDS += "libpcap" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 7 | |
| 8 | SRC_URI = "https://ee.lbl.gov/downloads/arpwatch/${BP}.tar.gz \ |
| 9 | file://arpwatch.conf \ |
| 10 | file://arpwatch.default \ |
| 11 | file://arpwatch_init \ |
Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 12 | file://host_contam_fix.patch \ |
| 13 | " |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 14 | |
Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "d47fa8b291fc37a25a2d0f3e1b64f451dc0be82d714a10ffa6ef8b0b9e33e166" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 16 | |
| 17 | inherit autotools-brokensep update-rc.d useradd |
| 18 | |
| 19 | ARPWATCH_UID ?= "arpwatch" |
| 20 | ARPWATCH_GID ?= "arpwatch" |
| 21 | APRWATCH_FROM ?= "root " |
| 22 | ARPWATH_REPLY ?= "${ARPWATCH_UID}" |
| 23 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 24 | PACKAGECONFIG ??= "" |
| 25 | |
| 26 | PACKACONFIG[email] = "-with-watcher=email=${APRWATCH_FROM} --with-watchee=email=${ARPWATH_REPLY}, , postfix, postfix postfix-cfg" |
| 27 | |
| 28 | EXTRA_OECONF:append = " --srcdir=${S}" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 29 | |
| 30 | CONFIGUREOPTS = " --build=${BUILD_SYS} \ |
| 31 | --host=${HOST_SYS} \ |
| 32 | --target=${TARGET_SYS} \ |
| 33 | --prefix=${prefix} \ |
| 34 | --exec_prefix=${exec_prefix} \ |
| 35 | --bindir=${bindir} \ |
| 36 | --sbindir=${sbindir} \ |
| 37 | --libexecdir=${libexecdir} \ |
| 38 | --datadir=${datadir} \ |
| 39 | --sysconfdir=${sysconfdir} \ |
| 40 | --sharedstatedir=${sharedstatedir} \ |
| 41 | --localstatedir=${localstatedir} \ |
| 42 | --libdir=${libdir} \ |
| 43 | --includedir=${includedir} \ |
| 44 | --oldincludedir=${oldincludedir} \ |
| 45 | --infodir=${infodir} \ |
| 46 | --mandir=${mandir} \ |
| 47 | " |
| 48 | |
| 49 | do_configure () { |
| 50 | ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
| 51 | } |
| 52 | |
| 53 | do_install () { |
| 54 | install -d ${D}${bindir} |
| 55 | install -d ${D}${sbindir} |
| 56 | install -d ${D}${mandir} |
| 57 | install -d ${D}${sysconfdir} |
| 58 | install -d ${D}${sysconfdir}/default |
| 59 | install -d ${D}${sysconfdir}/init.d |
| 60 | install -d ${D}${prefix}/etc/rc.d |
| 61 | install -d ${D}/var/lib/arpwatch |
| 62 | |
| 63 | oe_runmake install DESTDIR=${D} |
| 64 | install -m 644 ${WORKDIR}/arpwatch.conf ${D}${sysconfdir} |
| 65 | install -m 655 ${WORKDIR}/arpwatch_init ${D}${sysconfdir}/init.d/arpwatch |
| 66 | install -m 644 ${WORKDIR}/arpwatch.default ${D}${sysconfdir}/default |
| 67 | } |
| 68 | |
| 69 | INITSCRIPT_NAME = "arpwatch" |
| 70 | INITSCRIPT_PARAMS = "start 02 2 3 4 5 . stop 20 0 1 6 ." |
| 71 | |
| 72 | USERADD_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 73 | GROUPADD_PARAM:${PN} = "--system ${ARPWATCH_UID}" |
| 74 | USERADD_PARAM:${PN} = "--system -g ${ARPWATCH_GID} --home-dir \ |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 75 | ${localstatedir}/spool/${BPN} \ |
| 76 | --no-create-home --shell /bin/false ${BPN}" |
| 77 | |
| 78 | CONFFILE_FILES = "${sysconfdir}/${PN}.conf" |
| 79 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 80 | FILES:${PN} = "${bindir} ${sbindir} ${prefix}/etc/rc.d \ |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 81 | ${sysconfdir} /var/lib/arpwatch" |
| 82 | |
Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 83 | COMPATIBLE_HOST:riscv32 = "null" |
| 84 | COMPATIBLE_HOST:riscv64 = "null" |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 85 | COMPATIBLE_HOST:libc-musl = "null" |
Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 86 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 87 | RDEPENDS:${PN} = "libpcap" |