Subject: wrapper needed for ranlib
To: None <tech-pkg@netbsd.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 03/11/2005 20:01:31
Hi all,
the ranlib utility (from binutil-2.15) needs a wrapper for the case that
a non-root user installs a library read-only.
#!/bin/sh
test="test"
chmod="/bin/chmod"
ranlib="/usr/bin/ranlib"
eval "fname=\$$#"
if $test -w "$fname"; then
$ranlib "$@"
else
$chmod u+w "$fname"
$ranlib "$@"
$chmod u-w "$fname"
fi
Could someone please integrate this into pkgsrc? I don't know where and how.
The Solaris strip(1) utility also fails because files are installed
read-only.
Roland