diff --git a/databases/Makefile b/databases/Makefile index 9245a3c2a81f..2deff4a7f9be 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -549,6 +549,7 @@ SUBDIR += percona55-server SUBDIR += percona56-client SUBDIR += percona56-server + SUBDIR += pg_activity SUBDIR += pg_filedump SUBDIR += pg_reorg SUBDIR += pg_rman 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 +# $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 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%%