[packages] imapfilter: update to v2.0.11
[openwrt/svn-archive/archive.git] / mail / imapfilter / Makefile
index c360e53..e1d939b 100644 (file)
@@ -1,31 +1,42 @@
 # 
-# Copyright (C) 2006-2008 OpenWrt.org
+# Copyright (C) 2006-2009 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
-# $Id$
 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=imapfilter
-PKG_VERSION:=1.2.2
+PKG_VERSION:=2.0.11
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://imapfilter.hellug.gr/source/
-PKG_MD5SUM:=4c1f28dffbb727a4769948f10baccd79
+PKG_MD5SUM:=752a895a17754666a490bd445577309d
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/imapfilter
   SECTION:=mail
   CATEGORY:=Mail
-  DEPENDS:=+liblua +libopenssl
+  DEPENDS:=+liblua +libopenssl +libpcre
   TITLE:=IMAP server based email filtering
   URL:=http://imapfilter.hellug.gr/
 endef
 
+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
+
 define Build/Configure
        (cd $(PKG_BUILD_DIR); \
                ./configure \
@@ -36,9 +47,10 @@ endef
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
-               INCDIRS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
-               LIBDIRS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
-               MYCFLAGS="$(TARGET_CFLAGS)"
+               INCDIRS="$(TARGET_CPPFLAGS)" \
+               LIBDIRS="$(TARGET_LDFLAGS)" \
+               MYCFLAGS="$(TARGET_CFLAGS)" \
+               MYLDFLAGS="-lcrypt" 
 endef
 
 define Package/imapfilter/conffiles
@@ -51,8 +63,7 @@ define Package/imapfilter/install
        $(INSTALL_DIR) $(1)/etc/imapfilter
        $(INSTALL_CONF) $(PKG_BUILD_DIR)/sample.config.lua $(1)/etc/imapfilter/config.lua
        $(INSTALL_DIR) $(1)/usr/share/imapfilter
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/interface.lua $(1)/usr/share/imapfilter/
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/auxiliary.lua $(1)/usr/share/imapfilter/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/{account,auxiliary,common,mailbox,message,options,regex,set}.lua $(1)/usr/share/imapfilter/
 endef
 
 $(eval $(call BuildPackage,imapfilter))