You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

  1. #
  2. # Copyright (C) 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:=bogofilter
  9. PKG_VERSION:=1.2.4
  10. PKG_RELEASE:=5
  11. PKG_LICENSE:=GPLv2
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_CPE_ID:=cpe:/a:bogofilter:bogofilter
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=@SF/bogofilter
  16. PKG_HASH:=e10287a58d135feaea26880ce7d4b9fa2841fb114a2154bf7da8da98aab0a6b4
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/bogofilter
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. DEPENDS:=+libdb47
  23. TITLE:=bogofilter
  24. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  25. URL:=http://bogofilter.sourceforge.net/
  26. endef
  27. define Package/bogofilter/description
  28. Bogofilter is a fast Bayesian spam filter
  29. endef
  30. CONFIGURE_ARGS += \
  31. --disable-unicode \
  32. --with-libdb-prefix=$(STAGING_DIR) \
  33. --with-included-gsl
  34. define Package/bogofilter/conffiles
  35. /etc/bogofilter.cf
  36. endef
  37. define Package/bogofilter/install
  38. $(INSTALL_DIR) $(1)/etc/ \
  39. $(1)/usr/bin \
  40. $(1)/usr/sbin
  41. $(INSTALL_CONF) $(PKG_BUILD_DIR)/bogofilter.cf.example $(1)/etc/bogofilter.cf
  42. $(INSTALL_BIN) ./files/postfix-bogofilter $(1)/usr/sbin/postfix-bogofilter
  43. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_compact $(1)/usr/bin/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_copy $(1)/usr/bin/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_tar $(1)/usr/bin/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bogofilter $(1)/usr/bin/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bogolexer $(1)/usr/bin/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bogotune $(1)/usr/bin/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/bin/bogoutil $(1)/usr/bin/
  50. endef
  51. $(eval $(call BuildPackage,bogofilter))