Browse Source

Merge pull request #16281 from flyn-org/cyrus-sasl

cyrus-sasl: add optional sasldb package
lilik-openwrt-22.03
Rosen Penev 3 years ago
committed by GitHub
parent
commit
f35032c445
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 5 deletions
  1. +26
    -5
      libs/cyrus-sasl/Makefile

+ 26
- 5
libs/cyrus-sasl/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=cyrus-sasl PKG_NAME:=cyrus-sasl
PKG_VERSION:=2.1.27 PKG_VERSION:=2.1.27
PKG_RELEASE:=3
PKG_RELEASE:=$(AUTORELEASE)
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
@ -28,12 +28,23 @@ PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/libsasl2
define Package/libsasl2/Default
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=A general purpose authentication library TITLE:=A general purpose authentication library
URL:=http://asg.web.cmu.edu/sasl/ URL:=http://asg.web.cmu.edu/sasl/
endef
define Package/libsasl2
$(call Package/libsasl2/Default)
DEPENDS:=+libopenssl DEPENDS:=+libopenssl
TITLE+= (libraries)
endef
define Package/libsasl2-sasldb
$(call Package/libsasl2/Default)
DEPENDS:=+libsasl2 +libdb47
TITLE+= (sasldb libraries)
endef endef
TARGET_CFLAGS += $(FPIC) TARGET_CFLAGS += $(FPIC)
@ -47,7 +58,7 @@ CONFIGURE_ARGS += \
--disable-checkapop \ --disable-checkapop \
--enable-cram \ --enable-cram \
--enable-digest \ --enable-digest \
--without-auth-sasldb \
--enable-auth-sasldb \
--disable-otp \ --disable-otp \
--disable-srp \ --disable-srp \
--disable-srp-setpass \ --disable-srp-setpass \
@ -60,7 +71,7 @@ CONFIGURE_ARGS += \
--disable-ntlm \ --disable-ntlm \
--disable-sql \ --disable-sql \
--disable-ldapdb \ --disable-ldapdb \
--without-dblib \
--with-dblib=berkeley \
--without-gdbm \ --without-gdbm \
--with-devrandom="/dev/urandom" \ --with-devrandom="/dev/urandom" \
--without-pam \ --without-pam \
@ -109,7 +120,17 @@ define Package/libsasl2/install
$(INSTALL_DIR) $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/sasl2 $(INSTALL_DIR) $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so* $(1)/usr/lib/sasl2/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libanonymous.so* $(1)/usr/lib/sasl2/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libplain.so* $(1)/usr/lib/sasl2/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libcrammd5.so* $(1)/usr/lib/sasl2/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libdigestmd5.so* $(1)/usr/lib/sasl2/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libscram.so* $(1)/usr/lib/sasl2/
endef
define Package/libsasl2-sasldb/install
$(INSTALL_DIR) $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libsasldb.so* $(1)/usr/lib/sasl2/
endef endef
$(eval $(call BuildPackage,libsasl2)) $(eval $(call BuildPackage,libsasl2))
$(eval $(call BuildPackage,libsasl2-sasldb))

Loading…
Cancel
Save