/[gentoo-x86]/sys-fs/devfsd/devfsd-1.3.25-r9.ebuild
Gentoo

Contents of /sys-fs/devfsd/devfsd-1.3.25-r9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Apr 15 21:56:12 2011 UTC (3 years, 8 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -3 lines
Don't PROVIDE virtual/dev-manager, it is a new-style virtual now. Bug 361133.

(Portage version: 2.1.9.46/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/devfsd/devfsd-1.3.25-r9.ebuild,v 1.4 2008/01/26 07:39:28 vapier Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 DESCRIPTION="Daemon for the Linux Device Filesystem"
8 HOMEPAGE="http://www.atnf.csiro.au/~rgooch/linux/"
9 SRC_URI="ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/devfsd-v${PV}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS=""
14 IUSE=""
15
16 DEPEND="<sys-kernel/linux-headers-2.6.18"
17 RDEPEND=""
18
19 S=${WORKDIR}/${PN}
20
21 src_unpack() {
22 unpack ${A}
23
24 cd "${S}"
25 epatch "${FILESDIR}"/${P}-kernel-2.5.patch
26 epatch "${FILESDIR}"/${P}-pic.patch
27 epatch "${FILESDIR}"/${P}-no-nis.patch
28
29 use elibc_uclibc || append-flags -DHAVE_NIS
30 sed -i \
31 -e "s:-O2:${CFLAGS}:g" \
32 -e 's:/usr/man:/usr/share/man:' \
33 -e 's:/usr/src/linux:.:' \
34 -e '32,34d;11,16d' -e '6c\' \
35 -e 'DEFINES := -DLIBNSL="\\"/lib/libnsl.so.1\\""' \
36 -e 's:install -s:install:' \
37 GNUmakefile
38 use elibc_uclibc && sed -e 's|libnsl.so.1|libnsl.so.0|' -i GNUmakefile
39 tc-export CC
40 }
41
42 src_install() {
43 dodir /sbin /usr/share/man /etc
44 emake PREFIX="${D}" install || die
45 dodoc devfsd.conf INSTALL
46
47 keepdir /etc/devfs.d
48 insinto /etc
49 doins "${FILESDIR}"/devfsd.conf
50
51 insinto /lib/rcscripts/addons
52 doins "${FILESDIR}"/devfs-{start,stop}.sh
53 }
54
55 pkg_postinst() {
56 echo
57 einfo "You may wish to read the Gentoo Linux Device Filesystem Guide,"
58 einfo "which can be found online at:"
59 einfo " http://www.gentoo.org/doc/en/devfs-guide.xml"
60 echo
61 }

  ViewVC Help
Powered by ViewVC 1.1.20