From 6510e3a1ed066f532f7222e21f09e04f408744ed Mon Sep 17 00:00:00 2001 From: jgh Date: Tue, 15 Jan 2013 00:26:06 +0000 Subject: - adopt optionsNG, trim historical header and add license - while here depend on pkgnames for dependencies, fix WWW address and shorten mastersite PR: 175206 Submitted by: yasu@utahime.org Approved by: maintainer, info@otsune.com --- mail/bsfilter/Makefile | 32 ++++++++++++++++---------------- mail/bsfilter/pkg-descr | 3 +-- 2 files changed, 17 insertions(+), 18 deletions(-) (limited to 'mail') diff --git a/mail/bsfilter/Makefile b/mail/bsfilter/Makefile index 8a78b80e1530..85f5818d6e32 100644 --- a/mail/bsfilter/Makefile +++ b/mail/bsfilter/Makefile @@ -1,40 +1,40 @@ -# New ports collection makefile for: bsfilter -# Date created: 1 Mar 2004 -# Whom: Masafumi Otsune -# +# Created by: Masafumi Otsune # $FreeBSD$ -# PORTNAME= bsfilter PORTVERSION= 1.0.17 CATEGORIES= mail ruby -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} +MASTER_SITES= SFJP MASTER_SITE_SUBDIR= bsfilter/49795 EXTRACT_SUFX= .tgz MAINTAINER= info@otsune.com COMMENT= Bayesian spam filter written in Ruby -RUN_DEPENDS= ${RUBY_ARCHLIBDIR}/gdbm.so:${PORTSDIR}/databases/ruby-gdbm +LICENSE= GPLv2 + +RUN_DEPENDS= ${RUBY_PKGNAMEPREFIX}gdbm>=0:${PORTSDIR}/databases/ruby-gdbm NO_BUILD= yes USE_RUBY= yes -OPTIONS= CHASEN "Japanese Morphological Analysis Support" Off \ - MECAB "Part-of-Speech and Morphological Analyzer" Off +OPTIONS_DEFINE= CHASEN DOCS MECAB + +CHASEN_DESC= Japanese Morphological Analysis Support +MECAB_DESC= Part-of-Speech and Morphological Analyzer -.include +.include -.if defined(WITH_CHASEN) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/chasen.so:${PORTSDIR}/japanese/ruby-chasen +.if ${PORT_OPTIONS:MCHASEN} +RUN_DEPENDS+= ja-${RUBY_PKGNAMEPREFIX}chasen>=0:${PORTSDIR}/japanese/ruby-chasen .endif -.if defined(WITH_MECAB) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/MeCab.so:${PORTSDIR}/japanese/ruby-mecab +.if ${PORT_OPTIONS:MMECAB} +RUN_DEPENDS+= ja-${RUBY_PKGNAMEPREFIX}mecab>=0:${PORTSDIR}/japanese/ruby-mecab .endif do-install: @${INSTALL_SCRIPT} ${WRKSRC}/bsfilter/${PORTNAME} ${PREFIX}/bin/${PORTNAME} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${EXAMPLESDIR} .for FILE in bsfilter.conf.sample dot-qmail.sample @${INSTALL_DATA} ${FILESDIR}/${FILE} ${EXAMPLESDIR} @@ -47,4 +47,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include diff --git a/mail/bsfilter/pkg-descr b/mail/bsfilter/pkg-descr index 5e3f3ce3d349..cff29ef19ec0 100644 --- a/mail/bsfilter/pkg-descr +++ b/mail/bsfilter/pkg-descr @@ -9,5 +9,4 @@ bsfilter is a spam filter using Bayesian(statistical) algorithm. -- POP proxy. run between POP server and MUA. POP over SSL supported - distributed under GPL -Author: nabeken -WWW: http://bsfilter.org/index-e.html +WWW: http://en.sourceforge.jp/projects/bsfilter/ -- cgit