Magellan Linux

Annotation of /smage/trunk/core/sysvinit/sysvinit-2.86-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (hide annotations) (download)
Thu Jan 7 09:46:57 2010 UTC (14 years, 4 months ago) by niro
File size: 1389 byte(s)
-mcore-split
1 niro 122 # $Id$
2    
3     PNAME="sysvinit"
4     PVER="2.86"
5     PBUILD="r8"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="System initialization stuff."
11     HOMEPAGE="http://freshmeat.net/projects/sysvinit/"
12    
13     DEPEND=""
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18 niro 123 MCORE_ONLY_KEEP="bin/pidof
19     sbin/halt
20     sbin/init
21     sbin/killall5
22     sbin/poweroff
23     sbin/reboot
24     sbin/runlevel
25     sbin/shutdown
26     sbin/sulogin
27     sbin/telinit"
28     sminclude mtools mcore-split
29 niro 122
30     SRC_URI=(
31     ftp://ftp.cistron.nl/pub/people/miquels/${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     )
34    
35     UP2DATE="updatecmd ftp://ftp.cistron.nl/pub/people/miquels/${PNAME} | lasttarball gz"
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     sed -i 's@Sending processes@& started by init@g' src/init.c || die
45     }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}
50     mmake -C src CFLAGS="-Wall -D_GNU_SOURCE ${CFLAGS}" || die
51     }
52    
53 niro 123 mcore_generic_src_install()
54 niro 122 {
55     cd ${SRCDIR}
56    
57     # needed directories
58     minstalldir /{s,}bin || die
59     minstalldir /usr/{bin,include} || die
60     minstalldir /usr/share/man/man{1,5,8} || die
61    
62     # makefile wants ${ROOT} as ${DESTDIR}
63     mmake -C src ROOT=${BINDIR} install || die
64     minstalldocs COPYRIGHT README doc/*
65     }
66    
67     postinstall()
68     {
69     # reloading init
70     echo " Reloading init ..."
71     [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null
72     }

Properties

Name Value
svn:keywords Id