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.

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