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.

56 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2017 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:=pigeonhole
  9. PKG_VERSION:=0.4.16
  10. PKG_RELEASE:=1
  11. DOVECOT_VERSION:=2.2
  12. PKG_SOURCE:=dovecot-$(DOVECOT_VERSION)-$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://pigeonhole.dovecot.org/releases/$(DOVECOT_VERSION)
  14. PKG_HASH:=8f0b98f18062d6e241eef74ebe16cc167cd246361cbe6657d94f0ecc5d7d3234
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_LICENSE_FILES:=COPYING COPYING.LGPL
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/dovecot-$(DOVECOT_VERSION)-$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/pigeonhole
  21. SECTION:=mail
  22. CATEGORY:=Mail
  23. DEPENDS:=+dovecot
  24. TITLE:=Mail filtering facilities for Dovecot
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  26. URL:=https://wiki2.dovecot.org/Pigeonhole
  27. endef
  28. define Package/pigeonhole/description
  29. Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
  30. (RFC 5228) language.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --with-dovecot=$(STAGING_DIR)/usr/lib/dovecot/ \
  34. --without-managesieve
  35. CONFIGURE_VARS += \
  36. LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
  37. CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
  38. define Package/pigeonhole/install
  39. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/dovecot/
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
  42. find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm
  43. endef
  44. $(eval $(call BuildPackage,pigeonhole))