blob: dec2e7ab4ca280aa99394d54b44461eb773910f3 [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 \
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
21PR = "r1"
22
23do_compile_prepend() {
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
31ALTERNATIVE_${PN} = "volname eject"
32ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
33ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
34ALTERNATIVE_PRIORITY[volname] = "100"
35ALTERNATIVE_PRIORITY[eject] = "100"
36
Brad Bishop6e60e8b2018-02-01 10:27:11 -050037ALTERNATIVE_${PN}-doc = "eject.1"
38ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"