2006-08-05 10:20:56 +00:00
|
|
|
#
|
2010-03-24 16:37:17 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2006-08-05 10:20:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mini-sendmail
|
2007-08-28 16:01:46 +00:00
|
|
|
PKG_VERSION:=1.3.6
|
2010-12-24 12:08:11 +00:00
|
|
|
PKG_RELEASE:=4
|
2006-08-05 10:20:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=mini_sendmail-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.acme.com/software/mini_sendmail/
|
2007-08-28 16:01:46 +00:00
|
|
|
PKG_MD5SUM:=fb1585d2ad81c519a26d83bfd783dee8
|
2006-08-05 10:20:56 +00:00
|
|
|
|
2008-05-03 11:31:37 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/mini_sendmail-$(PKG_VERSION)
|
|
|
|
|
2006-08-05 10:20:56 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mini-sendmail
|
2008-05-03 02:42:43 +00:00
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2006-08-05 10:20:56 +00:00
|
|
|
TITLE:=A small sendmail-compatible mail forwarder
|
|
|
|
URL:=http://www.acme.com/software/mini_sendmail/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/mini-sendmail/description
|
2010-12-24 12:08:11 +00:00
|
|
|
mini_sendmail reads its standard input up to an end-of-file and sends a
|
2008-05-03 02:42:43 +00:00
|
|
|
copy of the message found there to all of the addresses listed.
|
2010-12-24 12:08:11 +00:00
|
|
|
The message is sent by connecting to a local SMTP server. This means
|
2008-05-03 02:42:43 +00:00
|
|
|
mini_sendmail can be used to send email from inside a chroot(2) area.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-28 16:01:46 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
OFLAGS="$(TARGET_CFLAGS)"
|
2006-08-05 10:20:56 +00:00
|
|
|
|
2010-12-24 12:08:11 +00:00
|
|
|
define Package/mini-sendmail/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mini_sendmail $(1)/usr/sbin/
|
2010-03-24 16:37:17 +00:00
|
|
|
endef
|
|
|
|
|
2010-12-24 12:08:11 +00:00
|
|
|
define Package/mini-sendmail/postinst
|
2010-03-24 16:37:17 +00:00
|
|
|
ln -sf mini_sendmail $${IPKG_INSTROOT}/usr/sbin/sendmail
|
2006-08-05 10:20:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mini-sendmail))
|