#
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=acl
|
|
PKG_REV:=62ce6354ef5a8eb5644908748f79c8cd18474d4c
|
|
PKG_VERSION:=20140812
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=git://git.sv.gnu.org/acl.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
|
PKG_INSTALL:=1
|
|
PKG_LICENSE:=LGPL-2.1 GPL-2.0
|
|
PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/acl/Default
|
|
TITLE:=Access control list (ACL) manipulation
|
|
URL:=http://savannah.nongnu.org/projects/acl
|
|
SUBMENU:=Filesystem
|
|
endef
|
|
|
|
define Package/acl/Default/description
|
|
Access control list support
|
|
endef
|
|
|
|
define Package/acl
|
|
$(call Package/acl/Default)
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE+=utils
|
|
DEPENDS:=+libacl
|
|
endef
|
|
|
|
define Package/libacl
|
|
$(call Package/acl/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE+=library
|
|
DEPENDS:=+libattr
|
|
endef
|
|
|
|
define Package/libacl/description
|
|
$(call Package/acl/Default/description)
|
|
This package provides libacl
|
|
endef
|
|
|
|
define Package/acl/description
|
|
$(call Package/acl/Default/description)
|
|
This package provides ACL manipulation utilities
|
|
- chacl
|
|
- getfacl
|
|
- setfacl
|
|
endef
|
|
|
|
CONFIGURE_ARGS += --enable-static --enable-shared
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
(cd $(PKG_BUILD_DIR); ./autogen.sh;);
|
|
endef
|
|
|
|
define Package/acl/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/libacl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(1)/usr/include
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
$(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,acl))
|
|
$(eval $(call BuildPackage,libacl))
|