2010-06-06 19:02:12 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-01-10 11:48:14 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=imapfilter
|
2010-06-06 19:02:12 +00:00
|
|
|
PKG_VERSION:=2.2.2
|
2007-01-10 11:48:14 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-07-13 21:57:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-01-10 11:48:14 +00:00
|
|
|
PKG_SOURCE_URL:=http://imapfilter.hellug.gr/source/
|
2010-06-06 19:02:12 +00:00
|
|
|
PKG_MD5SUM:=09c6ffb085a5a244dc9f3e798259f341
|
2007-01-10 11:48:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/imapfilter
|
2008-05-03 02:42:43 +00:00
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2008-07-13 21:57:26 +00:00
|
|
|
DEPENDS:=+liblua +libopenssl +libpcre
|
2007-01-10 11:48:14 +00:00
|
|
|
TITLE:=IMAP server based email filtering
|
|
|
|
URL:=http://imapfilter.hellug.gr/
|
|
|
|
endef
|
|
|
|
|
2008-07-13 21:57:26 +00:00
|
|
|
define Package/imapfilter/description
|
|
|
|
IMAPFilter is a mail filtering utility. It connects to remote mail
|
|
|
|
servers using the Internet Message Access Protocol (IMAP), sends
|
|
|
|
searching queries to the server and processes mailboxes based on the
|
|
|
|
results. It can be used to delete, copy, move, flag, etc. messages
|
|
|
|
residing in mailboxes at the same or different mail servers. The 4rev1
|
|
|
|
and 4 versions of the IMAP protocol are supported.
|
|
|
|
|
|
|
|
IMAPFilter uses the Lua programming language as a configuration and
|
|
|
|
extension language.
|
|
|
|
endef
|
|
|
|
|
2007-01-10 11:48:14 +00:00
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); \
|
|
|
|
./configure \
|
|
|
|
-d /usr \
|
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2009-04-29 12:56:17 +00:00
|
|
|
INCDIRS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LIBDIRS="$(TARGET_LDFLAGS)" \
|
2009-10-29 18:19:06 +00:00
|
|
|
MYCFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
|
2014-03-27 07:02:31 +00:00
|
|
|
MYLDFLAGS="-lcrypt"
|
2007-01-10 11:48:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imapfilter/conffiles
|
|
|
|
/etc/imapfilter/config.lua
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imapfilter/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/imapfilter $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/imapfilter
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/sample.config.lua $(1)/etc/imapfilter/config.lua
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/imapfilter
|
2010-08-26 01:05:45 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/{account,auxiliary,common,mailbox,message,options,regex,set,deprecated}.lua $(1)/usr/share/imapfilter/
|
2007-01-10 11:48:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,imapfilter))
|