summaryrefslogtreecommitdiffstats
path: root/gentoo/pica-node-0.5.3.ebuild
blob: f0793c9604b343c84cfee431e3c63729e50d39a8 (plain) (blame)
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
48
49
 # Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils

DESCRIPTION="Node for Pica Pica distributed decentralized IM system"
HOMEPAGE="http://picapica.im/"
SRC_URI="http://picapica.im/pica-pica-${PV}.tar.gz"

LICENSE="BSD-2"
SLOT="0"

KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=dev-libs/openssl-0.9.8
	>=dev-db/sqlite-3.7.0"

RDEPEND="${DEPEND}"

S="${WORKDIR}/pica-pica-${PV}"

src_configure() {
    # We have optional perl, python and ruby support
    econf    --disable-client --localstatedir=/var
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	newinitd "${S}/gentoo/gentoo_initscript" ${PN}
	#dodoc README  || die
}

pkg_preinst() {
#    enewgroup pica-node
	enewuser pica-node
	fowners -R pica-node:pica-node "/var/lib/pica-node"
	
	dodir "/var/log/pica-node"
	fowners -R pica-node:pica-node "/var/log/pica-node"
}

pkg_postinst() {

	elog "Set announced_addr value to your IP address in config file before running pica-node"
}