Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 1986
Collapse All | Expand All

(-)dump-0.4.24.ebuild.orig (-22 / +14 lines)
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 myconf
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 --with-bingroup=root \
29
		--enable-largefile ${rlconf} || die "./configure failed "
28
30
29
    ./configure --prefix=/usr --host=${CHOST} --enable-largefile ${myconf}
31
    emake || die "emake failed!" 
30
    assert "./configure failed (myconf=$myconf)"
31
32
    emake 
33
    assert "emake failed (myconf=$myconf)"
34
}
32
}
35
36
src_install () {
33
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
34
35
	dosbin dump/dump
36
	dosbin restore/restore
37
	doman restore/restore.8
38
	doman dump/dump.8
43
    dodoc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS
39
    dodoc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS
44
    dodoc README REPORTING-BUGS THANKS TODO
40
    dodoc README REPORTING-BUGS THANKS TODO
45
41
46
    cd ${D}/sbin
47
    rm -f rdump rrestore
48
    ln -s dump rdump
49
    ln -s restore rrestore
50
}
42
}

Return to bug 1986