Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=nail
  9. PKG_VERSION:=12.5
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=BSD-2-Clause
  12. PKG_SOURCE:=heirloom-mailx_$(PKG_VERSION).orig.tar.gz
  13. PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/h/heirloom-mailx/
  14. PKG_MD5SUM:=29a6033ef1412824d02eb9d9213cb1f2
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/heirloom-mailx-$(PKG_VERSION)
  16. PKG_INSTALL:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/nail
  19. SECTION:=mail
  20. CATEGORY:=Mail
  21. TITLE:=Heirloom mailx (nail)
  22. URL:=http://heirloom.sourceforge.net/mailx.html
  23. MAINTAINER:=Dmitry V. Zimin <pfzim@mail.ru>
  24. DEPENDS:=+libopenssl
  25. endef
  26. define Package/nail/description
  27. Heirloom mailx (formerly known as "nail") is intended provide
  28. the functionality of the POSIX mailx command with additional
  29. support for MIME messages, IMAP (including caching), POP3,
  30. SMTP, S/MIME, message threading/sorting, scoring, and filtering
  31. endef
  32. define Package/nail/conffiles
  33. /etc/nail.rc
  34. endef
  35. define Build/Install
  36. $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin
  37. $(CP) $(PKG_BUILD_DIR)/mailx $(PKG_INSTALL_DIR)/usr/bin/
  38. $(INSTALL_DIR) $(PKG_INSTALL_DIR)/etc
  39. $(CP) $(PKG_BUILD_DIR)/nail.rc $(PKG_INSTALL_DIR)/etc/
  40. endef
  41. define Package/nail/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  44. $(INSTALL_DIR) $(1)/etc
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  46. endef
  47. $(eval $(call BuildPackage,nail))