privoxy: fix uci configuration parsing after upstream OpenWrt changes
[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:=dovecot-pigeonhole
11 PKG_VERSION_PLUGIN:=0.5.2
12 PKG_VERSION_DOVECOT:=$(shell make --no-print-directory -C ../dovecot/ val.PKG_VERSION V=s)
13 PKG_VERSION:=$(PKG_VERSION_DOVECOT)-$(PKG_VERSION_PLUGIN)
14 PKG_RELEASE:=2
15
16 DOVECOT_VERSION:=2.3
17
18 PKG_SOURCE:=dovecot-$(DOVECOT_VERSION)-pigeonhole-$(PKG_VERSION_PLUGIN).tar.gz
19 PKG_SOURCE_URL:=https://pigeonhole.dovecot.org/releases/$(DOVECOT_VERSION)
20 PKG_HASH:=950e8e15c58e539761255e140dd3678dd2477fa432a5f2b804e53821bdc02535
21 PKG_LICENSE:=LGPL-2.1
22 PKG_LICENSE_FILES:=COPYING COPYING.LGPL
23
24 PKG_BUILD_DIR:=$(BUILD_DIR)/dovecot-$(DOVECOT_VERSION)-pigeonhole-$(PKG_VERSION_PLUGIN)
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/dovecot-pigeonhole
30 SECTION:=mail
31 CATEGORY:=Mail
32 DEPENDS:=+dovecot
33 EXTRA_DEPENDS:=dovecot (>= $(PKG_VERSION_DOVECOT))
34 TITLE:=Mail filtering facilities for Dovecot
35 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
36 URL:=https://wiki2.dovecot.org/Pigeonhole
37 endef
38
39 define Package/dovecot-pigeonhole/description
40 Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
41 (RFC 5228) language.
42 endef
43
44 CONFIGURE_ARGS += \
45 --with-dovecot=$(STAGING_DIR)/usr/lib/dovecot/
46
47 CONFIGURE_VARS += \
48 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
49 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
50
51 define Package/dovecot-pigeonhole/install
52 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/dovecot/
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
55 find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm
56 endef
57
58 $(eval $(call BuildPackage,dovecot-pigeonhole))