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.

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