[package] update dovecot to 1.1.2 (#3785)
[openwrt/svn-archive/archive.git] / mail / ssmtp / Makefile
1 #
2 # Copyright (C) 2007-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:=ssmtp
12 PKG_VERSION:=2.61
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
17 PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
18
19 include $(INCLUDE_DIR)/package.mk
20
21 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
22
23 define Package/ssmtp
24 SECTION:=mail
25 CATEGORY:=Mail
26 DEPENDS:=+libopenssl
27 TITLE:=A minimal and secure mail sender
28 URL:=http://packages.debian.org/stable/mail/ssmtp
29 endef
30
31 define Package/ssmtp/description
32 A secure, effective and simple way of getting mail off a system to your
33 mail hub. It contains no suid-binaries or other dangerous things - no
34 mail spool to poke around in, and no daemons running in the background.
35 mail is simply forwarded to the configured mailhost. Extremely easy
36 configuration.
37 endef
38
39 CONFIGURE_VARS += \
40 LIBS="-L$(STAGING_DIR)/usr/lib -lcrypto -lssl"
41
42 CONFIGURE_ARGS += \
43 --enable-ssl
44
45 define Package/ssmtp/install
46 $(INSTALL_DIR) $(1)/etc/ssmtp
47 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
51 ln -sf ssmtp $(1)/usr/sbin/sendmail
52 endef
53
54 $(eval $(call BuildPackage,ssmtp))