--- rules/file.in | 15 +++++++ rules/file.make | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ rules/host-file.in | 13 ++++++ rules/host-file.make | 73 +++++++++++++++++++++++++++++++++++ 4 files changed, 203 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..0725c2b --- /dev/null +++ b/rules/file.make @@ -0,0 +1,102 @@ +# -*-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) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/file.compile: +# @$(call targetinfo) +# @$(call world/compile, FILE) +# @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/file.install: +# @$(call targetinfo) +# @$(call world/install, FILE) +# @$(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) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/file.clean: +# @$(call targetinfo) +# @$(call clean_pkg, FILE) + +# vim: ft=make noet 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..ff774d9 --- /dev/null +++ b/rules/host-file.make @@ -0,0 +1,73 @@ +# -*-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 + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/host-file.extract: +# @$(call targetinfo) +# @$(call clean, $(HOST_FILE_DIR)) +# @$(call extract, FILE, $(HOST_BUILDDIR)) +# @$(call patchin, FILE, $(HOST_FILE_DIR)) +# @$(call touch) + +# ---------------------------------------------------------------------------- +# 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) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/host-file.compile: +# @$(call targetinfo) +# @$(call world/compile, HOST_FILE) +# @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/host-file.install: +# @$(call targetinfo) +# @$(call world/install, HOST_FILE) +# @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/host-file.clean: +# @$(call targetinfo) +# @$(call clean_pkg, HOST_FILE) + +# vim: ft=make noet -- 1.7.2.5
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list [email protected]
