aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-30 17:16:17 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-30 17:16:17 +0000
commit4e1f61877626106d87320bbde908f0315e216331 (patch)
tree663afba865ffcd8ddc11e5fc1c82e9a861a72c50 /textproc
parent9d63e26943d72b1ec01ccf89b32eeb430d16552f (diff)
downloadports-4e1f61877626106d87320bbde908f0315e216331.tar.gz
ports-4e1f61877626106d87320bbde908f0315e216331.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/referrercop/Makefile45
-rw-r--r--textproc/referrercop/distinfo2
-rw-r--r--textproc/referrercop/pkg-descr6
-rw-r--r--textproc/referrercop/pkg-plist4
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index d2c03456985f..3e710e490061 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -594,6 +594,7 @@
SUBDIR += redland
SUBDIR += redland-bindings
SUBDIR += refdb
+ SUBDIR += referrercop
SUBDIR += replaceit
SUBDIR += resume
SUBDIR += resume-extensions
diff --git a/textproc/referrercop/Makefile b/textproc/referrercop/Makefile
new file mode 100644
index 000000000000..c4dd5c9f7504
--- /dev/null
+++ b/textproc/referrercop/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: referrercop
+# Date created: 21 June 2005
+# Whom: Ryan Grove <ryan@wonko.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= referrercop
+PORTVERSION= 1.0.2
+CATEGORIES= textproc www ruby
+MASTER_SITES= http://wonko.com/files/ \
+ http://raa.ruby-lang.org/cache/referrercop/
+
+MAINTAINER= ryan@wonko.com
+COMMENT= Filters referrer spam from Apache logs and AWStats data files
+
+NO_BUILD= yes
+USE_RUBY= yes
+USE_RUBY_FEATURES= optparse ruby18
+
+.include <bsd.port.pre.mk>
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/referrercop ${PREFIX}/bin
+
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/blacklist.refcop ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/whitelist.refcop.sample ${DATADIR}
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/HISTORY ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+
+ ${MKDIR} ${DOCSDIR}/rdoc
+ cd ${WRKSRC}/doc; ${FIND} . \
+ | ${CPIO} -pdm -R root:wheel ${DOCSDIR}/rdoc
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/referrercop/distinfo b/textproc/referrercop/distinfo
new file mode 100644
index 000000000000..cf3b9ac37c9a
--- /dev/null
+++ b/textproc/referrercop/distinfo
@@ -0,0 +1,2 @@
+MD5 (referrercop-1.0.2.tar.gz) = abf7fd4182214bd70a0d32b4e386c8d1
+SIZE (referrercop-1.0.2.tar.gz) = 83478
diff --git a/textproc/referrercop/pkg-descr b/textproc/referrercop/pkg-descr
new file mode 100644
index 000000000000..92864144e3e6
--- /dev/null
+++ b/textproc/referrercop/pkg-descr
@@ -0,0 +1,6 @@
+ ReferrerCop parses Apache log files or AWStats data files and removes entries
+ for referring URLs that match a list of known referrer spammers. It then
+ returns the filtered files via standard output.
+
+WWW: http://wiki.wonko.com/software/referrercop/
+Author: Ryan Grove <ryan@wonko.com>
diff --git a/textproc/referrercop/pkg-plist b/textproc/referrercop/pkg-plist
new file mode 100644
index 000000000000..b96457c97bb6
--- /dev/null
+++ b/textproc/referrercop/pkg-plist
@@ -0,0 +1,4 @@
+bin/referrercop
+%%DATADIR%%/blacklist.refcop
+%%DATADIR%%/whitelist.refcop.sample
+@dirrm %%DATADIR%%