1DESCRIPTION = "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 = "GPL-2.0-only" 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 file://0001-eject-Include-sys-sysmacros.h-for-major-minor.patch \ 14 " 15 16SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738" 17SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55" 18 19S = "${WORKDIR}/${BPN}" 20 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 36ALTERNATIVE:${PN}-doc = "eject.1" 37ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1" 38