summaryrefslogtreecommitdiff
path: root/package/file
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/file
Initial import
Diffstat (limited to 'package/file')
-rw-r--r--package/file/Config.in14
-rw-r--r--package/file/Makefile32
-rw-r--r--package/file/ipkg/file.control4
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