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.

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