From owner-cvs-ports@FreeBSD.ORG Sun Aug 12 12:49:24 2007 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A28616A418; Sun, 12 Aug 2007 12:49:24 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3AACB13C461; Sun, 12 Aug 2007 12:49:24 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l7CCnOrW068213; Sun, 12 Aug 2007 12:49:24 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from netchild@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7CCnOPB068212; Sun, 12 Aug 2007 12:49:24 GMT (envelope-from netchild) Message-Id: <200708121249.l7CCnOPB068212@repoman.freebsd.org> From: Alexander Leidinger Date: Sun, 12 Aug 2007 12:49:23 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/Tools/scripts README neededlibs.sh resolveportsfromlibs.sh X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2007 12:49:24 -0000 netchild 2007-08-12 12:49:23 UTC FreeBSD ports repository Modified files: Tools/scripts README Added files: Tools/scripts neededlibs.sh resolveportsfromlibs.sh Log: Add 2 scripts which help in port maintenance to list all direct library dependencies of a port: neededlibs.sh Extract direct library dependencies (filenames) from binaries. resolveportsfromlibs.sh Prints the name(s) of ports(s) given a library filename, suitable for direct use (copy&paste) in LIB_DEPENDS. Example usage is included in the scripts. The following combined usage may be helpful for further porting/testing automation: resolveportsfromlibs.sh -b /usr/local $(neededlibs.sh /test/bin/*) Requested by: kris, lofi (sort of) Revision Changes Path 1.18 +4 -1 ports/Tools/scripts/README 1.1 +63 -0 ports/Tools/scripts/neededlibs.sh (new) 1.1 +104 -0 ports/Tools/scripts/resolveportsfromlibs.sh (new)