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.

113 lines
2.7 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:=1
  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
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=A general purpose authentication library
  27. URL:=http://asg.web.cmu.edu/sasl/
  28. DEPENDS:=+libopenssl
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += \
  32. --enable-shared \
  33. --enable-static \
  34. --disable-sample \
  35. --enable-staticdlopen \
  36. --disable-java \
  37. --disable-alwaystrue \
  38. --disable-checkapop \
  39. --enable-cram \
  40. --enable-digest \
  41. --without-auth-sasldb \
  42. --disable-otp \
  43. --disable-srp \
  44. --disable-srp-setpass \
  45. --disable-krb4 \
  46. --disable-gssapi \
  47. --disable-gss_mutexes \
  48. --enable-plain \
  49. --enable-anon \
  50. --disable-login \
  51. --disable-ntlm \
  52. --disable-sql \
  53. --disable-ldapdb \
  54. --without-dblib \
  55. --without-gdbm \
  56. --with-devrandom="/dev/urandom" \
  57. --without-pam \
  58. --without-saslauthd \
  59. --without-authdaemond \
  60. --without-pwcheck \
  61. --with-ipctype=unix \
  62. --with-openssl="$(STAGING_DIR)/usr" \
  63. --without-des \
  64. --without-opie \
  65. --without-ldap \
  66. --without-mysql \
  67. --without-pgsql \
  68. --without-sqlite \
  69. --without-rc4 \
  70. --without-dmalloc \
  71. --without-sfio \
  72. --disable-sample
  73. define Build/Compile
  74. $(MAKE) -C $(PKG_BUILD_DIR)/include \
  75. CC="$(HOSTCC)" \
  76. LINK="$(HOSTCC) -o makemd5 -lc" \
  77. CFLAGS="" \
  78. CPPFLAGS="" \
  79. makemd5
  80. $(MAKE) -C $(PKG_BUILD_DIR) \
  81. DESTDIR="$(PKG_INSTALL_DIR)" \
  82. all install
  83. endef
  84. define Build/InstallDev
  85. $(INSTALL_DIR) $(1)/usr/include/
  86. $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
  87. $(INSTALL_DIR) $(1)/usr/lib/
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
  89. ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
  90. ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
  91. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  92. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
  93. endef
  94. define Package/libsasl2/install
  95. $(INSTALL_DIR) $(1)/usr/lib/
  96. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so* $(1)/usr/lib/
  97. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  98. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so* $(1)/usr/lib/sasl2/
  99. endef
  100. $(eval $(call BuildPackage,libsasl2))