2 # Copyright (C) 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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://www.samba.org
/ftp
/talloc
/
17 PKG_HASH
:=19154e728e48d29c7398f470b0a59d093edc836156b41ffe20d247d6ec9fa006
19 PKG_MAINTAINER
:=Lucile Quirion
<lucile.quirion@savoirfairelinux.com
>
20 PKG_LICENSE
:=LGPL-3.0
+
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/kernel.mk
27 define Package
/libtalloc
30 TITLE
:=Core memory allocator used in Samba
31 DEPENDS
:=+USE_GLIBC
:libbsd
$(ICONV_DEPENDS
) +libattr
32 URL
:=https
://talloc.samba.org
/talloc
/doc
/html
/index.html
35 define Package
/libtalloc
/description
36 talloc is a hierarchical
, reference counted memory pool system with destructors.
40 \nChecking simple C program: OK \
41 \nrpath library support: OK \
42 \n-Wl,--version-script support: OK \
43 \nChecking getconf LFS_CFLAGS: NO \
44 \nChecking for large file support without additional flags: OK \
45 \nChecking for -D_LARGE_FILES: OK \
46 \nChecking correct behavior of strtoll: NO \
47 \nChecking for working strptime: OK \
48 \nChecking for C99 vsnprintf: OK \
49 \nChecking for HAVE_SHARED_MMAP: OK \
50 \nChecking for HAVE_MREMAP: OK \
51 \nChecking for HAVE_INCOHERENT_MMAP: NO \
52 \nChecking for HAVE_SECURE_MKSTEMP: OK \
53 \nChecking for HAVE_IFACE_GETIFADDRS: OK \
54 \nChecking for kernel change notify support: OK \
55 \nChecking for Linux kernel oplocks: OK \
56 \nChecking for kernel share modes: OK \
57 \nChecking if can we convert from CP850 to UCS-2LE: OK \
58 \nChecking if can we convert from UTF-8 to UCS-2LE: OK \
59 \nChecking whether we can use Linux thread-specific credentials with 32-bit system calls: OK \
60 \nChecking whether we can use Linux thread-specific credentials: OK \
61 \nChecking whether setreuid is available: OK \
62 \nChecking whether setresuid is available: OK \
63 \nChecking whether seteuid is available: OK \
64 \nChecking whether fcntl locking is available: OK \
65 \nChecking for the maximum value of the 'time_t' type: OK \
66 \nChecking whether the realpath function allows a NULL argument: OK \
67 \nChecking whether POSIX capabilities are available: OK \
68 \nChecking for ftruncate extend: OK \
69 \nvfs_fileid checking for statfs() and struct statfs.f_fsid: OK \
70 \ngetcwd takes a NULL argument: OK \
71 \nChecking value of NSIG: \"65\" \
72 \nChecking value of _NSIG: \"65\" \
73 \nChecking value of SIGRTMAX: \"64\" \
74 \nChecking value of SIGRTMIN: \"34\" \
75 \nChecking if toolchain accepts -fstack-protector: OK \
78 define Build
/Configure
79 (cd
$(PKG_BUILD_DIR
); \
80 echo
-e
>cache.txt
$(CROSS
) " \
81 \nChecking uname machine type: \"$(ARCH)\" \
82 \nChecking uname release type: \"$(LINUX_VERSION)\" \
83 \nChecking uname sysname type: \"Linux\" \
84 \nChecking uname version type: \"$(LINUX_UNAME_VERSION)\" \
87 .
/buildtools
/bin
/waf configure \
90 --localstatedir
=/var \
91 --with-libiconv
="$(ICONV_PREFIX)" \
93 --cross-answers
=$(PKG_BUILD_DIR
)/cache.txt \
95 --disable-rpath-install \
99 define Build
/InstallDev
100 $(INSTALL_DIR
) $(1)/usr
/lib
101 $(CP
) $(PKG_BUILD_DIR
)/bin
/default
/libtalloc.so
$(1)/usr
/lib
/
102 $(INSTALL_DIR
) $(1)/usr
/include
103 $(CP
) $(PKG_BUILD_DIR
)/*.h
$(1)/usr
/include/
106 define Package
/libtalloc
/install
107 $(INSTALL_DIR
) $(1)/usr
/lib
108 $(CP
) $(PKG_BUILD_DIR
)/bin
/default
/libtalloc.so
$(1)/usr
/lib
/libtalloc.so.
$(MAJOR_VERSION
)
109 (cd
$(1)/usr
/lib
; ln
-sf libtalloc.so.
$(MAJOR_VERSION
) libtalloc.so
)
112 $(eval
$(call BuildPackage
,libtalloc
))