diff options
author | Alexander Dahl <post@lespocky.de> | 2014-02-23 14:01:32 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-03-06 18:49:18 +0100 |
commit | 74d9b069c3c8faa588acdad41a7a15245a92c760 (patch) | |
tree | ac1988f8259371e72c20f6642f0269c8d916a58a /rules/libtar.make | |
parent | e6127b5f38a96d1c0f7601f8b597fbd713f45696 (diff) | |
download | ptxdist-74d9b069c3c8faa588acdad41a7a15245a92c760.tar.gz ptxdist-74d9b069c3c8faa588acdad41a7a15245a92c760.tar.xz |
libtar: add as new package
libtar is a C library for manipulating POSIX tar files. It handles
adding and extracting files to/from a tar archive. I reviewed the
current Debian patches for usefulness and added all of them. Since the
"official unofficial" way (maintainer's words) to get new releases is
Git only I used the ptxdist mechanism for creating a tarball from a git
clone in get stage.
Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libtar.make')
-rw-r--r-- | rules/libtar.make | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/libtar.make b/rules/libtar.make new file mode 100644 index 000000000..24348224c --- /dev/null +++ b/rules/libtar.make @@ -0,0 +1,62 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 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_LIBTAR) += libtar + +# +# Paths and names +# +LIBTAR_VERSION := 1.2.20 +LIBTAR_MD5 := dcdcdf8cfbbd3df3862198b0897071b6 +LIBTAR := libtar-$(LIBTAR_VERSION) +LIBTAR_SUFFIX := tar.gz +LIBTAR_URL := git://repo.or.cz/libtar.git;tag=v$(LIBTAR_VERSION) +LIBTAR_SOURCE := $(SRCDIR)/$(LIBTAR).$(LIBTAR_SUFFIX) +LIBTAR_DIR := $(BUILDDIR)/$(LIBTAR) +LIBTAR_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +#LIBTAR_CONF_ENV := $(CROSS_ENV) + +# +# autoconf +# +LIBTAR_CONF_TOOL := autoconf +LIBTAR_CONF_OPT := $(CROSS_AUTOCONF_USR) \ + --disable-encap \ + --disable-epkg-install \ + --with-zlib=$(SYSROOT) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libtar.targetinstall: + @$(call targetinfo) + + @$(call install_init, libtar) + @$(call install_fixup, libtar,PRIORITY,optional) + @$(call install_fixup, libtar,SECTION,base) + @$(call install_fixup, libtar,AUTHOR,"Alexander Dahl <post@lespocky.de>") + @$(call install_fixup, libtar,DESCRIPTION,missing) + + @$(call install_lib, libtar, 0, 0, 0644, libtar) + + @$(call install_finish, libtar) + + @$(call touch) + +# vim: ft=make noet |