fwknop: init script improvements
[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.9
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:=1
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:=36da68aae5157b83e21383f711b8977e5b6f5477f369f71e7e22e76a738bbd05
21
22 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
23 PKG_LICENSE:=LGPL-2.1-or-later
24 PKG_LICENSE_FILES:=COPYING COPYING.LGPL
25 PKG_CPE_ID:=cpe:/a:dovecot:pigeonhole
26
27 PKG_BUILD_DIR:=$(BUILD_DIR)/dovecot-$(DOVECOT_VERSION)-pigeonhole-$(PKG_VERSION_PLUGIN)
28 PKG_INSTALL:=1
29
30 include $(INCLUDE_DIR)/package.mk
31 include $(INCLUDE_DIR)/nls.mk
32
33 define Package/dovecot-pigeonhole
34 SECTION:=mail
35 CATEGORY:=Mail
36 DEPENDS:=+dovecot
37 EXTRA_DEPENDS:=dovecot (>= $(PKG_VERSION_DOVECOT))
38 TITLE:=Mail filtering facilities for Dovecot
39 URL:=https://wiki2.dovecot.org/Pigeonhole
40 endef
41
42 define Package/dovecot-pigeonhole/description
43 Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
44 (RFC 5228) language.
45 endef
46
47 CONFIGURE_ARGS += \
48 --with-dovecot=$(STAGING_DIR)/usr/lib/dovecot/
49
50 CONFIGURE_VARS += \
51 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
52 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
53
54 define Package/dovecot-pigeonhole/install
55 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/dovecot/ $(1)/usr/libexec/dovecot/
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
58 $(CP) $(PKG_INSTALL_DIR)/usr/libexec/dovecot/* $(1)/usr/libexec/dovecot/
59 find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm
60 endef
61
62 $(eval $(call BuildPackage,dovecot-pigeonhole))