|
|
sys-apps/star" | sys-apps/star" |
| |
src_compile() { | src_compile() { |
local myconf |
local myconf |
if use readline; then |
if use readline; then |
myconf=--enable-readline |
rlconf=--enable-readline |
ln -s /lib/libncurses.so libtermcap.so |
ln -s /lib/libncurses.so libtermcap.so |
export LDFLAGS="-L${S}" |
export LDFLAGS="-L${S}" |
export CFLAGS="$CFLAGS -L${S}" |
export CFLAGS="$CFLAGS -L${S}" |
fi |
fi |
|
./configure --prefix=/usr --with-dumpdatespath=/etc --with-bingroup=root \ |
|
--enable-largefile ${rlconf} || die "./configure failed " |
| |
./configure --prefix=/usr --host=${CHOST} --enable-largefile ${myconf} |
emake || die "emake failed!" |
assert "./configure failed (myconf=$myconf)" |
|
|
|
emake |
|
assert "emake failed (myconf=$myconf)" |
|
} | } |
|
|
src_install () { | 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 CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS |
dodoc README REPORTING-BUGS THANKS TODO | dodoc README REPORTING-BUGS THANKS TODO |
| |
cd ${D}/sbin |
|
rm -f rdump rrestore |
|
ln -s dump rdump |
|
ln -s restore rrestore |
|
} | } |