aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-03-06 19:43:59 +0000
committerEd Schouten <ed@FreeBSD.org>2009-03-06 19:43:59 +0000
commitca01b2c143f0de4de00998108106ba564d7f0af6 (patch)
treeb301b06c56817025a84d679449e7388ab377c35c /sysutils
parentea1fd5e593410beda584cbb1af603e9ddd891116 (diff)
downloadports-ca01b2c143f0de4de00998108106ba564d7f0af6.tar.gz
ports-ca01b2c143f0de4de00998108106ba564d7f0af6.zip
Add new port: hidesvn.
Hidesvn is a small script that starts new processes with a library preloaded that hides .svn directories from readdir(). This is very useful when grepping the FreeBSD source tree. Reviewed by: garga
Notes
Notes: svn path=/head/; revision=229584
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/hidesvn/Makefile31
-rw-r--r--sysutils/hidesvn/distinfo3
-rw-r--r--sysutils/hidesvn/pkg-descr6
4 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index d23c41bd96b4..27b83c729e0a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -325,6 +325,7 @@
SUBDIR += healthd
SUBDIR += heartbeat
SUBDIR += heirloom
+ SUBDIR += hidesvn
SUBDIR += highlnk
SUBDIR += hilite
SUBDIR += hourglass
diff --git a/sysutils/hidesvn/Makefile b/sysutils/hidesvn/Makefile
new file mode 100644
index 000000000000..98e93885631d
--- /dev/null
+++ b/sysutils/hidesvn/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: hidesvn
+# Date created: 6 March 2009
+# Whom: Ed Schouten <ed@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hidesvn
+PORTVERSION= 1.0
+CATEGORIES= sysutils
+MASTER_SITES= http://80386.nl/projects/${PORTNAME}/distfiles/
+
+MAINTAINER= ed@FreeBSD.org
+COMMENT= Utility that uses LD_PRELOAD to hide .svn directories
+
+MAKEFILE= BSDmakefile
+
+PLIST_FILES= bin/${PORTNAME} lib/lib${PORTNAME}.so
+MAN1= ${PORTNAME}.1
+
+USE_LDCONFIG= yes
+
+post-patch:
+ ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/${PORTNAME}.sh
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/lib${PORTNAME}.so ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/sysutils/hidesvn/distinfo b/sysutils/hidesvn/distinfo
new file mode 100644
index 000000000000..dcd39cf148bc
--- /dev/null
+++ b/sysutils/hidesvn/distinfo
@@ -0,0 +1,3 @@
+MD5 (hidesvn-1.0.tar.gz) = 325d5808a42bff4120944205134fee49
+SHA256 (hidesvn-1.0.tar.gz) = e6bdeebae59ecf81f445346c5937514f983654c4c5c1a14b8b297cfda37ea4ad
+SIZE (hidesvn-1.0.tar.gz) = 2392
diff --git a/sysutils/hidesvn/pkg-descr b/sysutils/hidesvn/pkg-descr
new file mode 100644
index 000000000000..291fc466fbd8
--- /dev/null
+++ b/sysutils/hidesvn/pkg-descr
@@ -0,0 +1,6 @@
+hidesvn uses LD_PRELOAD to change readdir() and readdir_r() to hide .svn
+entries from directories. This is useful when using tools like find(1)
+and grep(1) to search through large source trees, like the FreeBSD SVN
+repository.
+
+WWW: http://80386.nl/projects/hidesvn/