Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 122 - (hide annotations) (download)
Thu Jan 7 09:42:41 2010 UTC (14 years, 4 months ago) by niro
File size: 1203 byte(s)
auto added: ver bump to 2.86-r8
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     sminclude mtools
19    
20     SRC_URI=(
21     ftp://ftp.cistron.nl/pub/people/miquels/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd ftp://ftp.cistron.nl/pub/people/miquels/${PNAME} | lasttarball gz"
26    
27     # info: installs no inittab -> this file is in the magellan-initscripts
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE} || die
32     cd ${SRCDIR}
33    
34     sed -i 's@Sending processes@& started by init@g' src/init.c || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}
40     mmake -C src CFLAGS="-Wall -D_GNU_SOURCE ${CFLAGS}" || die
41     }
42    
43     src_install()
44     {
45     cd ${SRCDIR}
46    
47     # needed directories
48     minstalldir /{s,}bin || die
49     minstalldir /usr/{bin,include} || die
50     minstalldir /usr/share/man/man{1,5,8} || die
51    
52     # makefile wants ${ROOT} as ${DESTDIR}
53     mmake -C src ROOT=${BINDIR} install || die
54     minstalldocs COPYRIGHT README doc/*
55     }
56    
57     postinstall()
58     {
59     # reloading init
60     echo " Reloading init ..."
61     [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null
62     }

Properties

Name Value
svn:keywords Id