blob: 959dccbefe6e2f8305d9021d917b489442ebfa4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel robbins <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.78-r3.ebuild,v 1.2 2001/08/11 05:30:57 drobbins Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}/src
DESCRIPTION="System initialization stuff"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/init/${A}"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}
mv Makefile Makefile.orig
sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile
}
src_compile() {
try pmake LDFLAGS=""
cd ../contrib
try gcc ${CFLAGS} start-stop-daemon.c -o start-stop-daemon
}
src_install() {
into /
dosbin halt init killall5 runlevel shutdown sulogin
dosym init /sbin/telinit
dobin last mesg utmpdump wall
dosym killall5 /sbin/pidof
dosym halt /sbin/reboot
cd ../contrib
dosbin start-stop-daemon
into /usr
cd ../man
doman *.[1-9]
cd ..
dodoc README doc/* contrib/start-stop-daemon.README
}
|