2 # Copyright (C) 2006-2010 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://imapfilter.hellug.gr
/source
/
16 PKG_MD5SUM
:=09c6ffb085a5a244dc9f3e798259f341
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/imapfilter
23 DEPENDS
:=+liblua
+libopenssl
+libpcre
24 TITLE
:=IMAP server based email filtering
25 URL
:=http
://imapfilter.hellug.gr
/
28 define Package
/imapfilter
/description
29 IMAPFilter is a mail filtering utility. It connects to remote mail
30 servers using the Internet Message Access Protocol
(IMAP
), sends
31 searching queries to the server and processes mailboxes based on the
32 results. It can be used to delete
, copy
, move
, flag
, etc. messages
33 residing in mailboxes at the same or different mail servers. The
4rev1
34 and
4 versions of the IMAP protocol are supported.
36 IMAPFilter uses the Lua programming language
as a configuration and
40 define Build
/Configure
41 (cd
$(PKG_BUILD_DIR
); \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 $(TARGET_CONFIGURE_OPTS
) \
50 INCDIRS
="$(TARGET_CPPFLAGS)" \
51 LIBDIRS
="$(TARGET_LDFLAGS)" \
52 MYCFLAGS
="$(TARGET_CFLAGS) -std=gnu99" \
56 define Package
/imapfilter
/conffiles
57 /etc
/imapfilter
/config.lua
60 define Package
/imapfilter
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/imapfilter
$(1)/usr
/bin
/
63 $(INSTALL_DIR
) $(1)/etc
/imapfilter
64 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/sample.config.lua
$(1)/etc
/imapfilter
/config.lua
65 $(INSTALL_DIR
) $(1)/usr
/share
/imapfilter
66 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/{account
,auxiliary
,common
,mailbox
,message
,options
,regex
,set
,deprecated
}.lua
$(1)/usr
/share
/imapfilter
/
69 $(eval
$(call BuildPackage
,imapfilter
))