summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2012-04-28 18:34:11 +0000
committerAaron W. Swenson <titanofold@gentoo.org>2012-04-28 18:34:11 +0000
commite71475bc4bcb834ec3c43f4d174cea4d503cd609 (patch)
tree3d0387fab1f4be984bca2bd5189b17fd0c224bab /dev-db/pgagent
parentFix issue with the PPC system targets. bug #413487 (diff)
downloadgentoo-2-e71475bc4bcb834ec3c43f4d174cea4d503cd609.tar.gz
gentoo-2-e71475bc4bcb834ec3c43f4d174cea4d503cd609.tar.bz2
gentoo-2-e71475bc4bcb834ec3c43f4d174cea4d503cd609.zip
Initial commit. Bug 292767.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/pgagent')
-rw-r--r--dev-db/pgagent/ChangeLog10
-rw-r--r--dev-db/pgagent/Manifest6
-rw-r--r--dev-db/pgagent/files/pgagent.confd22
-rw-r--r--dev-db/pgagent/files/pgagent.initd25
-rw-r--r--dev-db/pgagent/metadata.xml5
-rw-r--r--dev-db/pgagent/pgagent-3.2.1.ebuild52
6 files changed, 120 insertions, 0 deletions
diff --git a/dev-db/pgagent/ChangeLog b/dev-db/pgagent/ChangeLog
new file mode 100644
index 000000000000..ac08942fa95a
--- /dev/null
+++ b/dev-db/pgagent/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-db/pgagent
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgagent/ChangeLog,v 1.1 2012/04/28 18:34:11 titanofold Exp $
+
+*pgagent-3.2.1 (28 Apr 2012)
+
+ 28 Apr 2012; Aaron W. Swenson <titanofold@gentoo.org> +pgagent-3.2.1.ebuild,
+ +files/pgagent.confd, +files/pgagent.initd, +metadata.xml:
+ Initial commit. Bug 292767.
+
diff --git a/dev-db/pgagent/Manifest b/dev-db/pgagent/Manifest
new file mode 100644
index 000000000000..a12d36b56fe9
--- /dev/null
+++ b/dev-db/pgagent/Manifest
@@ -0,0 +1,6 @@
+AUX pgagent.confd 292 RMD160 804bcb3f64f0a9a960eb7948f5e945372afcded3 SHA1 b1d227175203e3a2c769a454fb25c2b2567a0b1b SHA256 3a916c0b7066a62c0ab47ec520015645c789c9097247f4877060c473aca2a4a5
+AUX pgagent.initd 557 RMD160 0bdab8f35881c1a52defcf622f92f68c7a9b3b0c SHA1 e8cac52c34d95363b8808a0f81e4aa2029e11606 SHA256 e7046c60315f1826b9227be7f5479bf2f50f65220d1e176a4919ada6039effbd
+DIST pgAgent-3.2.1-Source.tar.gz 42722 RMD160 aa51d78698f7ad0369960051ca8fddef630f95cc SHA1 e89a6eda1462fa496876b004de50dc2cffc457c2 SHA256 7264bdc5d5609d36aab814e3b329e10a87c0699274412a979b27a711f983f365
+EBUILD pgagent-3.2.1.ebuild 1124 RMD160 f7126b9a4d7a26d6015cd1741c176c9d124ff776 SHA1 13e73d437c0a2b02a80138a6ff7ed9d1f0ae1d47 SHA256 280d53dec2138ef1f3ccfd2cb3c559edd7ab3355155c93d5aa0771bedbdd4aa0
+MISC ChangeLog 316 RMD160 da9edf8ec5a10ff3291be85d38a67ea0ee8c023a SHA1 25c4ea5de5b7c26f264ad0f2ea4198c5b1ccfa51 SHA256 8362bad5e975724f3c807a3ae78196070b0457cf0a2f15939f0339d439aede89
+MISC metadata.xml 167 RMD160 8e41b07f79f7c043c253577a470bc04db7e76563 SHA1 6f7216a3e540097601c17a988d90d368bad3aaa2 SHA256 03dcd4d7bfd4fe2fb9ee0e409804371a0ed9994be46db5a72deb5c426f829070
diff --git a/dev-db/pgagent/files/pgagent.confd b/dev-db/pgagent/files/pgagent.confd
new file mode 100644
index 000000000000..0b2c7d788dd2
--- /dev/null
+++ b/dev-db/pgagent/files/pgagent.confd
@@ -0,0 +1,22 @@
+# Pool time interval
+PGA_POLL="10"
+
+# Retry period
+PGA_RETRY="30"
+
+# Log file
+PGA_LOG="/var/log/pgagent.log"
+
+# Logging verbosity
+# ERROR=0, WARNING=1, DEBUG=2
+PGA_LEVEL="1"
+
+# Server parameters
+# Host address
+PG_HOST="localhost"
+
+# DB name
+PG_DBNAME="postgres"
+
+# Username
+PG_USER="postgres" \ No newline at end of file
diff --git a/dev-db/pgagent/files/pgagent.initd b/dev-db/pgagent/files/pgagent.initd
new file mode 100644
index 000000000000..0e37fcc6b510
--- /dev/null
+++ b/dev-db/pgagent/files/pgagent.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgagent/files/pgagent.initd,v 1.1 2012/04/28 18:34:11 titanofold Exp $
+
+PGAGENTOPT="-t ${PGA_POLL} -r ${PGA_RETRY} -s ${PGA_LOG} -l ${PGA_LEVEL}"
+
+PGOPT="hostaddr=${PG_HOST} dbname=${PG_DBNAME} user=${PG_USER}"
+
+depend() {
+ use net
+ need postgresql
+}
+
+start() {
+ ebegin "Starting pgagent"
+ start-stop-daemon --start --exec /usr/bin/pgagent -- ${PGAGENTOPT} ${PGOPT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pgagent"
+ start-stop-daemon --stop --name pgagent
+ eend $?
+}
diff --git a/dev-db/pgagent/metadata.xml b/dev-db/pgagent/metadata.xml
new file mode 100644
index 000000000000..adf45800ffea
--- /dev/null
+++ b/dev-db/pgagent/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>postgresql</herd>
+</pkgmetadata>
diff --git a/dev-db/pgagent/pgagent-3.2.1.ebuild b/dev-db/pgagent/pgagent-3.2.1.ebuild
new file mode 100644
index 000000000000..8e5ca5745c71
--- /dev/null
+++ b/dev-db/pgagent/pgagent-3.2.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgagent/pgagent-3.2.1.ebuild,v 1.1 2012/04/28 18:34:11 titanofold Exp $
+
+EAPI="4"
+
+inherit cmake-utils eutils wxwidgets
+
+MY_PN=${PN/a/A}
+
+KEYWORDS="~x86 ~amd64"
+
+DESCRIPTION="${MY_PN} is a job scheduler for PostgreSQL"
+HOMEPAGE="http://www.pgadmin.org/download/pgagent.php"
+SRC_URI="mirror://postgresql/pgadmin3/release/${PN}/${MY_PN}-${PV}-Source.tar.gz"
+LICENSE="POSTGRESQL"
+SLOT="0"
+IUSE=""
+
+RDEPEND=">=dev-db/postgresql-base-8.3.0
+ x11-libs/wxGTK:2.8
+"
+DEPEND="${RDEPEND}
+ >=dev-util/cmake-2.6
+"
+
+S="${WORKDIR}/${MY_PN}-${PV}-Source"
+
+src_prepare() {
+ sed -e "s:share):share/${P}):" \
+ -i CMakeLists.txt || die "Couldn't patch CMakeLists.txt"
+}
+
+src_configure() {
+ WX_GTK_VER="2.8"
+ if has_version "x11-libs/wxGTK[X]"; then
+ need-wxwidgets unicode
+ else
+ need-wxwidgets base-unicode
+ fi
+ mycmakeargs="-DSTATIC_BUILD:BOOLEAN=FALSE"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newinitd "${FILESDIR}/pgagent.initd" ${PN}
+ newconfd "${FILESDIR}/pgagent.confd" ${PN}
+
+ rm "${ED}"/usr/{LICENSE,README} || die "Failed to remove useless docs"
+}