packages/mail/nail/Makefile
Jo-Philipp Wich a642b4d371 nail: fix build against OpenSSL with disabled SSLv3
Extend the existing patch handling disabled SSLv2 to cover the SSLv3 case as
well in order to fix the following build error reported by the buildbot:

    openssl.o: In function `ssl_open':
    openssl.c:(.text+0xa1c): undefined reference to `SSLv3_client_method'
    collect2: error: ld returned 1 exit status

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-18 04:05:26 +01:00

59 lines
1.5 KiB
Makefile

#
# Copyright (C) 2007-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=nail
PKG_VERSION:=12.5
PKG_RELEASE:=2
PKG_LICENSE:=BSD-2-Clause
PKG_SOURCE:=heirloom-mailx_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/h/heirloom-mailx/
PKG_MD5SUM:=29a6033ef1412824d02eb9d9213cb1f2
PKG_BUILD_DIR:=$(BUILD_DIR)/heirloom-mailx-$(PKG_VERSION)
PKG_INSTALL:=0
include $(INCLUDE_DIR)/package.mk
define Package/nail
SECTION:=mail
CATEGORY:=Mail
TITLE:=Heirloom mailx (nail)
URL:=http://heirloom.sourceforge.net/mailx.html
MAINTAINER:=Dmitry V. Zimin <pfzim@mail.ru>
DEPENDS:=+libopenssl
endef
define Package/nail/description
Heirloom mailx (formerly known as "nail") is intended provide
the functionality of the POSIX mailx command with additional
support for MIME messages, IMAP (including caching), POP3,
SMTP, S/MIME, message threading/sorting, scoring, and filtering
endef
define Package/nail/conffiles
/etc/nail.rc
endef
define Build/Install
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin
$(CP) $(PKG_BUILD_DIR)/mailx $(PKG_INSTALL_DIR)/usr/bin/
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/etc
$(CP) $(PKG_BUILD_DIR)/nail.rc $(PKG_INSTALL_DIR)/etc/
endef
define Package/nail/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
endef
$(eval $(call BuildPackage,nail))