2013-06-28 03:54:13 +00:00
|
|
|
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
|
2003-10-31 12:46:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dbacl
|
2013-06-28 03:54:13 +00:00
|
|
|
PORTVERSION= 1.14.1
|
2003-10-31 12:46:33 +00:00
|
|
|
CATEGORIES= textproc
|
2009-08-22 00:37:17 +00:00
|
|
|
MASTER_SITES= SF
|
2003-10-31 12:46:33 +00:00
|
|
|
|
2004-08-20 02:56:44 +00:00
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
2003-10-31 12:46:33 +00:00
|
|
|
COMMENT= Digramic Bayesian classifier
|
|
|
|
|
2006-12-26 08:10:40 +00:00
|
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
2003-10-31 12:46:33 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2014-01-26 12:27:12 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2006-04-15 03:45:43 +00:00
|
|
|
PROGRAMS= bayesol dbacl mailinspect hmine hypex
|
2003-12-31 14:42:13 +00:00
|
|
|
SCRIPTS= mailcross mailtoe mailfoot
|
2014-01-26 12:27:12 +00:00
|
|
|
MAN= bayesol.1 dbacl.1 mailcross.1 mailinspect.1 mailtoe.1 mailfoot.1
|
2014-02-09 00:22:45 +00:00
|
|
|
PLIST_FILES= ${PROGRAMS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} ${MAN:S,^,man/man1/,:S,$,.gz,}
|
2004-07-22 01:32:20 +00:00
|
|
|
DOCS= AUTHORS ChangeLog README doc/dbacl.ps \
|
|
|
|
doc/email.html doc/tutorial.html doc/costs.ps
|
2014-01-26 12:27:12 +00:00
|
|
|
PORTDOCS= ${DOCS:T}
|
|
|
|
PORTEXAMPLES= sample*.txt japanese.txt example*.risk toy.risk prop.pl
|
2003-10-31 12:46:33 +00:00
|
|
|
|
2003-12-31 14:42:13 +00:00
|
|
|
pre-install:
|
|
|
|
@cd ${WRKSRC}/src && \
|
|
|
|
${REINPLACE_CMD} -e 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,' \
|
|
|
|
${SCRIPTS}
|
|
|
|
|
2003-10-31 12:46:33 +00:00
|
|
|
do-install:
|
2003-12-31 14:42:13 +00:00
|
|
|
cd ${WRKSRC}/src && \
|
2014-01-26 12:27:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}/bin && \
|
|
|
|
${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${PREFIX}/bin
|
2003-12-31 14:42:13 +00:00
|
|
|
cd ${WRKSRC}/man && \
|
2014-01-26 12:27:12 +00:00
|
|
|
${INSTALL_MAN} ${MAN} ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2003-12-31 14:42:13 +00:00
|
|
|
cd ${WRKSRC}/doc && \
|
2014-01-26 12:27:12 +00:00
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
2003-10-31 12:46:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|