diff options
author | Carsten Schlote <c.schlote@konzeptpark.de> | 2010-01-08 14:51:23 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-08 20:31:13 +0100 |
commit | ae2f42ebfcc29454c7cb2a78a711ef36a49289c2 (patch) | |
tree | 2a6cae44ad02c41c9d78531bca6b5035d3aa8dff /rules/acl.make | |
parent | 1e2414d99ea7d248cea9233fe9fd5cd894d7a7de (diff) | |
download | ptxdist-ae2f42ebfcc29454c7cb2a78a711ef36a49289c2.tar.gz ptxdist-ae2f42ebfcc29454c7cb2a78a711ef36a49289c2.tar.xz |
[acl] added packet for libacl.so and acl tools
The libacl.so is required by other target tools.
The packet also includes acl control functions,
which can be installed on demand.
Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
[mkl: supply simple patches, add option to install tools]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/acl.make')
-rw-r--r-- | rules/acl.make | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/rules/acl.make b/rules/acl.make new file mode 100644 index 000000000..b8e638ec0 --- /dev/null +++ b/rules/acl.make @@ -0,0 +1,108 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 by Carsten Schlote <c.schlote@konzeptpark.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_ACL) += acl + +# +# Paths and names +# +ACL_VERSION := 2.2.49 +ACL := acl-$(ACL_VERSION) +ACL_SUFFIX := tar.gz +ACL_URL := http://mirrors.zerg.biz/nongnu/acl/$(ACL).src.$(ACL_SUFFIX) +ACL_SOURCE := $(SRCDIR)/$(ACL).src.$(ACL_SUFFIX) +ACL_DIR := $(BUILDDIR)/$(ACL) +ACL_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(ACL_SOURCE): + @$(call targetinfo) + @$(call get, ACL) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ACL_PATH := PATH=$(CROSS_PATH) +ACL_ENV := $(CROSS_ENV) + +ACL_INSTALL_OPT := \ + DIST_ROOT=$(ATTR_PKGDIR) \ + install \ + install-lib \ + install-dev + +# +# autoconf +# +ACL_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --libexecdir=/usr/lib + +ifdef PTXCONF_ACL_SHARED +ACL_AUTOCONF += --enable-shared +else +ACL_AUTOCONF += --disable-shared +endif + +ifdef PTXCONF_ACL_GETTEXT +ACL_AUTOCONF += --enable-gettext +else +ACL_AUTOCONF += --disable-gettext +endif + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/acl.targetinstall: + @$(call targetinfo) + + @$(call install_init, acl) + @$(call install_fixup, acl,PACKAGE,acl) + @$(call install_fixup, acl,PRIORITY,optional) + @$(call install_fixup, acl,VERSION,$(ACL_VERSION)) + @$(call install_fixup, acl,SECTION,base) + @$(call install_fixup, acl,AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>") + @$(call install_fixup, acl,DEPENDS,) + @$(call install_fixup, acl,DESCRIPTION,missing) + +ifdef PTXCONF_ACL_TOOLS + @$(call install_copy, acl, 0, 0, 0755, -, /usr/bin/chacl) + @$(call install_copy, acl, 0, 0, 0755, -, /usr/bin/setfacl) + @$(call install_copy, acl, 0, 0, 0755, -, /usr/bin/getfacl) +endif + +ifdef PTXCONF_ACL_SHARED + @$(call install_copy, acl, 0, 0, 0644, -, /usr/lib/libacl.so.1.1.0) + @$(call install_link, acl, libacl.so.1.1.0, /usr/lib/libacl.so.1) + @$(call install_link, acl, libacl.so.1.1.0, /usr/lib/libacl.so) +endif + + @$(call install_finish, acl) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +acl_clean: + rm -rf $(STATEDIR)/acl.* + rm -rf $(ACL_PKGDIR)/* + rm -rf $(ACL_DIR) + +# vim: syntax=make |