blob: 6162e962b52f3a9a9987fe4468ed84db9760bb37 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-process/supervise-scripts/supervise-scripts-3.5.ebuild,v 1.7 2011/01/29 23:14:00 bangert Exp $
inherit eutils fixheadtails toolchain-funcs
DESCRIPTION="Starting and stopping daemontools managed services"
HOMEPAGE="http://untroubled.org/supervise-scripts/"
SRC_URI="http://untroubled.org/supervise-scripts/archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ppc sparc x86"
IUSE=""
RDEPEND="virtual/daemontools"
DEPEND="${RDEPEND}
dev-libs/bglibs"
src_unpack() {
unpack ${A}
cd "${S}"
echo '/usr/bin' > conf-bin
echo '/usr/lib/bglibs/lib' > conf-bglibs
echo '/usr/lib/bglibs/include' > conf-bgincs
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
ht_fix_file svscan-add-to-inittab.in Makefile
epatch "${FILESDIR}"/${P}-head-tails-syntax.patch #152307
}
src_compile() {
# does NOT support parallel make
emake -j1 || die
}
src_install() {
dobin svc-add svc-isdown svc-isup svc-remove \
svc-start svc-status svc-stop svc-restart \
svc-waitdown svc-waitup svscan-add-to-inittab \
svscan-add-to-inittab svscan-start svscan-stopall \
|| die
dodoc ANNOUNCEMENT ChangeLog NEWS README TODO VERSION
doman *.[0-9]
}
|