pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

collectd-web: clean up, fix shebangs



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Mon Aug 17 23:21:46 2020 +0200
Changeset:	446b68f3ea7a8e09bfaceedebdf65e7a9fd97923

Modified Files:
	collectd-web/Makefile

Log Message:
collectd-web: clean up, fix shebangs

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=446b68f3ea7a8e09bfaceedebdf65e7a9fd97923

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 collectd-web/Makefile | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diffs:
diff --git a/collectd-web/Makefile b/collectd-web/Makefile
index 7eaa81afdb..ca390d1afd 100644
--- a/collectd-web/Makefile
+++ b/collectd-web/Makefile
@@ -11,18 +11,6 @@ HOMEPAGE=	https://github.com/httpdss/
 COMMENT=	Web interface for Collectd
 LICENSE=	gnu-gpl-v2
 
-NO_CONFIGURE=		yes
-NO_BUILD=		yes
-USE_TOOLS+=		pax unzip
-AUTO_MKDIRS=		yes
-#EXTRACT_ONLY=		# empty
-REPLACE_PERL+=		cgi-bin/*.pl
-REPLACE_PERL+=		cgi-bin/*.cgi
-INSTALLATION_DIRS=	share/collectd-web
-
-WRKSRC=		${WRKDIR}/${DISTNAME}
-USE_LANGUAGES=	# none
-
 DEPENDS+=	fcgiwrap>=1.1.0:../../www/fcgiwrap
 DEPENDS+=	spawn-fcgi>=1.6.3:../../www/spawn-fcgi
 DEPENDS+=	p5-HTTP-Parser>=0.06:../../www/p5-HTTP-Parser
@@ -32,8 +20,22 @@ DEPENDS+=	p5-CGI>=4.36:../../www/p5-CGI
 #DEPENDS+=	cgic>=2.02:../../www/cgic
 #DEPENDS+=	fcgi>=2.4.0:../../www/fcgi
 
+NO_BUILD=		yes
+USE_TOOLS+=		pax perl:run
+REPLACE_PERL+=		cgi-bin/*.pl
+REPLACE_PERL+=		cgi-bin/*.cgi
+REPLACE_SH+=		check_deps.sh
+REPLACE_PYTHON+=	runserver.py
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+USE_LANGUAGES=	# none
+
+do-configure:
+	# empty target is needed, otherwise REPLACE_* do not happen
+
 do-install:
-	cd ${WRKSRC} && pax -rw -pe . ${DESTDIR}${PREFIX}/${INSTALLATION_DIRS}
+	cd ${WRKSRC} && pax -rw -pe . ${DESTDIR}${PREFIX}/share/collectd-web
 
 .include "../../lang/perl5/module.mk"
+.include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index