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"
|
2012-02-27 08:46:16 +00:00
|
|
|
PR = "r0"
|
2006-11-20 15:26:57 +00:00
|
|
|
|
|
|
|
SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
|
2011-11-15 20:58:40 +00:00
|
|
|
file://fix_version_check.patch \
|
2006-11-20 15:26:57 +00:00
|
|
|
file://dump \
|
|
|
|
file://filesystems"
|
|
|
|
|
2012-02-27 08:46:16 +00:00
|
|
|
SRC_URI[md5sum] = "16a407bd66d6c7a832f3a5c0d609c27b"
|
|
|
|
SRC_URI[sha256sum] = "c70ae29a28c0585f541d5916fc3248c3e91baa481f63d7ccec53d1534cbcc9b7"
|
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
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
cp ${WORKDIR}/dump ${S}/magic/Magdir/
|
|
|
|
cp ${WORKDIR}/filesystems ${S}/magic/Magdir/
|
|
|
|
}
|
2009-11-04 17:08:09 +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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-04 17:08:09 +00:00
|
|
|
BBCLASSEXTEND = "native"
|