Lines 18-50
Link Here
|
18 |
sys-apps/star" |
18 |
sys-apps/star" |
19 |
|
19 |
|
20 |
src_compile() { |
20 |
src_compile() { |
21 |
local myconf |
21 |
local rlconf |
22 |
if use readline; then |
22 |
if use readline; then |
23 |
myconf=--enable-readline |
23 |
rlconf=--enable-readline |
24 |
ln -s /lib/libncurses.so libtermcap.so |
24 |
ln -s /lib/libncurses.so libtermcap.so |
25 |
export LDFLAGS="-L${S}" |
25 |
export LDFLAGS="-L${S}" |
26 |
export CFLAGS="$CFLAGS -L${S}" |
26 |
export CFLAGS="$CFLAGS -L${S}" |
27 |
fi |
27 |
fi |
|
|
28 |
./configure --prefix=/usr --with-dumpdatespath=/etc/dumpdates \ |
29 |
--with-bingroup=root --enable-largefile ${rlconf} || die \ |
30 |
"./configure failed " |
28 |
|
31 |
|
29 |
./configure --prefix=/usr --host=${CHOST} --enable-largefile ${myconf} |
32 |
emake || die "emake failed!" |
30 |
assert "./configure failed (myconf=$myconf)" |
|
|
31 |
|
32 |
emake |
33 |
assert "emake failed (myconf=$myconf)" |
34 |
} |
33 |
} |
35 |
|
|
|
36 |
src_install () { |
34 |
src_install () { |
37 |
dodir /sbin |
|
|
38 |
dodir /usr/share/man/man8 |
39 |
dodir /etc/dumpdates |
40 |
make BINDIR=${D}/sbin MANDIR=${D}/usr/share/man/man8 \ |
41 |
DUMPDATESPATH=${D}/etc/dumpdates install || die "make install failed" |
42 |
|
43 |
dodoc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS |
44 |
dodoc README REPORTING-BUGS THANKS TODO |
45 |
|
35 |
|
46 |
cd ${D}/sbin |
36 |
dosbin dump/dump restore/restore |
47 |
rm -f rdump rrestore |
37 |
doman restore/restore.8 dump/dump.8 |
48 |
ln -s dump rdump |
38 |
dodoc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README \ |
49 |
ln -s restore rrestore |
39 |
REPORTING-BUGS THANKS TODO |
|
|
40 |
dodir ${D}usr/share/doc/${PF}/examples/dump_on_cd |
41 |
docinto examples/dump_on_cd |
42 |
dodoc examples/dump_on_cd/README \ |
43 |
examples/dump_on_cd/dump_userinfo.sh \ |
44 |
examples/dump_on_cd/start_dump.sh \ |
45 |
examples/dump_on_cd/verify_dump.sh |
50 |
} |
46 |
} |