blob: 27dee2e534cc02fe8143b7a4868e1ad39e83d078 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/spread/spread-4.0.0.ebuild,v 1.4 2010/02/22 18:20:33 phajdan.jr Exp $
inherit eutils
MY_PN="spread-src"
DESCRIPTION="Distributed network messaging system"
HOMEPAGE="http://www.spread.org"
SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tar.gz"
LICENSE="Spread-1.0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
pkg_setup() {
enewuser spread
enewgroup spread
}
src_unpack() {
unpack ${A}
cd "${S}"
# don't strip binaries
sed -i -e 's/0755 -s/0755/g' daemon/Makefile.in examples/Makefile.in
}
src_install() {
emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" -j1 install \
|| die "emake install failed"
newinitd "${FILESDIR}"/spread.init.d spread || die "newinitd failed"
dodir /var/run/spread || die "dodir failed"
}
|