blob: 49a3d74f6fcd4df7c1febb4d6d30bb8869112ced [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/"
3LICENSE = "GPLv2"
4LIC_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 \
13"
14
15SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
16SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"
17
18S = "${WORKDIR}/${BPN}"
19
20PR = "r1"
21
22do_compile_prepend() {
23 # 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
30ALTERNATIVE_${PN} = "volname eject"
31ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
32ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
33ALTERNATIVE_PRIORITY[volname] = "100"
34ALTERNATIVE_PRIORITY[eject] = "100"
35
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036ALTERNATIVE_${PN}-doc = "eject.1"
37ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"