Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2017 18:00:46 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r439104 - head/databases/nagios-check_postgres_replication
Message-ID:  <201704211800.v3LI0kTL020489@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Apr 21 18:00:46 2017
New Revision: 439104
URL: https://svnweb.freebsd.org/changeset/ports/439104

Log:
  - Fix shebangs

Modified:
  head/databases/nagios-check_postgres_replication/Makefile

Modified: head/databases/nagios-check_postgres_replication/Makefile
==============================================================================
--- head/databases/nagios-check_postgres_replication/Makefile	Fri Apr 21 17:57:37 2017	(r439103)
+++ head/databases/nagios-check_postgres_replication/Makefile	Fri Apr 21 18:00:46 2017	(r439104)
@@ -2,12 +2,13 @@
 
 PORTNAME=	check_postgres_replication
 PORTVERSION=	2010.12.16
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	https://gist.github.com/raw/743942/4b9454d6aaf919fe77d15ecea09c7a001ae83b59/ \
 		LOCAL/brooks
 PKGNAMEPREFIX=	nagios-
 DISTNAME=	check_postgres_replication.py
-EXTRACT_SUFX=
+EXTRACT_SUFX=	# empty
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Nagios plugin to check the lag between a postgresql replica and master
@@ -17,20 +18,20 @@ LICENSE=	MIT
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nagiosplugin>=0:sysutils/py-nagiosplugin \
 		${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2
 
+USES=		python shebangfix
+SHEBANG_FILES=	check_postgres_replication.py
 NO_ARCH=	yes
 NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
-USES=		pgsql python
 
 PLIST_FILES=	libexec/nagios/check_postgres_replication
 
 do-extract:
-	${MKDIR} ${WRKDIR}
-	${CP} ${DISTDIR}/${DISTNAME} ${WRKDIR}
+	@${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}
 
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
-	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} \
-	    ${STAGEDIR}${PREFIX}/libexec/nagios/${DISTNAME:S/.py//}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
+	${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} \
+		${STAGEDIR}${PREFIX}/libexec/nagios/${DISTNAME:S/.py//}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704211800.v3LI0kTL020489>