Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control." |
| 2 | HOMEPAGE = "http://eject.sourceforge.net/" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" |
| 5 | |
| 6 | inherit autotools gettext update-alternatives |
| 7 | |
| 8 | SRC_URI = "http://sources.openembedded.org/${BP}.tar.gz \ |
| 9 | file://eject-2.1.5-error-return.patch \ |
| 10 | file://eject-2.1.1-verbose.patch \ |
| 11 | file://eject-2.1.5-spaces.patch \ |
| 12 | file://eject-timeout.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | file://0001-eject-Include-sys-sysmacros.h-for-major-minor.patch \ |
| 14 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
| 16 | SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738" |
| 17 | SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55" |
| 18 | |
| 19 | S = "${WORKDIR}/${BPN}" |
| 20 | |
| 21 | PR = "r1" |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | do_compile:prepend() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | # PO subdir must be in build directory |
| 25 | if [ ! ${S} = ${B} ]; then |
| 26 | mkdir -p ${B}/po |
| 27 | cp -r ${S}/po/* ${B}/po/ |
| 28 | fi |
| 29 | } |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | ALTERNATIVE:${PN} = "volname eject" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 32 | ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname" |
| 33 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" |
| 34 | ALTERNATIVE_PRIORITY[volname] = "100" |
| 35 | ALTERNATIVE_PRIORITY[eject] = "100" |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | ALTERNATIVE:${PN}-doc = "eject.1" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1" |