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.

115 lines
2.8 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_BASE:=2.1.27
  10. PKG_VERSION:=$(PKG_VERSION_BASE)-rc8
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://www.cyrusimap.org/releases/
  15. PKG_HASH:=8d95201b4f2c2ec4c0ebafd01c00d7d1e0f2513352b3f850ae2723a90c6c6789
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION_BASE)
  17. PKG_LICENSE:=BSD-4c BSD
  18. PKG_LICENSE_FILES:=COPYING cmulocal/COPYING saslauthd/COPYING
  19. PKG_CPE_ID:=cpe:/a:cmu:cyrus-sasl
  20. PKG_FIXUP:=autoreconf
  21. PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
  22. PKG_AUTOMAKE_PATHS:=. saslauthd sasldb
  23. PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/libsasl2
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=A general purpose authentication library
  29. URL:=http://asg.web.cmu.edu/sasl/
  30. DEPENDS:=+libopenssl
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static \
  36. --disable-sample \
  37. --enable-staticdlopen \
  38. --disable-java \
  39. --disable-alwaystrue \
  40. --disable-checkapop \
  41. --enable-cram \
  42. --enable-digest \
  43. --without-auth-sasldb \
  44. --disable-otp \
  45. --disable-srp \
  46. --disable-srp-setpass \
  47. --disable-krb4 \
  48. --disable-gssapi \
  49. --disable-gss_mutexes \
  50. --enable-plain \
  51. --enable-anon \
  52. --disable-login \
  53. --disable-ntlm \
  54. --disable-sql \
  55. --disable-ldapdb \
  56. --without-dblib \
  57. --without-gdbm \
  58. --with-devrandom="/dev/urandom" \
  59. --without-pam \
  60. --without-saslauthd \
  61. --without-authdaemond \
  62. --without-pwcheck \
  63. --with-ipctype=unix \
  64. --with-openssl="$(STAGING_DIR)/usr" \
  65. --without-des \
  66. --without-opie \
  67. --without-ldap \
  68. --without-mysql \
  69. --without-pgsql \
  70. --without-sqlite \
  71. --without-rc4 \
  72. --without-dmalloc \
  73. --without-sfio \
  74. --disable-sample
  75. define Build/Compile
  76. $(MAKE) -C $(PKG_BUILD_DIR)/include \
  77. CC="$(HOSTCC)" \
  78. LINK="$(HOSTCC) -o makemd5 -lc" \
  79. CFLAGS="" \
  80. CPPFLAGS="" \
  81. makemd5
  82. $(MAKE) -C $(PKG_BUILD_DIR) \
  83. DESTDIR="$(PKG_INSTALL_DIR)" \
  84. all install
  85. endef
  86. define Build/InstallDev
  87. $(INSTALL_DIR) $(1)/usr/include/
  88. $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
  89. $(INSTALL_DIR) $(1)/usr/lib/
  90. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
  91. ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
  92. ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
  93. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  94. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
  95. endef
  96. define Package/libsasl2/install
  97. $(INSTALL_DIR) $(1)/usr/lib/
  98. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so* $(1)/usr/lib/
  99. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  100. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so* $(1)/usr/lib/sasl2/
  101. endef
  102. $(eval $(call BuildPackage,libsasl2))