pkgsrc-WIP-changes archive

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

Make sure the junos_views.yml file gets installed. Bump PKGREVISION.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Thu Feb 25 14:48:10 2016 +0100
Changeset:	59478dbfafabcb58a54fae38ce5be62abc319df0

Modified Files:
	py-napalm/Makefile

Log Message:
Make sure the junos_views.yml file gets installed.
Bump PKGREVISION.

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

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

diffstat:
 py-napalm/Makefile | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-napalm/Makefile b/py-napalm/Makefile
index 793e6db..a3a474c 100644
--- a/py-napalm/Makefile
+++ b/py-napalm/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	napalm-0.51.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	-https://github.com/napalm-automation/napalm/archive/${PKGVERSION_NOREV}${EXTRACT_SUFX}
 
@@ -26,5 +27,15 @@ PLIST_SUBST+=	PYVERSUFFIX=${PYVERSUFFIX}
 PLIST_SUBST+=	PYPKGPREFIX=${PYPKGPREFIX}
 PYTHON_VERSIONS_ACCEPTED=	35 34 33 27 26
 
-.include "../../lang/python/egg.mk"
+# Target dir already exists...
+INSTALL_EXTRA_FILES=	napalm/utils/*.yml
+
+post-install:
+	cd ${WRKSRC}; \
+	for f in ${INSTALL_EXTRA_FILES}; do \
+		${INSTALL_DATA} $$f  \
+			${DESTDIR}/${PREFIX}/${PYSITELIB}/`dirname $$f`; \
+	done
+
+.include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index