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