cyrus-sasl: create libsasl2-utils package for programs

Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
W. Michael Petullo 2023-12-10 18:11:37 -06:00 committed by Tianling Shen
parent c399f7b94a
commit 2a9aa5721b
1 changed files with 13 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=cyrus-sasl
PKG_VERSION:=2.1.28
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
@ -47,6 +47,12 @@ define Package/libsasl2-sasldb
TITLE+= (sasldb libraries)
endef
define Package/libsasl2-utils
$(call Package/libsasl2/Default)
DEPENDS:=+libsasl2 +libdb47
TITLE+= (sasldb utilities)
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
@ -132,5 +138,11 @@ define Package/libsasl2-sasldb/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libsasldb.so* $(1)/usr/lib/sasl2/
endef
define Package/libsasl2-utils/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/{pluginviewer,sasldblistusers2,saslpasswd2} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,libsasl2))
$(eval $(call BuildPackage,libsasl2-sasldb))
$(eval $(call BuildPackage,libsasl2-utils))