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.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
)
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
22 PKG_LICENSE_FILES
:=COPYING COPYING.LGPL
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/dovecot-
$(DOVECOT_VERSION
)-pigeonhole-
$(PKG_VERSION_PLUGIN
)
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/dovecot-pigeonhole
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
39 define Package
/dovecot-pigeonhole
/description
40 Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
45 --with-dovecot
=$(STAGING_DIR
)/usr
/lib
/dovecot
/
48 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
49 CPPFLAGS
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
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
58 $(eval
$(call BuildPackage
,dovecot-pigeonhole
))