2014-10-13 21:54:53 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bogofilter
|
2019-10-13 21:47:54 +00:00
|
|
|
PKG_VERSION:=1.2.5
|
|
|
|
PKG_RELEASE:=1
|
2014-10-13 21:54:53 +00:00
|
|
|
|
2019-10-14 12:41:20 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2014-11-25 07:42:42 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:bogofilter:bogofilter
|
2014-10-13 21:54:53 +00:00
|
|
|
|
2019-10-13 21:47:54 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@SF/project/bogofilter/bogofilter-stable/
|
|
|
|
PKG_HASH:=3248a1373bff552c500834adbea4b6caee04224516ae581fb25a4c6a6dee89ea
|
2014-10-13 21:54:53 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2019-10-14 12:45:18 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-10-13 21:54:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bogofilter
|
|
|
|
SECTION:=mail
|
|
|
|
CATEGORY:=Mail
|
2014-10-30 11:05:45 +00:00
|
|
|
DEPENDS:=+libdb47
|
2014-10-13 21:54:53 +00:00
|
|
|
TITLE:=bogofilter
|
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
|
|
|
URL:=http://bogofilter.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bogofilter/description
|
|
|
|
Bogofilter is a fast Bayesian spam filter
|
|
|
|
endef
|
|
|
|
|
2015-01-29 17:27:13 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-unicode \
|
|
|
|
--with-libdb-prefix=$(STAGING_DIR) \
|
|
|
|
--with-included-gsl
|
2014-10-13 21:54:53 +00:00
|
|
|
|
2019-04-27 03:10:15 +00:00
|
|
|
define Package/bogofilter/conffiles
|
|
|
|
/etc/bogofilter.cf
|
|
|
|
endef
|
|
|
|
|
2014-10-13 21:54:53 +00:00
|
|
|
define Package/bogofilter/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ \
|
2014-10-20 02:40:02 +00:00
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/usr/sbin
|
2014-10-13 21:54:53 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/bogofilter.cf.example $(1)/etc/bogofilter.cf
|
2014-10-20 02:25:31 +00:00
|
|
|
$(INSTALL_BIN) ./files/postfix-bogofilter $(1)/usr/sbin/postfix-bogofilter
|
2014-10-13 21:54:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_compact $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_copy $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bf_tar $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bogofilter $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bogolexer $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bogotune $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/bogoutil $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bogofilter))
|