Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64048 - dhcpcd- 1.3.22_p4-r5 does not install config directory
Summary: dhcpcd- 1.3.22_p4-r5 does not install config directory
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 13:58 UTC by Antonio
Modified: 2004-11-03 19:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio 2004-09-14 13:58:39 UTC
I have emerge dhcpcd but this ebuild does not install /etc/dhcpd config directory.

gentoonet root # qpkg -l  dhcpcd
net-misc/dhcpcd-1.3.22_p4-r5 *
CONTENTS:
/etc
/usr
/usr/share
/usr/share/doc
/usr/share/doc/dhcpcd-1.3.22_p4-r5
/usr/share/doc/dhcpcd-1.3.22_p4-r5/README.gz
/usr/share/doc/dhcpcd-1.3.22_p4-r5/NEWS.gz
/usr/share/doc/dhcpcd-1.3.22_p4-r5/AUTHORS.gz
/usr/share/doc/dhcpcd-1.3.22_p4-r5/ChangeLog.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/dhcpcd.8.gz
/sbin
/sbin/dhcpcd


/etc is created but not /etc/dhcpc

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-10-05 21:59:47 UTC
try with `emerge --noconfmem`
Comment 2 Antonio 2004-10-16 06:17:43 UTC
Sorry.

In ebuild :

src_compile() {
        use static && append-flags -static

        ./configure \
                --prefix="" \
                --sysconfdir=/var/lib \   <------------------ OK
                --mandir=/usr/share/man || die

        emake || die
}

I suggest to create on ebuild a dir /var/lib/dhcpd/.keep for conf directory.
Comment 3 Antonio 2004-10-16 06:19:55 UTC
And change this :

src_install() {
        einstall sbindir=${D}/sbin || die "Install failed"
        rmdir ${D}/etc/dhcpc   <--------------- change in rm -rf ${D}/etc
        if ! use build
        then
                dodoc AUTHORS ChangeLog NEWS README
        else
                rm -rf ${D}/usr/share
        fi
}

Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-10-16 07:01:33 UTC
doesn't sound like a portage bug and I don't know if it is a bug at all.
Comment 5 SpanKY gentoo-dev 2004-11-03 19:22:14 UTC
the directory is empty, no point in installing it

i switched the ./configure to use `econf` instead