Magellan Linux

Contents of /smage/trunk/core/sysvinit/sysvinit-2.86-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (show annotations) (download)
Sun Jan 11 01:07:49 2009 UTC (15 years, 3 months ago) by niro
File size: 1120 byte(s)
-fixed old cvs headers
1 # $Id$
2
3 PNAME="sysvinit"
4 PVER="2.86"
5 PBUILD="r6"
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 alx
19
20 SRC_URI=(
21 ftp://ftp.cistron.nl/pub/people/miquels/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 # info: installs no inittab -> this file is in the magellan-initscripts
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 sed -i 's@Sending processes@& started by init@g' src/init.c || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38 mmake -C src CFLAGS="-Wall -D_GNU_SOURCE ${CFLAGS}" || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44
45 # needed directories
46 minstalldir /{s,}bin || die
47 minstalldir /usr/{bin,include} || die
48 minstalldir /usr/share/man/man{1,5,8} || die
49
50 # makefile wants ${ROOT} as ${DESTDIR}
51 mmake -C src ROOT=${BINDIR} install || die
52 minstalldocs COPYRIGHT README doc/*
53 }
54
55 postinstall()
56 {
57 # reloading init
58 echo " Reloading init ..."
59 [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null
60 }

Properties

Name Value
svn:keywords Id