Annotation of /smage/trunk/core/sysvinit/sysvinit-2.88-r1.smage2
Parent Directory | Revision Log
Revision 728 -
(hide annotations)
(download)
Thu Oct 21 15:22:33 2010 UTC (13 years, 7 months ago) by niro
File size: 1430 byte(s)
Thu Oct 21 15:22:33 2010 UTC (13 years, 7 months ago) by niro
File size: 1430 byte(s)
auto added: ver bump to 2.88-r1
1 | niro | 728 | # $Id$ |
2 | |||
3 | PNAME="sysvinit" | ||
4 | PVER="2.88" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="System initialization stuff." | ||
11 | HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}" | ||
12 | |||
13 | DEPEND="" | ||
14 | |||
15 | SRCFILE="${PNAME}-${PVER}dsf.tar.bz2" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}dsf" | ||
17 | |||
18 | sminclude mtools | ||
19 | |||
20 | SRC_URI=( | ||
21 | http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/${PNAME}-${PVER}-makefile.patch | ||
24 | ) | ||
25 | |||
26 | UP2SUBSTITUTE="dsf" | ||
27 | UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | grep ${PNAME}- | grep -v -- '.*-latest' | lasttarball" | ||
28 | |||
29 | # info: installs no inittab -> this file is in the magellan-initscripts | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | |||
37 | # fixes a sysvinit bug | ||
38 | # see: http://savannah.nongnu.org/bugs/index.php?29758 | ||
39 | mpatch ${PNAME}-${PVER}-makefile.patch || die | ||
40 | |||
41 | sed -i 's@Sending processes@& started by init@g' src/init.c || die | ||
42 | } | ||
43 | |||
44 | src_compile() | ||
45 | { | ||
46 | cd ${SRCDIR} | ||
47 | mmake -C src || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | |||
54 | # needed directories | ||
55 | minstalldir /{s,}bin || die | ||
56 | minstalldir /usr/{bin,include} || die | ||
57 | minstalldir /usr/share/man/man{1,5,8} || die | ||
58 | |||
59 | # makefile wants ${ROOT} as ${DESTDIR} | ||
60 | mmake -C src ROOT=${BINDIR} install || die | ||
61 | minstalldocs COPYRIGHT README doc/* | ||
62 | } | ||
63 | |||
64 | postinstall() | ||
65 | { | ||
66 | # reloading init | ||
67 | echo " Reloading init ..." | ||
68 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null | ||
69 | } |