The following patch will fix the sandbox violation that resulted in a
chmod: /sbin
sandbox warning.
This is a unified diff of the dump-0.4.24.ebuild file
--- dump-0.4.24.ebuild.orig Fri Nov 9 21:33:03 2001
+++ dump-0.4.24.ebuild Sun Apr 21 18:35:25 2002
@@ -18,33 +18,25 @@
sys-apps/star"
src_compile() {
- local myconf
- if use readline; then
- myconf=--enable-readline
- ln -s /lib/libncurses.so libtermcap.so
- export LDFLAGS="-L${S}"
- export CFLAGS="$CFLAGS -L${S}"
- fi
+ local myconf
+ if use readline; then
+ rlconf=--enable-readline
+ ln -s /lib/libncurses.so libtermcap.so
+ export LDFLAGS="-L${S}"
+ export CFLAGS="$CFLAGS -L${S}"
+ fi
+ ./configure --prefix=/usr --with-dumpdatespath=/etc --with-bingroup=root \
+ --enable-largefile ${rlconf} || die "./configure failed "
- ./configure --prefix=/usr --host=${CHOST} --enable-largefile ${myconf}
- assert "./configure failed (myconf=$myconf)"
-
- emake
- assert "emake failed (myconf=$myconf)"
+ emake || die "emake failed!"
}
-
src_install () {
- dodir /sbin
- dodir /usr/share/man/man8
- dodir /etc/dumpdates
- make BINDIR=${D}/sbin MANDIR=${D}/usr/share/man/man8 \
- DUMPDATESPATH=${D}/etc/dumpdates install || die "make install failed"
+ dosbin dump/dump
+ dosbin restore/restore
+ doman restore/restore.8
+ doman dump/dump.8
dodoc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS
dodoc README REPORTING-BUGS THANKS TODO
- cd ${D}/sbin
- rm -f rdump rrestore
- ln -s dump rdump
- ln -s restore rrestore
}