Contents of /smage/trunk/core/sysvinit/sysvinit-2.86-r8.smage2
Parent Directory | Revision Log
Revision 125 -
(show annotations)
(download)
Thu Jan 7 09:50:35 2010 UTC (14 years, 8 months ago) by niro
File size: 1354 byte(s)
Thu Jan 7 09:50:35 2010 UTC (14 years, 8 months ago) by niro
File size: 1354 byte(s)
-pidof and killall5 are provided by busybox
1 | # $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 | 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 | |
28 | SRC_URI=( |
29 | ftp://ftp.cistron.nl/pub/people/miquels/${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | ) |
32 | |
33 | UP2DATE="updatecmd ftp://ftp.cistron.nl/pub/people/miquels/${PNAME} | lasttarball gz" |
34 | |
35 | # info: installs no inittab -> this file is in the magellan-initscripts |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | sed -i 's@Sending processes@& started by init@g' src/init.c || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | mmake -C src CFLAGS="-Wall -D_GNU_SOURCE ${CFLAGS}" || die |
49 | } |
50 | |
51 | mcore_generic_src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | # needed directories |
56 | minstalldir /{s,}bin || die |
57 | minstalldir /usr/{bin,include} || die |
58 | minstalldir /usr/share/man/man{1,5,8} || die |
59 | |
60 | # makefile wants ${ROOT} as ${DESTDIR} |
61 | mmake -C src ROOT=${BINDIR} install || die |
62 | minstalldocs COPYRIGHT README doc/* |
63 | } |
64 | |
65 | postinstall() |
66 | { |
67 | # reloading init |
68 | echo " Reloading init ..." |
69 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null |
70 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |