[packages] move packages to a new 'mail' section, cleanup
[openwrt/svn-archive/archive.git] / mail / imapfilter / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=imapfilter
12 PKG_VERSION:=1.2.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://imapfilter.hellug.gr/source/
17 PKG_MD5SUM:=4c1f28dffbb727a4769948f10baccd79
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/imapfilter
22 SECTION:=mail
23 CATEGORY:=Mail
24 DEPENDS:=+liblua +libopenssl
25 TITLE:=IMAP server based email filtering
26 URL:=http://imapfilter.hellug.gr/
27 endef
28
29 define Build/Configure
30 (cd $(PKG_BUILD_DIR); \
31 ./configure \
32 -d /usr \
33 );
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 INCDIRS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40 LIBDIRS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
41 MYCFLAGS="$(TARGET_CFLAGS)"
42 endef
43
44 define Package/imapfilter/conffiles
45 /etc/imapfilter/config.lua
46 endef
47
48 define Package/imapfilter/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/imapfilter $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/etc/imapfilter
52 $(INSTALL_CONF) $(PKG_BUILD_DIR)/sample.config.lua $(1)/etc/imapfilter/config.lua
53 $(INSTALL_DIR) $(1)/usr/share/imapfilter
54 $(INSTALL_DATA) $(PKG_BUILD_DIR)/interface.lua $(1)/usr/share/imapfilter/
55 $(INSTALL_DATA) $(PKG_BUILD_DIR)/auxiliary.lua $(1)/usr/share/imapfilter/
56 endef
57
58 $(eval $(call BuildPackage,imapfilter))