aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-09-19 18:47:50 +0800
committergarga <garga@FreeBSD.org>2005-09-19 18:47:50 +0800
commitff297a5ca4da304eb8d46ef64aa087e86d9d2746 (patch)
treeeba91b03338800665aa94bbbaf9200ac71faef51 /devel
parente26d76ccb91bb40956b160277f48d70203491bb8 (diff)
downloadfreebsd-ports-gnome-ff297a5ca4da304eb8d46ef64aa087e86d9d2746.tar.gz
freebsd-ports-gnome-ff297a5ca4da304eb8d46ef64aa087e86d9d2746.tar.zst
freebsd-ports-gnome-ff297a5ca4da304eb8d46ef64aa087e86d9d2746.zip
Add cvsspam 0.2.12, sends diffs when a change is committed to your CVS
repository. PR: ports/86231 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/cvsspam/Makefile47
-rw-r--r--devel/cvsspam/distinfo2
-rw-r--r--devel/cvsspam/pkg-descr8
-rw-r--r--devel/cvsspam/pkg-plist7
5 files changed, 65 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b23fa564b333..0992abaefed7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -189,6 +189,7 @@
SUBDIR += cvsplot
SUBDIR += cvsps
SUBDIR += cvsps-devel
+ SUBDIR += cvsspam
SUBDIR += cvsstat
SUBDIR += cvstrac
SUBDIR += cvsutils
diff --git a/devel/cvsspam/Makefile b/devel/cvsspam/Makefile
new file mode 100644
index 000000000000..8f86c30a7ac2
--- /dev/null
+++ b/devel/cvsspam/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: cvsspam
+# Date created: 16 Sep 2005
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cvsspam
+PORTVERSION= 0.2.12
+CATEGORIES= devel
+MASTER_SITES= http://www.badgers-in-foil.co.uk/projects/cvsspam/releases/
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= Sends diffs when a change is committed to your CVS repository
+
+USE_RUBY= yes
+NO_BUILD= yes
+USE_REINPLACE= yes
+
+PORTDOCS= COPYING CREDITS TODO cvsspam-doc.html cvsspam-doc.pdf
+
+post-patch:
+.for f in collect_diffs.rb cvsspam.rb record_lastdir.rb
+ @${REINPLACE_CMD} -e 's|/usr/bin/ruby|${RUBY}|' \
+ ${WRKSRC}/${f}
+.endfor
+ @${REINPLACE_CMD} -E 's|/etc/cvsspam/(cvsspam\.conf)|${PREFIX}/etc/\1|' \
+ ${WRKSRC}/collect_diffs.rb
+
+do-install:
+ ${MKDIR} ${PREFIX}/libexec/${PORTNAME}
+.for f in collect_diffs.rb cvsspam.rb record_lastdir.rb
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/libexec/${PORTNAME}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/cvsspam.conf ${PREFIX}/etc/cvsspam.conf.default
+.if !exists(${PREFIX}/etc/cvsspam.conf)
+ ${INSTALL_DATA} ${WRKSRC}/cvsspam.conf ${PREFIX}/etc/cvsspam.conf
+.endif
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/cvsspam/distinfo b/devel/cvsspam/distinfo
new file mode 100644
index 000000000000..30203165bcbe
--- /dev/null
+++ b/devel/cvsspam/distinfo
@@ -0,0 +1,2 @@
+MD5 (cvsspam-0.2.12.tar.gz) = 0afa4fbaf1c9edb27385e46337f80f4b
+SIZE (cvsspam-0.2.12.tar.gz) = 83714
diff --git a/devel/cvsspam/pkg-descr b/devel/cvsspam/pkg-descr
new file mode 100644
index 000000000000..95d4fcf590fd
--- /dev/null
+++ b/devel/cvsspam/pkg-descr
@@ -0,0 +1,8 @@
+CVSspam emails you diffs when a change is committed to your CVS repository.
+These HTML mails hyperlink to further details and use styling to emphasise
+information structure.
+
+WWW: http://www.badgers-in-foil.co.uk/projects/cvsspam/
+
+- ehaupt
+ehaupt@critical.ch
diff --git a/devel/cvsspam/pkg-plist b/devel/cvsspam/pkg-plist
new file mode 100644
index 000000000000..2ff348019621
--- /dev/null
+++ b/devel/cvsspam/pkg-plist
@@ -0,0 +1,7 @@
+@unexec if cmp -s %D/etc/cvsspam.conf %D/etc/cvsspam.conf.default; then rm -f %D/etc/cvsspam.conf; fi
+etc/cvsspam.conf.default
+@exec [ -f %B/cvsspam.conf ] || cp %B/%f %B/cvsspam.conf
+libexec/cvsspam/collect_diffs.rb
+libexec/cvsspam/cvsspam.rb
+libexec/cvsspam/record_lastdir.rb
+@dirrm libexec/cvsspam