You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
3.6 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cyrus-sasl
  9. PKG_VERSION:=2.1.27
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://www.cyrusimap.org/releases/
  14. PKG_HASH:=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
  15. PKG_LICENSE:=BSD-4c BSD
  16. PKG_LICENSE_FILES:=COPYING cmulocal/COPYING saslauthd/COPYING
  17. PKG_CPE_ID:=cpe:/a:cmu:cyrus-sasl
  18. PKG_FIXUP:=autoreconf
  19. PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
  20. PKG_AUTOMAKE_PATHS:=. saslauthd sasldb
  21. PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libsasl2/Default
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=A general purpose authentication library
  27. URL:=http://asg.web.cmu.edu/sasl/
  28. endef
  29. define Package/libsasl2
  30. $(call Package/libsasl2/Default)
  31. DEPENDS:=+libopenssl
  32. TITLE+= (libraries)
  33. endef
  34. define Package/libsasl2-sasldb
  35. $(call Package/libsasl2/Default)
  36. DEPENDS:=+libsasl2 +libdb47
  37. TITLE+= (sasldb libraries)
  38. endef
  39. TARGET_CFLAGS += $(FPIC)
  40. CONFIGURE_ARGS += \
  41. --enable-shared \
  42. --enable-static \
  43. --disable-sample \
  44. --enable-staticdlopen \
  45. --disable-java \
  46. --disable-alwaystrue \
  47. --disable-checkapop \
  48. --enable-cram \
  49. --enable-digest \
  50. --enable-auth-sasldb \
  51. --disable-otp \
  52. --disable-srp \
  53. --disable-srp-setpass \
  54. --disable-krb4 \
  55. --disable-gssapi \
  56. --disable-gss_mutexes \
  57. --enable-plain \
  58. --enable-anon \
  59. --disable-login \
  60. --disable-ntlm \
  61. --disable-sql \
  62. --disable-ldapdb \
  63. --with-dblib=berkeley \
  64. --without-gdbm \
  65. --with-devrandom="/dev/urandom" \
  66. --without-pam \
  67. --without-saslauthd \
  68. --without-authdaemond \
  69. --without-pwcheck \
  70. --with-ipctype=unix \
  71. --with-openssl="$(STAGING_DIR)/usr" \
  72. --without-des \
  73. --without-opie \
  74. --without-ldap \
  75. --without-mysql \
  76. --without-pgsql \
  77. --without-sqlite \
  78. --without-rc4 \
  79. --without-dmalloc \
  80. --without-sfio \
  81. --disable-sample
  82. define Build/Compile
  83. $(MAKE) -C $(PKG_BUILD_DIR)/include \
  84. CC="$(HOSTCC)" \
  85. LINK="$(HOSTCC) -o makemd5 -lc" \
  86. CFLAGS="" \
  87. CPPFLAGS="" \
  88. makemd5
  89. $(MAKE) -C $(PKG_BUILD_DIR) \
  90. DESTDIR="$(PKG_INSTALL_DIR)" \
  91. all install
  92. endef
  93. define Build/InstallDev
  94. $(INSTALL_DIR) $(1)/usr/include/
  95. $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
  96. $(INSTALL_DIR) $(1)/usr/lib/
  97. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
  98. ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
  99. ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
  100. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  101. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
  102. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  103. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsasl2.pc $(1)/usr/lib/pkgconfig/
  104. endef
  105. define Package/libsasl2/install
  106. $(INSTALL_DIR) $(1)/usr/lib/
  107. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
  108. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  109. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libanonymous.so* $(1)/usr/lib/sasl2/
  110. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libplain.so* $(1)/usr/lib/sasl2/
  111. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libcrammd5.so* $(1)/usr/lib/sasl2/
  112. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libdigestmd5.so* $(1)/usr/lib/sasl2/
  113. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libscram.so* $(1)/usr/lib/sasl2/
  114. endef
  115. define Package/libsasl2-sasldb/install
  116. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  117. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/libsasldb.so* $(1)/usr/lib/sasl2/
  118. endef
  119. $(eval $(call BuildPackage,libsasl2))
  120. $(eval $(call BuildPackage,libsasl2-sasldb))