Resend. This will add rules for compiling the 'file' utility.

Signed-off-by: Alexander Dahl <[email protected]>
---
 rules/file.in        |   15 ++++++++++
 rules/file.make      |   76 ++++++++++++++++++++++++++++++++++++++++++++++++++
 rules/host-file.in   |   13 ++++++++
 rules/host-file.make |   36 +++++++++++++++++++++++
 4 files changed, 140 insertions(+), 0 deletions(-)
 create mode 100644 rules/file.in
 create mode 100644 rules/file.make
 create mode 100644 rules/host-file.in
 create mode 100644 rules/host-file.make

diff --git a/rules/file.in b/rules/file.in
new file mode 100644
index 0000000..3dc7af8
--- /dev/null
+++ b/rules/file.in
@@ -0,0 +1,15 @@
+## SECTION=shell_and_console
+
+config FILE
+       tristate
+    select HOST_FILE
+       prompt "file"
+       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/rules/file.make b/rules/file.make
new file mode 100644
index 0000000..78ca40d
--- /dev/null
+++ b/rules/file.make
@@ -0,0 +1,76 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Alexander Dahl <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_FILE) += file
+
+#
+# Paths and names
+#
+FILE_VERSION   := 5.05
+FILE                   := file-$(FILE_VERSION)
+FILE_SUFFIX            := tar.gz
+FILE_URL               := ftp://ftp.astron.com/pub/file//$(FILE).$(FILE_SUFFIX)
+FILE_SOURCE            := $(SRCDIR)/$(FILE).$(FILE_SUFFIX)
+FILE_DIR               := $(BUILDDIR)/$(FILE)
+FILE_LICENSE   := unknown
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(FILE_SOURCE):
+       @$(call targetinfo)
+       @$(call get, FILE)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#FILE_CONF_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+FILE_CONF_TOOL := autoconf
+#FILE_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+#$(STATEDIR)/file.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(FILE_DIR)/config.cache)
+#      cd $(FILE_DIR) && \
+#              $(FILE_PATH) $(FILE_ENV) \
+#              ./configure $(FILE_CONF_OPT)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/file.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, file)
+       @$(call install_fixup, file,PRIORITY,optional)
+       @$(call install_fixup, file,SECTION,base)
+       @$(call install_fixup, file,AUTHOR,"Alexander Dahl <[email protected]>")
+       @$(call install_fixup, file,DESCRIPTION,missing)
+
+       @$(call install_lib, file, 0, 0, 0644, libmagic)
+       @$(call install_copy, file, 0, 0, 0755, -, /usr/bin/file)
+       @$(call install_copy, file, 0, 0, 0644, -, /usr/share/misc/magic.mgc)
+
+       @$(call install_finish, file)
+
+       @$(call touch)
+
+# vim: syntax=make
diff --git a/rules/host-file.in b/rules/host-file.in
new file mode 100644
index 0000000..18b2c08
--- /dev/null
+++ b/rules/host-file.in
@@ -0,0 +1,13 @@
+## SECTION=hosttools_noprompt
+
+config HOST_FILE
+       tristate
+       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/rules/host-file.make b/rules/host-file.make
new file mode 100644
index 0000000..dceb06e
--- /dev/null
+++ b/rules/host-file.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Alexander Dahl <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_FILE) += host-file
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#HOST_FILE_CONF_ENV    := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_FILE_CONF_TOOL    := autoconf
+#HOST_FILE_CONF_OPT    := $(HOST_AUTOCONF)
+
+#$(STATEDIR)/host-file.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(HOST_FILE_DIR)/config.cache)
+#      cd $(HOST_FILE_DIR) && \
+#              $(HOST_FILE_PATH) $(HOST_FILE_ENV) \
+#              ./configure $(HOST_FILE_CONF_OPT)
+#      @$(call touch)
+
+# vim: syntax=make
-- 
1.7.2.5


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
ptxdist mailing list
[email protected]

Reply via email to