/[gentoo-x86]/sys-apps/makedev/makedev-3.23.1.ebuild
Gentoo

Diff of /sys-apps/makedev/makedev-3.23.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/makedev-3.23.1.ebuild,v 1.6 2011/05/28 20:42:26 xarthisius Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/makedev-3.23.1.ebuild,v 1.7 2011/05/29 18:14:26 vapier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit eutils toolchain-funcs 7inherit eutils toolchain-funcs
8 8
28 epatch "${FILESDIR}"/${P}-headers.patch #339674 28 epatch "${FILESDIR}"/${P}-headers.patch #339674
29} 29}
30 30
31src_compile() { 31src_compile() {
32 use selinux && export SELINUX=1 32 use selinux && export SELINUX=1
33 emake CC=$(tc-getCC) OPTFLAGS="${CFLAGS}" || die 33 emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die
34} 34}
35 35
36src_install() { 36src_install() {
37 # set devdir to makedevdir so we dont have to worry about /dev 37 # set devdir to makedevdir so we dont have to worry about /dev
38 emake install DESTDIR="${D}" makedevdir=/sbin devdir=/sbin || die 38 emake install DESTDIR="${D}" makedevdir=/sbin devdir=/sbin || die
39 dodoc *.txt 39 dodoc *.txt
40 keepdir /dev 40 keepdir /dev
41} 41}
42 42
43pkg_postinst() { 43pkg_postinst() {
44 use build && MAKEDEV -d "${ROOT}"/dev generic 44 if use build ; then
45 # set up a base set of nodes to make recovery easier #368597
46 MAKEDEV -d "${ROOT}"/dev hda input std sd tty
47 # trim useless nodes
48 rm -f "${ROOT}"/dev/fd[0-9]* # floppy
49 rm -f "${ROOT}"/dev/sd[a-d][a-z]* "${ROOT}"/dev/sd[e-z]* # excess sata
50 rm -f "${ROOT}"/dev/tty[a-z]* # excess tty
51 fi
45} 52}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20