2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_LICENSE_FILES
:=COPYING
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 PKG_SOURCE_URL
:=@SF
/bogofilter
19 PKG_HASH
:=e10287a58d135feaea26880ce7d4b9fa2841fb114a2154bf7da8da98aab0a6b4
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/bogofilter
30 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
31 URL
:=http
://bogofilter.sourceforge.net
/
34 define Package
/bogofilter
/description
35 Bogofilter is a fast Bayesian spam
filter
40 --with-libdb-prefix
=$(STAGING_DIR
) \
43 define Package
/bogofilter
/install
44 $(INSTALL_DIR
) $(1)/etc
/ \
47 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/bogofilter.cf.example
$(1)/etc
/bogofilter.cf
48 $(INSTALL_BIN
) .
/files
/postfix-bogofilter
$(1)/usr
/sbin
/postfix-bogofilter
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bf_compact
$(1)/usr
/bin
/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bf_copy
$(1)/usr
/bin
/
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bf_tar
$(1)/usr
/bin
/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bogofilter
$(1)/usr
/bin
/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bogolexer
$(1)/usr
/bin
/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bogotune
$(1)/usr
/bin
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bogoutil
$(1)/usr
/bin
/
58 $(eval
$(call BuildPackage
,bogofilter
))