2006-08-08 14:43:17 +00:00
|
|
|
#
|
2007-08-30 19:17:33 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-08-08 14:43:17 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ssmtp
|
|
|
|
PKG_VERSION:=2.61
|
2007-04-08 20:10:18 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-08-08 14:43:17 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
|
|
|
|
PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
|
2006-08-08 14:43:17 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ssmtp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-04-08 20:10:18 +00:00
|
|
|
DEPENDS:=+libopenssl
|
2006-08-08 14:43:17 +00:00
|
|
|
TITLE:=A minimal and secure mail sender
|
|
|
|
URL:=http://packages.debian.org/stable/mail/ssmtp
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/ssmtp/description
|
|
|
|
A secure, effective and simple way of getting mail off a system to your
|
|
|
|
mail hub. It contains no suid-binaries or other dangerous things - no
|
|
|
|
mail spool to poke around in, and no daemons running in the background.
|
|
|
|
mail is simply forwarded to the configured mailhost. Extremely easy
|
|
|
|
configuration.
|
|
|
|
endef
|
|
|
|
|
2007-09-05 16:31:38 +00:00
|
|
|
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
|
|
|
|
EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
|
|
|
|
2007-08-30 19:17:33 +00:00
|
|
|
TARGET_CONFIGURE_OPTS+=\
|
2007-09-05 16:31:38 +00:00
|
|
|
CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
|
2007-08-30 19:17:33 +00:00
|
|
|
|
2007-08-30 18:57:37 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-ssl
|
2007-04-08 20:10:18 +00:00
|
|
|
|
2006-08-08 14:43:17 +00:00
|
|
|
define Package/ssmtp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/ssmtp
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
|
2006-08-08 14:43:17 +00:00
|
|
|
ln -sf ssmtp $(1)/usr/sbin/sendmail
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ssmtp))
|