Makefile (1556B)
1 # 2 # Copyright (C) 2007-2014 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=nail 11 PKG_VERSION:=12.5 12 PKG_RELEASE:=2 13 PKG_LICENSE:=BSD-2-Clause 14 15 PKG_SOURCE:=heirloom-mailx_$(PKG_VERSION).orig.tar.gz 16 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/h/heirloom-mailx/ 17 PKG_MD5SUM:=29a6033ef1412824d02eb9d9213cb1f2 18 PKG_BUILD_DIR:=$(BUILD_DIR)/heirloom-mailx-$(PKG_VERSION) 19 20 PKG_INSTALL:=0 21 22 include $(INCLUDE_DIR)/package.mk 23 24 define Package/nail 25 SECTION:=mail 26 CATEGORY:=Mail 27 TITLE:=Heirloom mailx (nail) 28 URL:=http://heirloom.sourceforge.net/mailx.html 29 MAINTAINER:=Dmitry V. Zimin <pfzim@mail.ru> 30 DEPENDS:=+libopenssl 31 endef 32 33 define Package/nail/description 34 Heirloom mailx (formerly known as "nail") is intended provide 35 the functionality of the POSIX mailx command with additional 36 support for MIME messages, IMAP (including caching), POP3, 37 SMTP, S/MIME, message threading/sorting, scoring, and filtering 38 endef 39 40 define Package/nail/conffiles 41 /etc/nail.rc 42 endef 43 44 define Build/Install 45 $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin 46 $(CP) $(PKG_BUILD_DIR)/mailx $(PKG_INSTALL_DIR)/usr/bin/ 47 $(INSTALL_DIR) $(PKG_INSTALL_DIR)/etc 48 $(CP) $(PKG_BUILD_DIR)/nail.rc $(PKG_INSTALL_DIR)/etc/ 49 endef 50 51 define Package/nail/install 52 $(INSTALL_DIR) $(1)/usr/bin 53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 54 $(INSTALL_DIR) $(1)/etc 55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/ 56 endef 57 58 $(eval $(call BuildPackage,nail)) 59