blob: dd5489e7db54a090fe48e5417599cd09170448e4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control."
2HOMEPAGE = "http://eject.sourceforge.net/"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
5
6inherit autotools gettext update-alternatives
7
8SRC_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 Bishop1a4b7ee2018-12-16 17:11:34 -080013 file://0001-eject-Include-sys-sysmacros.h-for-major-minor.patch \
14 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015
16SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
17SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"
18
19S = "${WORKDIR}/${BPN}"
20
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
Patrick Williams213cb262021-08-07 19:21:33 -050022do_compile:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023 # PO subdir must be in build directory
24 if [ ! ${S} = ${B} ]; then
25 mkdir -p ${B}/po
26 cp -r ${S}/po/* ${B}/po/
27 fi
28}
29
Patrick Williams213cb262021-08-07 19:21:33 -050030ALTERNATIVE:${PN} = "volname eject"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
32ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
33ALTERNATIVE_PRIORITY[volname] = "100"
34ALTERNATIVE_PRIORITY[eject] = "100"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036ALTERNATIVE:${PN}-doc = "eject.1"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050037ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"