replace lots of manual install commands with INSTALL_* variables
[packages.git] / net / mini_sendmail / Makefile
1 #
2 # Copyright (C) 2006 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:=mini-sendmail
12 PKG_VERSION:=1.3.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=mini_sendmail-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.acme.com/software/mini_sendmail/
17 PKG_MD5SUM:=fff344184e98cff0ea4d817da9d29383
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/mini_sendmail-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mini-sendmail
25   SECTION:=net
26   CATEGORY:=Network
27   TITLE:=A small sendmail-compatible mail forwarder
28   DESCRIPTION:=\
29         mini_sendmail reads its standard input up to an end-of-file and sends a \\\
30         copy of the message found there to all of the addresses listed.\\\
31         The message is sent by connecting to a local SMTP server. This means \\\
32         mini_sendmail can be used to send email from inside a chroot(2) area.
33   URL:=http://www.acme.com/software/mini_sendmail/
34 endef
35
36 define Build/Compile    
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 $(TARGET_CONFIGURE_OPTS) \
39                 OFLAGS="$(TARGET_CFLAGS)" \
40                 all
41 endef
42
43 define Package/mini-sendmail/install    
44         $(INSTALL_DIR) $(1)/usr/sbin
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/mini_sendmail $(1)/usr/sbin/
46         ln -sf mini_sendmail $(1)/usr/sbin/sendmail
47 endef
48
49 $(eval $(call BuildPackage,mini-sendmail))