Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 2 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=091556bd6d0154cd4c2d17a1bfc7380a" |
| 4 | |
| 5 | DEPENDS = "libusb1" |
| 6 | |
| 7 | SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2" |
| 8 | SRC_URI[md5sum] = "be73dcc84025794081a1d4d4e5a75e4c" |
| 9 | SRC_URI[sha256sum] = "c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3" |
| 10 | |
| 11 | inherit pkgconfig systemd |
| 12 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 13 | SYSTEMD_SERVICE:${PN} = "usb_modeswitch@.service" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
| 15 | EXTRA_OEMAKE = "TCL=${bindir}/tclsh" |
| 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | FILES:${PN} = "${bindir} ${sysconfdir} ${nonarch_base_libdir}/udev/usb_modeswitch ${sbindir} ${localstatedir}/lib/usb_modeswitch" |
| 18 | RDEPENDS:${PN} = "tcl" |
| 19 | RRECOMMENDS:${PN} = "usb-modeswitch-data" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | |
| 21 | do_install() { |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 22 | oe_runmake DESTDIR=${D} UDEVDIR=${D}/${nonarch_base_libdir}/udev install |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 24 | install -d ${D}/${systemd_unitdir}/system |
| 25 | install -m 644 ${S}/usb_modeswitch@.service ${D}/${systemd_unitdir}/system |
| 26 | fi |
| 27 | } |