2 # Copyright (C) 2014-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://git.savannah.nongnu.org
/cgit
/attr.git
/snapshot
16 PKG_HASH
:=69991b2fc5fe7917d996b05d5d4fe3c44d074c9d806dd263b14a42fab57bfc2f
18 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
19 PKG_CPE_ID
:=cpe
:/a
:attr_project
:attr
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/attr
/Default
28 TITLE
:=Extended attributes
(xattr
) manipulation
29 URL
:=http
://savannah.nongnu.org
/projects
/attr
33 define Package
/attr
/Default
/description
34 Extended attributes support
38 $(call Package
/attr
/Default
)
42 LICENSE
:=GPL-2.0
-or-later
43 LICENSE_FILES
:=doc
/COPYING
47 define Package
/libattr
48 $(call Package
/attr
/Default
)
52 LICENSE
:=LGPL-2.1
-or-later
53 LICENSE_FILES
:=doc
/COPYING.LGPL
56 define Package
/libattr
/description
57 $(call Package
/attr
/Default
/description
)
58 This package provides libattr
61 define Package
/attr
/description
62 $(call Package
/attr
/Default
/description
)
63 This package provides xattr manipulation utilities
69 CONFIGURE_ARGS
+= --enable-static
--enable-shared
71 define Package
/attr
/install
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
76 define Package
/libattr
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(INSTALL_DIR
) $(1)/etc
79 $(CP
) $(PKG_INSTALL_DIR
)/etc
$(1)/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
83 define Package
/attr
/conffiles
87 define Build
/InstallDev
88 $(INSTALL_DIR
) $(1)/usr
/include
89 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/{include,lib
} $(1)/usr
/
93 $(eval
$(call BuildPackage
,attr
))
94 $(eval
$(call BuildPackage
,libattr
))