|
@ -7,50 +7,52 @@ |
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=pigeonhole |
|
|
|
|
|
PKG_VERSION:=0.4.20 |
|
|
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_NAME:=dovecot-pigeonhole |
|
|
|
|
|
PKG_VERSION_PLUGIN:=0.4.20 |
|
|
|
|
|
PKG_VERSION_DOVECOT:=$(shell make --no-print-directory -C ../dovecot/ val.PKG_VERSION V=s) |
|
|
|
|
|
PKG_VERSION:=$(PKG_VERSION_DOVECOT)-$(PKG_VERSION_PLUGIN) |
|
|
|
|
|
PKG_RELEASE:=2 |
|
|
|
|
|
|
|
|
DOVECOT_VERSION:=2.2 |
|
|
DOVECOT_VERSION:=2.2 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=dovecot-$(DOVECOT_VERSION)-$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
|
|
|
|
|
PKG_SOURCE:=dovecot-$(DOVECOT_VERSION)-pigeonhole-$(PKG_VERSION_PLUGIN).tar.gz |
|
|
PKG_SOURCE_URL:=https://pigeonhole.dovecot.org/releases/$(DOVECOT_VERSION) |
|
|
PKG_SOURCE_URL:=https://pigeonhole.dovecot.org/releases/$(DOVECOT_VERSION) |
|
|
PKG_HASH:=6fe17d0b8f25f2ad580e01ad81ce47a9e965255e383a1f80e455f9ca0f00be5b |
|
|
PKG_HASH:=6fe17d0b8f25f2ad580e01ad81ce47a9e965255e383a1f80e455f9ca0f00be5b |
|
|
PKG_LICENSE:=LGPL-2.1 |
|
|
PKG_LICENSE:=LGPL-2.1 |
|
|
PKG_LICENSE_FILES:=COPYING COPYING.LGPL |
|
|
PKG_LICENSE_FILES:=COPYING COPYING.LGPL |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/dovecot-$(DOVECOT_VERSION)-$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/dovecot-$(DOVECOT_VERSION)-pigeonhole-$(PKG_VERSION_PLUGIN) |
|
|
PKG_INSTALL:=1 |
|
|
PKG_INSTALL:=1 |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
define Package/pigeonhole |
|
|
|
|
|
|
|
|
define Package/dovecot-pigeonhole |
|
|
SECTION:=mail |
|
|
SECTION:=mail |
|
|
CATEGORY:=Mail |
|
|
CATEGORY:=Mail |
|
|
DEPENDS:=+dovecot |
|
|
DEPENDS:=+dovecot |
|
|
|
|
|
EXTRA_DEPENDS:=dovecot (>= $(PKG_VERSION_DOVECOT)) |
|
|
TITLE:=Mail filtering facilities for Dovecot |
|
|
TITLE:=Mail filtering facilities for Dovecot |
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org> |
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org> |
|
|
URL:=https://wiki2.dovecot.org/Pigeonhole |
|
|
URL:=https://wiki2.dovecot.org/Pigeonhole |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/pigeonhole/description |
|
|
|
|
|
|
|
|
define Package/dovecot-pigeonhole/description |
|
|
Pigeonhole provides mail filtering facilities for Dovecot using the Sieve |
|
|
Pigeonhole provides mail filtering facilities for Dovecot using the Sieve |
|
|
(RFC 5228) language. |
|
|
(RFC 5228) language. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
CONFIGURE_ARGS += \
|
|
|
--with-dovecot=$(STAGING_DIR)/usr/lib/dovecot/ \
|
|
|
|
|
|
--without-managesieve |
|
|
|
|
|
|
|
|
--with-dovecot=$(STAGING_DIR)/usr/lib/dovecot/ |
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
CONFIGURE_VARS += \
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/" |
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/" |
|
|
|
|
|
|
|
|
define Package/pigeonhole/install |
|
|
|
|
|
|
|
|
define Package/dovecot-pigeonhole/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/dovecot/ |
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/dovecot/ |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/ |
|
|
find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm |
|
|
find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pigeonhole)) |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dovecot-pigeonhole)) |