2 # Copyright (C) 2006-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=dovecot-pigeonhole
11 PKG_VERSION_PLUGIN
:=0.5.19
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
)
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
:=637709a83fb1338c918e5398049f96b7aeb5ae00696794ed1e5a4d4c0ca3f688
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
27 PKG_BUILD_DIR
:=$(BUILD_DIR
)/dovecot-
$(DOVECOT_VERSION
)-pigeonhole-
$(PKG_VERSION_PLUGIN
)
30 include $(INCLUDE_DIR
)/package.mk
31 include $(INCLUDE_DIR
)/nls.mk
33 define Package
/dovecot-pigeonhole
37 EXTRA_DEPENDS
:=dovecot
(>= $(PKG_VERSION_DOVECOT
))
38 TITLE
:=Mail filtering facilities for Dovecot
39 URL
:=https
://pigeonhole.dovecot.org
/
42 define Package
/dovecot-pigeonhole
/description
43 Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
48 --with-dovecot
=$(STAGING_DIR
)/usr
/lib
/dovecot
/
51 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
52 CPPFLAGS
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
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
62 $(eval
$(call BuildPackage
,dovecot-pigeonhole
))