0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-04 01:23:07 +00:00
Files
packages/libs/libassuan/Makefile
Daniel Golle 9495c22625 libassuan: update to version 3.0.2
Noteworthy changes in version 3.0.2 (2025-02-18) [C9/A0/R2]
------------------------------------------------

 * Fix for FreeBSD to set the pid of assuan_peercred_t.
   [rAdfa5e6532d]

 * Use socklen_t for the length of socket address.  [T5924]

 * Fix errno setting on Widnows for assuan_sock_bind failure.  [T7456]

 * New assuan_sock_get_flag "w32_error" to get the actual Windows
   error after a system call and not just the mapped errno.  [T7456]

 Release-info: https://dev.gnupg.org/T7163

Noteworthy changes in version 3.0.1 (2024-06-24) [C9/A0/R1]
------------------------------------------------

 * Change Unix symbol versioning to help the Debian transitioning
   process.

 Release-info: https://dev.gnupg.org/T7163

Noteworthy changes in version 3.0.0 (2024-06-18) [C9/A0/R0]
------------------------------------------------

 * API change: For new code, which uses libassuan with nPTH, please
   use gpgrt_get_syscall_clamp and assuan_control, instead of the
   system_hooks API.  Use of ASSUAN_SYSTEM_NPTH is deprecated with new
   API version 3.  If it's really needed to keep using old
   implementation of ASSUAN_SYSTEM_NPTH, you need to change your your
   application code, to define
   ASSUAN_REALLY_REQUIRE_V2_NPTH_SYSTEM_HOOKS before including
   <assuan.h>.  For an application which uses version 2 API
   (NEED_LIBASSUAN_API=2 in its configure.ac), use of
   ASSUAN_SYSTEM_NPTH is still supported.  [T5914]

 * New function assuan_control.  [T6625]

 * New function assuan_sock_accept.  [T5925]

 * New functions assuan_pipe_wait_server_termination and
   assuan_pipe_kill_server to support abstraction of process.  [T6487]

 * Windows support for sendfd/recvfd.  [T6236]

 * Implement timeout in assuan_sock_connect_byname.  [T3302]

 * No support for WindowsCE, any more.  [T6170]

 * New socket flags "linger" and "reuseaddr".  [rA87f92fe962]

 * Interface changes relative to the 2.5.0 release:
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 assuan_sock_accept                  NEW.
 assuan_pipe_wait_server_termination NEW.
 assuan_pipe_kill_server             NEW.
 assuan_sock_set_flag                EXTENDED.
 assuan_sock_get_flag                EXTENDED.

 Release-info: https://dev.gnupg.org/T7163

OpenWrt package maintainer note:
autotools is trying to be smart with detecting gpgrt-config, let's
try to be *even smarter* and force it to use the version in
STAGING_DIR...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-04-26 16:55:22 +01:00

76 lines
1.9 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=libassuan
PKG_VERSION:=3.0.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
PKG_HASH:=d2931cdad266e633510f9970e1a2f346055e351bb19f9b78912475b8074c36f6
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING COPYING.LIB
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
CONFIGURE_VARS += ac_cv_path_GPGRT_CONFIG="$(STAGING_DIR)/usr/bin/gpgrt-config"
define Package/libassuan
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GnuPG IPC library
URL:=https://gnupg.org/software/libassuan/index.html
DEPENDS:=+libgpg-error
endef
define Package/libassuan/description
Libassuan is a small library implementing the so-called Assuan
protocol. This protocol is used for IPC between most newer GnuPG
components. Both, server and client side functions are provided.
endef
define Build/InstallDev
$(INSTALL_DIR) $(2)/bin $(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/libassuan-config \
$(2)/bin/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(2)/bin/libassuan-config
ln -sf $(STAGING_DIR)/host/bin/libassuan-config $(1)/usr/bin/libassuan-config
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/assuan.h \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libassuan.{la,so*} \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/libassuan.m4 \
$(1)/usr/share/aclocal/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libassuan.pc \
$(1)/usr/lib/pkgconfig
endef
define Package/libassuan/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libassuan.so.* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libassuan))