FreeBSD Bugzilla – Attachment 40857 Details for
Bug 64102
New port: security/fakeroot simulate root user behavior
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 4.70 KB, created by
Meno Abels
on 2004-03-11 13:00:40 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Meno Abels
Created:
2004-03-11 13:00:40 UTC
Size:
4.70 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># fakeroot ># fakeroot/pkg-plist ># fakeroot/pkg-descr ># fakeroot/distinfo ># fakeroot/Makefile ># fakeroot/files ># fakeroot/files/patch-communicate.h ># fakeroot/files/patch-libfakeroot.c ># fakeroot/files/patch-doc.Makefile ># fakeroot/files/patch-fakeroot ># >echo c - fakeroot >mkdir -p fakeroot > /dev/null 2>&1 >echo x - fakeroot/pkg-plist >sed 's/^X//' >fakeroot/pkg-plist << 'END-of-fakeroot/pkg-plist' >X@comment $FreeBSD$ >Xbin/fakeroot >Xman/man1/faked.1 >Xman/man1/fakeroot.1 >Xlib/libfakeroot.la >Xlib/libfakeroot.so.0 >Xlib/libfakeroot.so >Xlib/libfakeroot.a >Xbin/faked >END-of-fakeroot/pkg-plist >echo x - fakeroot/pkg-descr >sed 's/^X//' >fakeroot/pkg-descr << 'END-of-fakeroot/pkg-descr' >XFakeroot runs a command in an environment were it appears to have >Xroot privileges for file manipulation, by setting LD_PRELOAD to a >Xlibrary with alternative versions of getuid(), stat(), etc. This >Xis useful for allowing users to create archives (tar, ar, .deb .rpm >Xetc.) with files in them with root permissions/ownership. Without >Xfakeroot one would have to have root privileges to create the >Xconstituent files of the archives with the correct permissions and >Xownership, and then pack them up, or one would have to construct >Xthe archives directly, without using the archiver. >X >XWWW: http://freshmeat.net/projects/fakeroot >END-of-fakeroot/pkg-descr >echo x - fakeroot/distinfo >sed 's/^X//' >fakeroot/distinfo << 'END-of-fakeroot/distinfo' >XMD5 (fakeroot_0.8.5.tar.gz) = 5e4179328074d938872c4bcbe3245c3d >XSIZE (fakeroot_0.8.5.tar.gz) = 842857 >END-of-fakeroot/distinfo >echo x - fakeroot/Makefile >sed 's/^X//' >fakeroot/Makefile << 'END-of-fakeroot/Makefile' >X# New ports collection makefile for: fakeroot >X# Date created: 11 March 2004 >X# Whom: Meno Abels <meno.abels@adviser.com> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= fakeroot >XPORTVERSION= 0.8.5 >XPORTREVISION= 1 >XCATEGORIES= security >XMASTER_SITES= http://ftp.debian.org/debian/pool/main/f/fakeroot/ >XDISTNAME= ${PORTNAME}_${PORTVERSION} >X >XMAINTAINER= Meno.Abels@Adviser.com >XCOMMENT= Fakeroot allow you to simulate the root user behavior like chown >X >XGNU_CONFIGURE= yes >XCONFIGURE_TARGET= >X >XWRKSRC="${WRKDIR}/${PORTNAME}-${PORTVERSION}" >X >Xpost-build: >X >Xpost-install: >X >X.include <bsd.port.mk> >END-of-fakeroot/Makefile >echo c - fakeroot/files >mkdir -p fakeroot/files > /dev/null 2>&1 >echo x - fakeroot/files/patch-communicate.h >sed 's/^X//' >fakeroot/files/patch-communicate.h << 'END-of-fakeroot/files/patch-communicate.h' >X--- communicate.h Fri Sep 26 04:07:11 2003 >X+++ communicate.h Thu Mar 11 12:51:34 2004 >X@@ -38,7 +38,9 @@ >X #if defined(sun) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) >X #define STAT64_SUPPORT >X #else >X+#if !defined(__FreeBSD__) >X #warning Not using stat64 support >X+#endif >X /* if glibc is 2.0 or older, undefine these again */ >X #undef STAT64_SUPPORT >X #undef _LARGEFILE64_SOURCE >END-of-fakeroot/files/patch-communicate.h >echo x - fakeroot/files/patch-libfakeroot.c >sed 's/^X//' >fakeroot/files/patch-libfakeroot.c << 'END-of-fakeroot/files/patch-libfakeroot.c' >X--- libfakeroot.c Fri Dec 19 03:38:05 2003 >X+++ libfakeroot.c Thu Mar 11 12:52:45 2004 >X@@ -667,6 +667,6 @@ >X return 0; >X } >X >X-int setgroups(size_t size, const gid_t *list){ >X+int setgroups(int size, const gid_t *list){ >X return 0; >X } >END-of-fakeroot/files/patch-libfakeroot.c >echo x - fakeroot/files/patch-doc.Makefile >sed 's/^X//' >fakeroot/files/patch-doc.Makefile << 'END-of-fakeroot/files/patch-doc.Makefile' >X--- doc/Makefile.am Tue Sep 2 06:00:59 2003 >X+++ doc/Makefile.am Thu Mar 11 13:23:43 2004 >X@@ -1,5 +1,4 @@ >X AUTOMAKE_OPTIONS=foreign >X-SUBDIRS = es fr sv >X >X man_MANS = faked.1 fakeroot.1 >X >X--- doc/Makefile.in Sun Feb 22 23:18:19 2004 >X+++ doc/Makefile.in Thu Mar 11 13:23:47 2004 >X@@ -161,7 +161,6 @@ >X target_os = @target_os@ >X target_vendor = @target_vendor@ >X AUTOMAKE_OPTIONS = foreign >X-SUBDIRS = es fr sv >X man_MANS = faked.1 fakeroot.1 >X >X #another automake bug workaround >END-of-fakeroot/files/patch-doc.Makefile >echo x - fakeroot/files/patch-fakeroot >sed 's/^X//' >fakeroot/files/patch-fakeroot << 'END-of-fakeroot/files/patch-fakeroot' >X--- ../fakeroot-0.8.5/scripts/fakeroot Wed Nov 12 17:07:18 2003 >X+++ scripts/fakeroot Thu Mar 11 13:40:00 2004 >X@@ -16,7 +16,7 @@ >X PREFIX=`dirname ${BINDIR}` >X >X LIB=libfakeroot.so.0 >X-PATHS=${PREFIX}/lib/libfakeroot:${PREFIX}/lib64/libfakeroot >X+PATHS=${PREFIX}/lib >X FAKED=${BINDIR}/faked >X >X FAKED_MODE="unknown-is-root" >X >END-of-fakeroot/files/patch-fakeroot >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 64102
: 40857