2010-11-18 23:43:33 +00:00
|
|
|
SUMMARY = "File classification tool"
|
2006-11-20 15:26:57 +00:00
|
|
|
DESCRIPTION = "File attempts to classify files depending \
|
|
|
|
on their contents and prints a description if a match is found."
|
2010-07-01 08:50:09 +00:00
|
|
|
HOMEPAGE = "http://www.darwinsys.com/file/"
|
2006-11-20 15:26:57 +00:00
|
|
|
SECTION = "console/utils"
|
2010-07-01 08:50:09 +00:00
|
|
|
|
|
|
|
# two clause BSD
|
|
|
|
LICENSE = "BSD"
|
2010-08-17 02:58:15 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188"
|
2010-07-01 08:50:09 +00:00
|
|
|
|
2010-08-17 02:58:15 +00:00
|
|
|
DEPENDS = "zlib file-native"
|
2012-10-27 08:48:17 +00:00
|
|
|
DEPENDS_class-native = "zlib-native"
|
2006-11-20 15:26:57 +00:00
|
|
|
|
|
|
|
SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
|
2014-07-10 10:31:22 +00:00
|
|
|
file://debian-742262.patch \
|
|
|
|
"
|
2006-11-20 15:26:57 +00:00
|
|
|
|
2014-06-06 08:22:27 +00:00
|
|
|
SRC_URI[md5sum] = "d420d8f2990cd344673acfbf8d76ff5a"
|
|
|
|
SRC_URI[sha256sum] = "6519fb706d583231c2419592ebecdbb21d33c62eaf7a1a0b24ddfcb80c08bf07"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools
|
2006-11-20 15:26:57 +00:00
|
|
|
|
2010-08-17 02:58:15 +00:00
|
|
|
FILES_${PN} += "${datadir}/misc/*.mgc"
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
do_install_append_class-native() {
|
2011-02-26 00:18:50 +00:00
|
|
|
create_cmdline_wrapper ${D}/${bindir}/file \
|
|
|
|
--magic-file ${datadir}/misc/magic.mgc
|
|
|
|
}
|
|
|
|
|
2014-10-11 08:59:22 +00:00
|
|
|
do_install_append_class-nativesdk() {
|
|
|
|
create_cmdline_wrapper ${D}/${bindir}/file \
|
|
|
|
--magic-file ${datadir}/misc/magic.mgc
|
|
|
|
}
|
|
|
|
|
2013-10-17 13:59:44 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|