mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Add LICENSE
- Switch to options helpers - Regenerate patches with `make makepatch`
This commit is contained in:
parent
01f1eb976a
commit
07d76bdb56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=412568
5 changed files with 29 additions and 28 deletions
|
@ -11,12 +11,19 @@ MASTER_SITES= SF/annoyancefilter/annoyancefilter/${PORTVERSION} \
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Adaptive Bayesian Junk Mail Filter
|
||||
|
||||
LICENSE= PD GPLv2+
|
||||
LICENSE_COMB= multi
|
||||
LICENSE_FILE_PD= ${WRKSRC}/COPYING
|
||||
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING.GNU
|
||||
|
||||
USE_GCC= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
DOCS= COPYING INSTALL README *.pdf
|
||||
PORTDOCS= INSTALL README *.pdf
|
||||
|
||||
CFLAGS= ${CPPFLAGS}
|
||||
PLIST_FILES= bin/annoyance-filter \
|
||||
bin/annoyance-filter-run \
|
||||
man/man1/annoyance-filter.1.gz
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
|
@ -24,7 +31,9 @@ do-install:
|
|||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-run ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- Makefile.in.orig Tue Feb 18 15:57:20 2003
|
||||
+++ Makefile.in Fri Jan 2 02:56:16 2004
|
||||
@@ -83,11 +83,11 @@
|
||||
--- Makefile.in.orig 2004-08-04 14:42:56 UTC
|
||||
+++ Makefile.in
|
||||
@@ -83,11 +83,11 @@ ipmpar.o: DCDFlib/src/ipmpar.c
|
||||
|
||||
# Annoyance filter program
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
|||
$(PRODUCT).cc: $(PRODUCT).w
|
||||
$(PRODUCT).tex: $(PRODUCT).w log.w $(TOOLS)
|
||||
$(PRODUCT).view: $(PRODUCT).dvi
|
||||
@@ -97,8 +97,8 @@
|
||||
@@ -97,8 +97,8 @@ getopt1.o: getopt1.c getopt.h
|
||||
|
||||
# Statistical library
|
||||
|
||||
|
@ -26,11 +26,10 @@
|
|||
|
||||
statlib.o: statlib.cc config.h getopt.h
|
||||
statlib.cc: statlib.w
|
||||
@@ -275,14 +275,6 @@
|
||||
groff -man $(PRODUCT).1 | lp
|
||||
@@ -276,14 +276,6 @@ printman: $(PRODUCT).1
|
||||
|
||||
# HTML edition of manual page
|
||||
-
|
||||
|
||||
-$(PRODUCT)_man_raw.html: $(PRODUCT).1
|
||||
- $(MAN2HTML) -H $(MAN2HTMLHOST) $(PRODUCT).1 \
|
||||
- >$(PRODUCT)_man_raw.html
|
||||
|
@ -38,6 +37,7 @@
|
|||
-$(PRODUCT)_man.html: $(PRODUCT)_man_raw.html
|
||||
- $(PERL) docutil/fixman2html.pl $(PRODUCT)_man_raw.html \
|
||||
- >$(PRODUCT)_man.html
|
||||
|
||||
-
|
||||
manhtml: $(PRODUCT)_man.html
|
||||
|
||||
# Test it
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- annoyance-filter.cc.orig 2004-08-04 16:28:36.000000000 -0400
|
||||
+++ annoyance-filter.cc 2014-10-08 12:04:20.000000000 -0400
|
||||
@@ -114,7 +114,7 @@
|
||||
--- annoyance-filter.cc.orig 2004-08-04 20:28:36 UTC
|
||||
+++ annoyance-filter.cc
|
||||
@@ -114,7 +114,7 @@ using namespace std;
|
||||
#define __GNU_LIBRARY__
|
||||
#undef __GETOPT_H__
|
||||
#endif
|
||||
|
@ -9,7 +9,7 @@
|
|||
#include "statlib.h"
|
||||
|
||||
/*237:*/
|
||||
@@ -2675,7 +2675,7 @@
|
||||
@@ -2675,7 +2675,7 @@ return false;
|
||||
fileLength= lseek(fileHandle,0,2);
|
||||
lseek(fileHandle,0,0);
|
||||
dp= static_cast<char*> (mmap((caddr_t)0,fileLength,
|
||||
|
@ -18,7 +18,7 @@
|
|||
fileHandle,0));
|
||||
istrstream is(dp,fileLength);
|
||||
#else
|
||||
@@ -7332,7 +7332,7 @@
|
||||
@@ -7332,7 +7332,7 @@ return 1;
|
||||
long fileLength= lseek(fileHandle,0,2);
|
||||
lseek(fileHandle,0,0);
|
||||
char*dp= static_cast<char*> (mmap((caddr_t)0,fileLength,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- statlib_test.cc.orig Thu Sep 25 02:02:10 2003
|
||||
+++ statlib_test.cc Fri Jan 2 02:51:57 2004
|
||||
@@ -28,7 +28,7 @@
|
||||
--- statlib_test.cc.orig 2004-08-04 12:28:53 UTC
|
||||
+++ statlib_test.cc
|
||||
@@ -28,7 +28,7 @@ using namespace std;
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#else
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
bin/annoyance-filter
|
||||
bin/annoyance-filter-run
|
||||
man/man1/annoyance-filter.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/annoyance-filter.pdf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/statlib.pdf
|
Loading…
Add table
Reference in a new issue