1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2017 Lucian Cristian <lucian.cristian@gmail.com>
  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:=clamsmtp
  9. PKG_VERSION:=1.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://thewalter.net/stef/software/clamsmtp/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=a52fdb4b26e11ece30c478a806c95b1eda16f4e73937bd560ece7017fb0df92a
  14. MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  15. PKG_LICENSE:=GPLv2
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/clamsmtp
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. DEPENDS:=+libpthread
  23. TITLE:=clamsmtp
  24. URL:=http://thewalter.net/stef/software/clamsmtp/
  25. endef
  26. define Package/clamsmtp/description
  27. ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software.
  28. endef
  29. define Package/clamsmtp/install
  30. $(INSTALL_DIR) $(1)/usr/sbin \
  31. $(1)/etc/init.d
  32. $(CP) $(PKG_BUILD_DIR)/src/clamsmtpd $(1)/usr/sbin/
  33. $(CP) $(PKG_BUILD_DIR)/doc/clamsmtpd.conf $(1)/etc/
  34. $(INSTALL_BIN) ./files/clamsmtpd.init $(1)/etc/init.d/clamsmtpd
  35. endef
  36. $(eval $(call BuildPackage,clamsmtp))