2006-08-08 14:43:17 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
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
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ssmtp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A minimal and secure mail sender
|
2006-10-30 13:51:50 +00:00
|
|
|
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 \\\
|
2006-08-08 14:43:17 +00:00
|
|
|
mail spool to poke around in, and no daemons running in the background.\\\
|
2006-10-30 13:51:50 +00:00
|
|
|
mail is simply forwarded to the configured mailhost. Extremely easy \\\
|
2006-08-08 14:43:17 +00:00
|
|
|
configuration.
|
|
|
|
URL:=http://packages.debian.org/stable/mail/ssmtp
|
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
2006-08-18 21:21:06 +00:00
|
|
|
|
2006-08-08 14:43:17 +00:00
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
all
|
2006-08-08 14:43:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ssmtp/install
|
2006-10-30 13:51:50 +00:00
|
|
|
install -d -m0755 $(1)/etc/ssmtp
|
2006-08-08 14:43:17 +00:00
|
|
|
install -m0644 $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
|
|
|
|
install -m0644 $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
|
2006-10-30 13:51:50 +00:00
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(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))
|