Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2010 00:54:17 +0200
From:      Bapt <baptiste.daroussin@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sylvio@FreeBSD.org
Subject:   ports/148583: [PATCH] databases/dbtool: remove bash dependency
Message-ID:  <d1625@azathoth.lan>
Resent-Message-ID: <201007132300.o6DN0H8M037914@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148583
>Category:       ports
>Synopsis:       [PATCH] databases/dbtool: remove bash dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 23:00:17 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Bapt
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD azathoth.lan 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #5 r208894M: Tue Jun  8 11:03:27
>Description:
Remove bash dependency

Port maintainer (sylvio@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- dbtool-1.7.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/dbtool.orig/Makefile /usr/ports/databases/dbtool/Makefile
--- /usr/ports/databases/dbtool.orig/Makefile	2010-07-14 00:53:03.942634510 +0200
+++ /usr/ports/databases/dbtool/Makefile	2010-07-14 00:51:03.885993402 +0200
@@ -23,9 +23,6 @@
 .else
 LIB_DEPENDS+=	gdbm.3:${PORTSDIR}/databases/gdbm
 .endif
-.if !defined(NOPORTDOCS)
-RUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
-.endif
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	LIBS="-L${LOCALBASE}/lib" \
@@ -36,7 +33,6 @@
 
 MAN1=	dbtool.1
 
-SH2BASH=	samples/account-db/accdb
 UB2PFX=		samples/locate/locate samples/locate/updatedb
 
 post-extract:
@@ -53,9 +49,7 @@
 .endfor
 	@${REINPLACE_CMD} -e "s,==,=,g" ${WRKSRC}/configure
 .if !defined(NOPORTDOCS)
-.for file in ${SH2BASH}
-	@${REINPLACE_CMD} -e "s|/bin/sh|${LOCALBASE}/bin/bash|" ${WRKSRC}/${file}
-.endfor
+	@${REINPLACE_CMD} -e "s|function menu|menu()|" ${WRKSRC}/samples/account-db/accdb
 .for file in ${UB2PFX}
 	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/${file}
 	@${RM} ${WRKSRC}/${file}.orig
--- dbtool-1.7.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d1625>