Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/sysvinit: sysvinit-2.87-r2.ebuild ChangeLog
Date: Fri, 08 Jan 2010 16:55:09
Message-Id: E1NTI79-0000Gn-9I@stork.gentoo.org
1 williamh 10/01/08 16:55:07
2
3 Modified: ChangeLog
4 Added: sysvinit-2.87-r2.ebuild
5 Log:
6 Do not shut down network interfaces when we shut down; closes bug #278535.
7 (Portage version: 2.2_rc61/cvs/Linux i686)
8
9 Revision Changes Path
10 1.66 sys-apps/sysvinit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sysvinit/ChangeLog?rev=1.66&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sysvinit/ChangeLog?rev=1.66&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sysvinit/ChangeLog?r1=1.65&r2=1.66
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v
19 retrieving revision 1.65
20 retrieving revision 1.66
21 diff -u -r1.65 -r1.66
22 --- ChangeLog 11 Nov 2009 21:51:27 -0000 1.65
23 +++ ChangeLog 8 Jan 2010 16:55:06 -0000 1.66
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-apps/sysvinit
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.65 2009/11/11 21:51:27 vapier Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.66 2010/01/08 16:55:06 williamh Exp $
30 +
31 +*sysvinit-2.87-r2 (08 Jan 2010)
32 +
33 + 08 Jan 2010; William Hubbs <williamh@g.o> +files/inittab-2.87,
34 + +sysvinit-2.87-r2.ebuild:
35 + Do not shut down network interfaces when we shut down.
36 + This closes bug #278535.
37
38 *sysvinit-2.87-r1 (11 Nov 2009)
39
40
41
42
43 1.1 sys-apps/sysvinit/sysvinit-2.87-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sysvinit/sysvinit-2.87-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sysvinit/sysvinit-2.87-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sysvinit-2.87-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.87-r2.ebuild,v 1.1 2010/01/08 16:55:06 williamh Exp $
53
54 inherit eutils toolchain-funcs flag-o-matic
55
56 PATCH_VER="1"
57 DESCRIPTION="/sbin/init - parent of all processes"
58 HOMEPAGE="http://freshmeat.net/projects/sysvinit/"
59 SRC_URI="mirror://debian/pool/main/s/sysvinit/${PN}_${PV}dsf.orig.tar.gz
60 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
61 F="ftp://ftp.cistron.nl/pub/people/miquels/software/${P}.tar.gz
62 ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/${P}.tar.gz
63 http://www.gc-linux.org/down/isobel/kexec/sysvinit/sysvinit-2.86-kexec.patch"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
68 IUSE="selinux ibm static kernel_FreeBSD"
69
70 RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
71 DEPEND="${RDEPEND}
72 virtual/os-headers"
73
74 S=${WORKDIR}/${P}dsf
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79 EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patches
80 sed -i '/^STRIP/s|=.*|=:|' src/Makefile
81
82 # Mung inittab for specific architectures
83 cd "${WORKDIR}"
84 cp "${FILESDIR}"/inittab-${PV} inittab || die "cp inittab"
85 local insert=""
86 use ppc && insert='#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux'
87 use arm && insert='#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100'
88 use hppa && insert='b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100'
89 use s390 && insert='s0:12345:respawn:/sbin/agetty 38400 console'
90 if use ibm ; then
91 insert="${insert}#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0"$'\n'
92 insert="${insert}#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0"
93 fi
94 (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
95 if use kernel_FreeBSD ; then
96 sed -i \
97 -e 's/linux/cons25/g' \
98 -e 's/ttyS0/cuaa0/g' \
99 -e 's/ttyS1/cuaa1/g' \
100 inittab #121786
101 fi
102 [[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
103 }
104
105 src_compile() {
106 tc-export CC
107 use static && append-ldflags -static
108 emake -C src || die
109 }
110
111 src_install() {
112 emake -C src \
113 install \
114 ROOT="${D}" \
115 || die "make install"
116 dodoc README doc/*
117
118 insinto /etc
119 doins "${WORKDIR}"/inittab || die "inittab"
120
121 doinitd "${FILESDIR}"/{reboot,shutdown}.sh || die
122 }
123
124 pkg_postinst() {
125 # Reload init to fix unmounting problems of / on next reboot.
126 # This is really needed, as without the new version of init cause init
127 # not to quit properly on reboot, and causes a fsck of / on next reboot.
128 if [[ ${ROOT} == / ]] ; then
129 # Do not return an error if this fails
130 /sbin/telinit U &>/dev/null
131 fi
132 }