Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
This package provides extra files and scripts needed to bootstrap pkgsrc
on this platform.

View File

@@ -0,0 +1,73 @@
# $NetBSD: Makefile,v 1.11 2012/09/11 23:19:34 asau Exp $
DISTNAME= bootstrap-extra-files-20070702
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Extra bootstrap files and scripts for ${OPSYS}
BOOTSTRAP_PKG= yes
NO_CONFIGURE= yes
NO_BUILD= yes
.include "../../mk/bsd.prefs.mk"
EXTRA_FILES= fakeldd mkdir strip xargs
PLIST_VARS+= ${EXTRA_FILES}
.PHONY: ${EXTRA_FILES:S/^/do-install-/}
NEED_FAKELDD= Haiku IRIX
.if !empty(NEED_FAKELDD:M${OPSYS})
PLIST.fakeldd= yes
do-install: do-install-fakeldd
.endif
NEED_MKDIR= UnixWare
.if !empty(NEED_MKDIR:M${OPSYS})
PLIST.mkdir= yes
do-install: do-install-mkdir
.endif
NEED_STRIP= AIX
.if !empty(NEED_STRIP:M${OPSYS})
PLIST.strip= yes
do-install: do-install-strip
.endif
NEED_XARGS= Interix
.if !empty(NEED_XARGS:M${OPSYS})
PLIST.xargs= yes
do-install: do-install-xargs
.endif
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
do-install:
@${ECHO} ${.ALLSRC}
do-install-fakeldd:
${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/sbin
.if ${OPSYS} == "Haiku"
${INSTALL_SCRIPT} ${WRKSRC}/fakeldd-${OPSYS} ${DESTDIR}${PREFIX}/sbin/fakeldd
.else
${INSTALL_SCRIPT} ${WRKSRC}/fakeldd ${DESTDIR}${PREFIX}/sbin/fakeldd
.endif
do-install-mkdir:
${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/mkdir-sh ${DESTDIR}${PREFIX}/bin/mkdir-sh
do-install-strip:
${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/strip-sh ${DESTDIR}${PREFIX}/bin/strip
do-install-xargs:
${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/xargs-sh ${DESTDIR}${PREFIX}/bin/xargs
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.3 2008/04/12 22:43:09 jlam Exp $
${PLIST.mkdir}bin/mkdir-sh
${PLIST.strip}bin/strip
${PLIST.fakeldd}sbin/fakeldd
${PLIST.xargs}bin/xargs

View File

@@ -0,0 +1,6 @@
#!/bin/sh
#
# $NetBSD: fakeldd,v 1.1.1.1 2006/07/17 14:21:31 jlam Exp $
#
/usr/bin/elfdump -Dl "$@" |
/usr/bin/nawk 'NF == 7 || NF == 8 {printf "x x %s\n",$1}'

View File

@@ -0,0 +1,40 @@
#! /bin/sh
#
# $NetBSD: fakeldd-Haiku,v 1.1 2010/02/06 10:26:09 obache Exp $
#
read_rpath_needed_from_obj ()
{
objdump -p "$1" | awk '
/^ *NEEDED */ {num++; libs[num] = $2;}
/^ *RPATH */ {rpath = $2;}
END {
print rpath;
for(x = 1; x <= num; x++) {
print libs[x];
}
}'
}
print_as_ldd ()
{
read rpath
rpath="$rpath:$LIBRARY_PATH"
while read f; do
abpath="not found"
IFS=':'
for r in $rpath; do
if test -e "$r/$f"; then
abpath="$r/$f"
break;
fi
done
echo " $f => $abpath";
done
}
while test $# -gt 0; do
echo $1:
read_rpath_needed_from_obj $1 | print_as_ldd
shift
done

View File

@@ -0,0 +1,53 @@
#! /bin/sh
#
# $NetBSD: mkdir-sh,v 1.1.1.1 2006/07/17 14:21:31 jlam Exp $
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH
MKDIRCMD=mkdir
cmdargs="$@"
# variable 'options' is unused
for options in p m
do
if [ $# -lt 1 ]
then
${MKDIRCMD} ${cmdargs}
exit $?
fi
case $1 in
-p) pathopt=-p;
shift;;
-m) modeopt="-m ${2}"
shift;
if [ $# -ne 0 ]
then
shift
else
${MKDIRCMD} ${cmdargs}
exit $?
fi
;;
esac
done
if [ $# -gt 0 ]
then
while [ $# -gt 0 ]
do
if [ -z "${pathopt}" ]
then
${MKDIRCMD} ${modeopt} -- "$1"
elif [ ! -d $1 ]
then
${MKDIRCMD} ${pathopt} ${modeopt} -- "$1"
else
: # directory exists, nothing to do
fi
shift
done
else
${MKDIRCMD} ${cmdargs}
fi

View File

@@ -0,0 +1,28 @@
#!/bin/sh
#
# $NetBSD: strip-sh,v 1.1.1.1 2006/07/17 14:21:31 jlam Exp $
#
# On some platforms strip complains too much if the file is not writable,
# or if it's already stripped.
#
for f in "$@" ; do
if ! /usr/bin/file "$f" | grep -q "not stripped" ; then
# Skip the file if it's already stripped
continue
fi
nowrite=0
if [ ! -w "$f" ] ; then
# Make sure it's writable.
nowrite=1
chmod +w "$f"
fi
/usr/bin/strip "$f"
ret=$?
if [ $nowrite -eq 1 ] ; then
chmod -w "$f"
fi
if [ $ret -ne 0 ] ; then
exit $ret
fi
done
exit 0

View File

@@ -0,0 +1,13 @@
#! /bin/sh
#
# $NetBSD: xargs-sh,v 1.1 2007/07/01 23:27:43 tnn Exp $
#
# xargs(1) on Interix is broken. It executes the utility on the command line
# even if standard input is the empty string.
d="`/bin/cat`"
if [ "$d" != "" ]
then
echo "$d" | /bin/xargs $@
exit $?
fi