[Midnightbsd-cvs] mports: mports/ports-mgmt: add pkg_search, a convenient utility to

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Dec 15 22:47:23 EST 2007


Log Message:
-----------
add pkg_search, a convenient utility to search the index file of the ports system.  This version has been patched for mports.

This will not be necessary once libmport + mport are complete. Until them it is a helpful tool.

Modified Files:
--------------
    mports/ports-mgmt:
        Makefile (r1.5 -> r1.6)

Added Files:
-----------
    mports/ports-mgmt/pkg_search:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
    mports/ports-mgmt/pkg_search/files:
        patch-pkg_search (r1.1)
        patch-pkg_search.1 (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/ports-mgmt/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -L ports-mgmt/Makefile -L ports-mgmt/Makefile -u -r1.5 -r1.6
--- ports-mgmt/Makefile
+++ ports-mgmt/Makefile
@@ -5,6 +5,7 @@
 
    SUBDIR += magus-utils
    SUBDIR += pib
+   SUBDIR += pkg_search
    SUBDIR += portlint
    SUBDIR += portsearch
    SUBDIR += portupgrade
--- /dev/null
+++ ports-mgmt/pkg_search/pkg-descr
@@ -0,0 +1,4 @@
+pkg_search queries the appropriate database file of MidnightBSD (with included patch), FreeBSD, DragonFlyBSD or
+NetBSD for a given package name.
+
+WWW: http://www.mathematik.uni-marburg.de/~schmidtm/pkg_search/
--- /dev/null
+++ ports-mgmt/pkg_search/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for:   pkg_search
+# Date created:        3 December 2007
+# Whom:                Matthias Schmidt
+#
+# $MidnightBSD: mports/ports-mgmt/pkg_search/Makefile,v 1.1 2007/12/16 03:47:21 laffer1 Exp $
+# $FreeBSD: ports/ports-mgmt/pkg_search/Makefile,v 1.1 2007/12/12 18:45:15 chinsan Exp $
+#
+
+PORTNAME=	pkg_search
+PORTVERSION=	1.2
+CATEGORIES=	ports-mgmt
+MASTER_SITES=	http://www.mathematik.uni-marburg.de/~schmidtm/pkg_search/ \
+		LOCAL/chinsan
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A nifty script searching the ports database
+LICENSE=	bsd2
+
+PLIST_FILES=	bin/pkg_search
+
+MAN1=		pkg_search.1
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
--- /dev/null
+++ ports-mgmt/pkg_search/distinfo
@@ -0,0 +1,3 @@
+MD5 (pkg_search-1.2.tar.gz) = 9eba707559fbd8c97d547161fb335cbe
+SHA256 (pkg_search-1.2.tar.gz) = 5204d53c72c01261a3ecf07def91751298acc5b58b062f7363e0b245eb8ee574
+SIZE (pkg_search-1.2.tar.gz) = 2234
--- /dev/null
+++ ports-mgmt/pkg_search/files/patch-pkg_search
@@ -0,0 +1,21 @@
+--- pkg_search.orig	Tue Dec 11 07:21:17 2007
++++ pkg_search	Sat Dec 15 22:42:49 2007
+@@ -25,14 +25,14 @@
+ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+-MASTER_SITE_INDEX=http://www.FreeBSD.org/ports/
++MASTER_SITE_INDEX=http://www.MidnightBSD.org/ports/
+ 
+ uname=`uname -s`
+ 
+-if [ $uname = "FreeBSD" ]; then
+-	INDEXDIR=/usr/ports/
++if [ $uname = "MidnightBSD" ]; then
++	INDEXDIR=/usr/mports/
+ 	id=`uname -r | cut -d '.' -f 1`
+-	INDEXFILE=INDEX-$id
++	INDEXFILE=INDEX-6
+ 	if [ ! -d ${INDEXDIR} ]; then
+ 		echo "Create ports directory" 
+ 		mkdir -p ${INDEXDIR}
--- /dev/null
+++ ports-mgmt/pkg_search/files/patch-pkg_search.1
@@ -0,0 +1,11 @@
+--- pkg_search.1.orig	Sat Dec 15 22:36:45 2007
++++ pkg_search.1	Sat Dec 15 22:37:06 2007
+@@ -36,7 +36,7 @@
+ .Ar name
+ .Sh DESCRIPTION
+ .Nm
+-querys the appropriate database file on FreeBSD, DragonFlyBSD and NetBSD for a 
++querys the appropriate database file on MidnightBSD, FreeBSD, DragonFlyBSD and NetBSD for a 
+ given package name.
+ .Pp
+ The options are as follows:


More information about the Midnightbsd-cvs mailing list