[packages] mail/nullmailer: Fixed sendmail symlink creation to use shell variable...
[packages.git] / mail / procmail / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=procmail
11 PKG_VERSION:=3.22
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://www.procmail.org/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=1678ea99b973eb77eda4ecf6acae53f1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/procmail
21   SECTION:=mail
22   CATEGORY:=Mail
23   TITLE:=Mail processing tool
24   URL:=http://www.procmail.org
25 endef
26
27 define Package/procmail/description
28  Procmail is able to process and classify incoming mail into 
29  different mail boxes.
30  Very useful in conjunction with mutt.
31 endef
32
33 define Build/Compile    
34         $(MAKE) -C $(PKG_BUILD_DIR)/src -f ../Makefile.openwrt  \
35                 $(TARGET_CONFIGURE_OPTS)
36 endef
37
38 define Package/procmail/install
39         $(INSTALL_DIR) $(1)/usr/bin
40         $(CP) $(PKG_BUILD_DIR)/src/procmail $(1)/usr/bin/ 
41         $(CP) $(PKG_BUILD_DIR)/src/formail $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,procmail))