source: packages/net/ssmtp/Makefile @ 6900

Last change on this file since 6900 was 6900, checked in by florian, 9 years ago

Enable SSL support in ssmtp (#1567)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=ssmtp
12PKG_VERSION:=2.61
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
17PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
18PKG_CAT:=zcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/ssmtp
25  SECTION:=net
26  CATEGORY:=Network
27  DEPENDS:=+libopenssl
28  TITLE:=A minimal and secure mail sender
29  DESCRIPTION:=\
30        A secure, effective and simple way of getting mail off a system to your \\\
31        mail hub. It contains no suid-binaries or other dangerous things - no \\\
32        mail spool to poke around in, and no daemons running in the background.\\\
33        mail is simply forwarded to the configured mailhost. Extremely easy \\\
34        configuration.
35  URL:=http://packages.debian.org/stable/mail/ssmtp
36endef
37
38# uses GNU configure
39
40define Build/Configure
41        cd $(PKG_BUILD_DIR)
42        $(call Build/Configure/Default, \
43                --enable-ssl \
44        )
45endef
46
47define Build/Compile
48        EXTRA_CFLAGS="-I$(STAGING_DIR)/usr/include" \
49        EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
50        $(MAKE) -C $(PKG_BUILD_DIR) \
51                all
52endef
53
54define Package/ssmtp/install   
55        $(INSTALL_DIR) $(1)/etc/ssmtp
56        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
57        $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
58        $(INSTALL_DIR) $(1)/usr/sbin
59        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
60        ln -sf ssmtp $(1)/usr/sbin/sendmail
61endef
62
63$(eval $(call BuildPackage,ssmtp))
Note: See TracBrowser for help on using the repository browser.