diff options
author | Alexander Dahl <post@lespocky.de> | 2011-05-03 08:15:42 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-04 12:23:57 +0200 |
commit | 84cf020faa514938f4d87ba659013cf11b0dc4f4 (patch) | |
tree | 6849f1a6816cd3430354ce287fb864c59daf256b /rules/file.make | |
parent | e69206eb6237d3e6a823c46a3218d0ece0e94ad0 (diff) | |
download | ptxdist-84cf020faa514938f4d87ba659013cf11b0dc4f4.tar.gz ptxdist-84cf020faa514938f4d87ba659013cf11b0dc4f4.tar.xz |
add utility 'file' for determining file types
Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/file.make')
-rw-r--r-- | rules/file.make | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/rules/file.make b/rules/file.make new file mode 100644 index 000000000..497cf7e6b --- /dev/null +++ b/rules/file.make @@ -0,0 +1,50 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Alexander Dahl <post@lespocky.de> +# +# 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.06 +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 + +FILE_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# 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 <post@lespocky.de>") + @$(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 |