aboutsummaryrefslogtreecommitdiff
path: root/databases/pg_activity
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-04-16 22:37:32 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-04-16 22:37:32 +0000
commit785bee9c53490bc43af86ace89f666b45d41ac86 (patch)
treec7e5b1e0ba62196826c574a92d082bd55873b83e /databases/pg_activity
parent2f56f8ba739d1ba9d7a27eef1f2a3960b09bac01 (diff)
downloadports-785bee9c53490bc43af86ace89f666b45d41ac86.tar.gz
ports-785bee9c53490bc43af86ace89f666b45d41ac86.zip
Notes
Diffstat (limited to 'databases/pg_activity')
-rw-r--r--databases/pg_activity/Makefile31
-rw-r--r--databases/pg_activity/distinfo2
-rw-r--r--databases/pg_activity/files/patch-setup.py11
-rw-r--r--databases/pg_activity/pkg-descr3
-rw-r--r--databases/pg_activity/pkg-plist11
5 files changed, 58 insertions, 0 deletions
diff --git a/databases/pg_activity/Makefile b/databases/pg_activity/Makefile
new file mode 100644
index 000000000000..37049d975c2e
--- /dev/null
+++ b/databases/pg_activity/Makefile
@@ -0,0 +1,31 @@
+# Created by: Jason Helfman <jgh@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= pg_activity
+PORTVERSION= 1.0.1
+CATEGORIES= databases python
+MASTER_SITES= GH
+
+MAINTAINER= jgh@FreeBSD.org
+COMMENT= Top like utility for PostgreSQL activity monitoring
+
+LICENSE= BSD
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:${PORTSDIR}/databases/py-psycopg2 \
+ ${PYTHON_PKGNAMEPREFIX}psutil>=0:${PORTSDIR}/sysutils/py-psutil
+
+USE_GITHUB= yes
+GH_ACCOUNT= julmon
+GH_TAGNAME= v1.0.1
+GH_COMMIT= c002fc9
+
+USE_PYTHON= yes
+PYDISTUTILS_NOEGGINFO= yes
+USE_PYDISTUTILS= easy_install
+
+MAN1= pg_activity.1
+
+post-install:
+ @${INSTALL_MAN} ${WRKSRC}/docs/man/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/databases/pg_activity/distinfo b/databases/pg_activity/distinfo
new file mode 100644
index 000000000000..0730814d84c0
--- /dev/null
+++ b/databases/pg_activity/distinfo
@@ -0,0 +1,2 @@
+SHA256 (pg_activity-1.0.1.tar.gz) = f6700733685380f165cada947fb71ee1bee532699aacb020d7ebfa38f339a562
+SIZE (pg_activity-1.0.1.tar.gz) = 122723
diff --git a/databases/pg_activity/files/patch-setup.py b/databases/pg_activity/files/patch-setup.py
new file mode 100644
index 000000000000..d0b0b427f6aa
--- /dev/null
+++ b/databases/pg_activity/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- ./setup.py.orig 2013-04-13 22:35:31.000000000 -0700
++++ ./setup.py 2013-04-13 22:37:21.000000000 -0700
+@@ -17,7 +17,5 @@
+ "psutil >= 0.4.1",
+ "psycopg2 >= 2.2.1",
+ ],
+- data_files = [
+- ('/usr/share/man/man1', ['docs/man/pg_activity.1'])
+- ],
++ zip_safe=False,
+ )
diff --git a/databases/pg_activity/pkg-descr b/databases/pg_activity/pkg-descr
new file mode 100644
index 000000000000..7f13afa8d352
--- /dev/null
+++ b/databases/pg_activity/pkg-descr
@@ -0,0 +1,3 @@
+Top like utility for PostgreSQL activity monitoring
+
+WWW: https://github.com/julmon/pg_activity
diff --git a/databases/pg_activity/pkg-plist b/databases/pg_activity/pkg-plist
new file mode 100644
index 000000000000..6a5ce672db44
--- /dev/null
+++ b/databases/pg_activity/pkg-plist
@@ -0,0 +1,11 @@
+bin/pg_activity
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts/pg_activity
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%