diff options
Diffstat (limited to 'package/file')
-rw-r--r-- | package/file/Config.in | 14 | ||||
-rw-r--r-- | package/file/Makefile | 32 | ||||
-rw-r--r-- | package/file/ipkg/file.control | 4 |
3 files changed, 50 insertions, 0 deletions
diff --git a/package/file/Config.in b/package/file/Config.in new file mode 100644 index 000000000..7ff23c16f --- /dev/null +++ b/package/file/Config.in @@ -0,0 +1,14 @@ +config ADK_PACKAGE_FILE + prompt "file.............................. a file type guesser" + tristate + default n + help + + The file command is "a file type guesser", that is, a command-line + tool that tells you in words what kind of data a file contains. Unlike + most GUI systems, command-line UNIX systems - with this program + leading the charge - don't rely on filename extentions to tell you the + type of a file, but look at the file's actual contents. This is, of + course, more reliable, but requires a bit of I/O. + + http://www.darwinsys.com/file/ diff --git a/package/file/Makefile b/package/file/Makefile new file mode 100644 index 000000000..c4704c7a7 --- /dev/null +++ b/package/file/Makefile @@ -0,0 +1,32 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= file +PKG_VERSION:= 4.26 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 74cd5466416136da30a4e69f74dbc7a0 +MASTER_SITES:= ftp://ftp.fu-berlin.de/unix/tools/file/ \ + ftp://ftp.astron.com/pub/file/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,FILE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_FILE}/usr/bin + ${INSTALL_DIR} ${IDIR_FILE}/usr/lib + ${INSTALL_DIR} ${IDIR_FILE}/usr/share/file + ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin + ${INSTALL_DATA} ${WRKINST}/usr/share/file/magic.mgc \ + ${IDIR_FILE}/usr/share/file + ${CP} ${WRKINST}/usr/lib/libmagic.so.* ${IDIR_FILE}/usr/lib/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/file/ipkg/file.control b/package/file/ipkg/file.control new file mode 100644 index 000000000..f454a01d9 --- /dev/null +++ b/package/file/ipkg/file.control @@ -0,0 +1,4 @@ +Package: file +Priority: optional +Section: net +Description: a file type guesser |