1SUMMARY = "A serial to network proxy" 2SECTION = "console/network" 3HOMEPAGE = "http://sourceforge.net/projects/ser2net/" 4 5LICENSE = "GPL-2.0-only" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 7 8DEPENDS = "gensio libyaml" 9 10SRC_URI = "${SOURCEFORGE_MIRROR}/project/ser2net/ser2net/ser2net-${PV}.tar.gz \ 11 file://ser2net.service \ 12" 13 14SRC_URI[sha256sum] = "63bafcd65bb9270a93b7d5cdde58ccf4d279603ff6d044ac4b484a257cda82ce" 15 16UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/ser2net/files/ser2net" 17 18inherit autotools pkgconfig systemd 19 20SYSTEMD_SERVICE:${PN} = "ser2net.service" 21 22CONFFILES:${PN} += "${sysconfdir}/ser2net/ser2net.yaml" 23 24do_install:append() { 25 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 26 install -d ${D}${systemd_unitdir}/system 27 install -m 0644 ${UNPACKDIR}/ser2net.service ${D}${systemd_unitdir}/system/ 28 sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/ser2net.service 29 fi 30} 31