summaryrefslogtreecommitdiff
path: root/sysutils/fakeroot
diff options
context:
space:
mode:
authorlonewolf <lonewolf@pkgsrc.org>2002-12-20 11:23:53 +0000
committerlonewolf <lonewolf@pkgsrc.org>2002-12-20 11:23:53 +0000
commit97f9b5cc1828f9e6bf3e2f7895d035522cdbf562 (patch)
tree60bf65ec04f1dff67aa8788e696733b9907162cc /sysutils/fakeroot
parentefefdc43bd4359cb52faf16411a4425af0c2a3e4 (diff)
downloadpkgsrc-97f9b5cc1828f9e6bf3e2f7895d035522cdbf562.tar.gz
Add fakeroot-0.5.8 from Debian.
fakeroot creates a faked root environment for building tar (or other) packages with proper file ownerships and permissions as normal user
Diffstat (limited to 'sysutils/fakeroot')
-rw-r--r--sysutils/fakeroot/DESCR4
-rw-r--r--sysutils/fakeroot/Makefile20
-rw-r--r--sysutils/fakeroot/PLIST17
-rw-r--r--sysutils/fakeroot/distinfo5
-rw-r--r--sysutils/fakeroot/patches/patch-aa48
5 files changed, 94 insertions, 0 deletions
diff --git a/sysutils/fakeroot/DESCR b/sysutils/fakeroot/DESCR
new file mode 100644
index 00000000000..d8d9b3515fd
--- /dev/null
+++ b/sysutils/fakeroot/DESCR
@@ -0,0 +1,4 @@
+Fakeroot creates a `faked root' environment.
+
+A typical use case is creating tar (or somesuch) packages that should have
+proper file ownerships and modes without needing root access to the machine.
diff --git a/sysutils/fakeroot/Makefile b/sysutils/fakeroot/Makefile
new file mode 100644
index 00000000000..4ea00f7f04a
--- /dev/null
+++ b/sysutils/fakeroot/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/12/20 11:23:53 lonewolf Exp $
+#
+
+DISTNAME= fakeroot_0.5.8
+PKGNAME= fakeroot-0.5.8
+CATEGORIES= sysutils
+MASTER_SITES= http://ftp.debian.org/debian/pool/main/f/fakeroot/
+
+MAINTAINER= lonewolf@netbsd.org
+COMMENT= Creates a fake root environment
+
+WRKSRC= ${WRKDIR}/fakeroot-0.5.8
+USE_LIBTOOL= YES
+LIBTOOL_OVERRIDE=${WRKSRC}/libtool
+GNU_CONFIGURE= YES
+
+# XXX Kludge, configure bombs without this on my -current
+CONFIG_SHELL=
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/fakeroot/PLIST b/sysutils/fakeroot/PLIST
new file mode 100644
index 00000000000..4bf79653fe9
--- /dev/null
+++ b/sysutils/fakeroot/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/20 11:23:54 lonewolf Exp $
+bin/faked
+bin/fakeroot
+lib/libfakeroot.a
+lib/libfakeroot.la
+lib/libfakeroot.so
+lib/libfakeroot.so.0
+lib/libfakeroot.so.0.1
+man/fr/man1/fakeroot.1
+man/man1/faked.1
+man/man1/fakeroot.1
+man/sv/man1/faked.1
+man/sv/man1/fakeroot.1
+@dirrm man/sv/man1
+@dirrm man/sv
+@dirrm man/fr/man1
+@dirrm man/fr
diff --git a/sysutils/fakeroot/distinfo b/sysutils/fakeroot/distinfo
new file mode 100644
index 00000000000..9cd6be92bf2
--- /dev/null
+++ b/sysutils/fakeroot/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/12/20 11:23:54 lonewolf Exp $
+
+SHA1 (fakeroot_0.5.8.tar.gz) = 84931109b1f734e0aeedd5ada2ef79d503de198b
+Size (fakeroot_0.5.8.tar.gz) = 420642 bytes
+SHA1 (patch-aa) = f0d712b2880c9d4309ba426b98e8600e8ca14ffb
diff --git a/sysutils/fakeroot/patches/patch-aa b/sysutils/fakeroot/patches/patch-aa
new file mode 100644
index 00000000000..e96c6271ee1
--- /dev/null
+++ b/sysutils/fakeroot/patches/patch-aa
@@ -0,0 +1,48 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/12/20 11:23:54 lonewolf Exp $
+
+--- scripts/fakeroot.orig Sun Nov 24 02:02:55 2002
++++ scripts/fakeroot
+@@ -14,7 +14,7 @@ BINDIR=`dirname $0`
+ PREFIX=`dirname ${BINDIR}`
+
+ LIB=libfakeroot.so.0
+-PATHS=${PREFIX}/lib/libfakeroot:${PREFIX}/lib64/libfakeroot
++PATHS=${PREFIX}/lib:${PREFIX}/lib64
+ FAKED=${BINDIR}/faked
+
+ libfound=no
+@@ -63,8 +63,10 @@ then
+ if test -r "$dir/$LIB"
+ then
+ libfound=yes
++ uselib=$dir/$LIB
+ fi
+ done
++ LIB=$uselib
+ else
+ if test -r "$LIB"
+ then
+@@ -90,20 +92,16 @@ if test -z "$FAKEROOTKEY" || test -z "$P
+ exit 1
+ fi
+
+-# Keep other library paths
+-if test -n "$LD_LIBRARY_PATH"; then
+- PATHS="$PATHS:$LD_LIBRARY_PATH"
+-fi
+-# ...and preloaded libs
++# Keep preloaded libs
+ if test -n "$LD_PRELOAD"; then
+ LIB="$LIB $LD_PRELOAD"
+ fi
+
+ if test -z "$*"; then
+- FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" ${SHELL:-/bin/sh}
++ FAKEROOTKEY=$FAKEROOTKEY LD_PRELOAD="$LIB" ${SHELL:-/bin/sh}
+ RESULT=$?
+ else
+- FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
++ FAKEROOTKEY=$FAKEROOTKEY LD_PRELOAD="$LIB" "$@"
+ RESULT=$?
+ fi
+