summaryrefslogtreecommitdiffstats
path: root/gentoo
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-21 16:53:42 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-21 16:53:42 +0000
commit47bac976ea5951a9e61e39f29822324280d02d0d (patch)
tree574b894dc3f401cb86ed3a600b4e461b08ec0486 /gentoo
parent73b6d4229b1b48a103e4feeeaac874db964d2521 (diff)
downloadpica-pica-47bac976ea5951a9e61e39f29822324280d02d0d.tar.gz
pica-pica-47bac976ea5951a9e61e39f29822324280d02d0d.zip
moved Gentoo-related files to gentoo/ dir
git-svn-id: svn://localhost/project_picapica/trunk@240 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'gentoo')
-rw-r--r--gentoo/gentoo_initscript26
-rw-r--r--gentoo/pica-client-0.5.3.ebuild54
-rw-r--r--gentoo/pica-node-0.5.3.ebuild49
3 files changed, 129 insertions, 0 deletions
diff --git a/gentoo/gentoo_initscript b/gentoo/gentoo_initscript
new file mode 100644
index 0000000..edcaa17
--- /dev/null
+++ b/gentoo/gentoo_initscript
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use dns
+}
+
+start() {
+ ebegin "Starting pica-node"
+ # Ensure that we run from a readable working dir, and that we do not
+ # lock filesystems when being run from such a location.
+ cd /
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --pidfile /var/run/pica-node.pid --exec /usr/bin/pica-node \
+ --stdout /var/log/pica-node/pica-node.log \
+ --stderr /var/log/pica-node/pica-node.err \
+ --user ${PICANODE_USER:-pica-node} -- \
+ ${PICANODE_OPTS:--v}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pica-node"
+ start-stop-daemon --stop --quiet --pidfile /var/run/pica-node.pid
+ eend $?
+}
diff --git a/gentoo/pica-client-0.5.3.ebuild b/gentoo/pica-client-0.5.3.ebuild
new file mode 100644
index 0000000..62b7cb5
--- /dev/null
+++ b/gentoo/pica-client-0.5.3.ebuild
@@ -0,0 +1,54 @@
+ # Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Pica Pica Messenger"
+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-qt/qtcore-4.0.0
+ >dev-qt/qtgui-4.0.0
+ >dev-qt/qtsql-4.0.0[sqlite]
+ virtual/pkgconfig
+ x11-misc/xdg-utils"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/pica-pica-${PV}"
+
+src_configure() {
+ econf --disable-node --disable-menuitem
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ #dodoc README || die
+}
+
+pkg_postinst() {
+ xdg-icon-resource install --size 32 "${S}/pica-client/picapica-icon-sit.png" pica-client
+ xdg-icon-resource install --size 22 "${S}/pica-client/picapica-icon-sit.png" pica-client
+ xdg-icon-resource install --size 64 "${S}/pica-client/picapica-icon-sit.png" pica-client
+
+ xdg-desktop-menu install "${S}/pica-client/pica-client.desktop"
+}
+
+pkg_postrm() {
+ xdg-icon-resource uninstall --size 32 pica-client
+ xdg-icon-resource uninstall --size 22 pica-client
+ xdg-icon-resource uninstall --size 64 pica-client
+
+ xdg-desktop-menu uninstall pica-client.desktop
+}
+
diff --git a/gentoo/pica-node-0.5.3.ebuild b/gentoo/pica-node-0.5.3.ebuild
new file mode 100644
index 0000000..23a4062
--- /dev/null
+++ b/gentoo/pica-node-0.5.3.ebuild
@@ -0,0 +1,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_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"
+}