Magellan Linux

Annotation of /smage/trunk/core/sysvinit/sysvinit-2.88-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 729 - (hide annotations) (download)
Thu Oct 21 15:23:40 2010 UTC (13 years, 7 months ago) by niro
File size: 1581 byte(s)
-mcore
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 niro 729 MCORE_ONLY_KEEP="sbin/halt
19     sbin/init
20     sbin/poweroff
21     sbin/reboot
22     sbin/runlevel
23     sbin/shutdown
24     sbin/sulogin
25     sbin/telinit"
26     sminclude mtools mcore-split
27 niro 728
28     SRC_URI=(
29     http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/${PNAME}-${PVER}-makefile.patch
32     )
33    
34     UP2SUBSTITUTE="dsf"
35     UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | grep ${PNAME}- | grep -v -- '.*-latest' | lasttarball"
36    
37     # info: installs no inittab -> this file is in the magellan-initscripts
38    
39     src_prepare()
40     {
41     munpack ${SRCFILE} || die
42     cd ${SRCDIR}
43    
44    
45     # fixes a sysvinit bug
46     # see: http://savannah.nongnu.org/bugs/index.php?29758
47     mpatch ${PNAME}-${PVER}-makefile.patch || die
48    
49     sed -i 's@Sending processes@& started by init@g' src/init.c || die
50     }
51    
52     src_compile()
53     {
54     cd ${SRCDIR}
55     mmake -C src || die
56     }
57    
58 niro 729 mcore_generic_src_install()
59 niro 728 {
60     cd ${SRCDIR}
61    
62     # needed directories
63     minstalldir /{s,}bin || die
64     minstalldir /usr/{bin,include} || die
65     minstalldir /usr/share/man/man{1,5,8} || die
66    
67     # makefile wants ${ROOT} as ${DESTDIR}
68     mmake -C src ROOT=${BINDIR} install || die
69     minstalldocs COPYRIGHT README doc/*
70     }
71    
72     postinstall()
73     {
74     # reloading init
75     echo " Reloading init ..."
76     [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null
77     }