libv4l: mvoed to github
[openwrt.org/packages.git] / mail / imapfilter / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=imapfilter
PKG_VERSION:=2.2.2
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://imapfilter.hellug.gr/source/
PKG_MD5SUM:=09c6ffb085a5a244dc9f3e798259f341
 
include $(INCLUDE_DIR)/package.mk
 
define Package/imapfilter
  SECTION:=mail
  CATEGORY:=Mail
  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 \
                        -d /usr \
        );
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                INCDIRS="$(TARGET_CPPFLAGS)" \
                LIBDIRS="$(TARGET_LDFLAGS)" \
                MYCFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
                MYLDFLAGS="-lcrypt"
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
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/{account,auxiliary,common,mailbox,message,options,regex,set,deprecated}.lua $(1)/usr/share/imapfilter/
endef
 
$(eval $(call BuildPackage,imapfilter))
 
comments