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
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
20 PKG_LICENSE_FILES
:=COPYING COPYING.LGPL
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/dovecot-
$(DOVECOT_VERSION
)-$(PKG_NAME
)-$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/pigeonhole
31 TITLE
:=Mail filtering facilities for Dovecot
32 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
33 URL
:=https
://wiki2.dovecot.org
/Pigeonhole
36 define Package
/pigeonhole
/description
37 Pigeonhole provides mail filtering facilities for Dovecot using the Sieve
42 --with-dovecot
=$(STAGING_DIR
)/usr
/lib
/dovecot
/ \
46 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/dovecot/" \
47 CPPFLAGS
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/dovecot/"
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
56 $(eval
$(call BuildPackage
,pigeonhole
))