pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add ansible-junos-stdlib version 1.2.0.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Wed Feb 17 12:21:45 2016 +0100
Changeset: 7387691593e6dcd10f64ccbbc23ada6329e22277
Added Files:
ansible-junos-stdlib/DESCR
ansible-junos-stdlib/Makefile
ansible-junos-stdlib/PLIST
ansible-junos-stdlib/distinfo
Log Message:
Add ansible-junos-stdlib version 1.2.0.
This enables ansible to perform operations & config of JunOS boxes.
This package installs files in PKG_SYSCONFDIR, which pkgsrc and
pkglint takes a dim view at -- pkglint says "use CONF_FILES framework".
This is however what "ansible-galaxy install Juniper.junos" would do,
and this package simply replicates that behaviour for now.
So ... this is for review and/or improvement.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7387691593e6dcd10f64ccbbc23ada6329e22277
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ansible-junos-stdlib/DESCR | 7 +++++++
ansible-junos-stdlib/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
ansible-junos-stdlib/PLIST | 25 +++++++++++++++++++++++++
ansible-junos-stdlib/distinfo | 5 +++++
4 files changed, 75 insertions(+)
diffs:
diff --git a/ansible-junos-stdlib/DESCR b/ansible-junos-stdlib/DESCR
new file mode 100644
index 0000000..3d1b00e
--- /dev/null
+++ b/ansible-junos-stdlib/DESCR
@@ -0,0 +1,7 @@
+The Juniper Networks Ansible library, which is hosted on the Ansible
+Galaxy website under the role junos, enables you to use Ansible to
+perform specific operational and configuration tasks on devices
+running Junos OS, including installing and upgrading Junos OS,
+deploying specific devices in the network, loading configuration
+changes, retrieving information, and resetting, rebooting, or
+shutting down managed devices.
diff --git a/ansible-junos-stdlib/Makefile b/ansible-junos-stdlib/Makefile
new file mode 100644
index 0000000..fdb4db3
--- /dev/null
+++ b/ansible-junos-stdlib/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME= ansible-junos-stdlib-1.2.0
+CATEGORIES= sysutils net
+MASTER_SITES= -https://github.com/Juniper/${PKGBASE}/archive/${PKGVERSION_NOREV}${EXTRACT_SUFX}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Juniper/${PKGBASE}
+COMMENT= Ansible library for JunOS routers
+LICENSE= apache-2.0
+
+USE_TOOLS= pax
+USE_LANGUAGES= # none
+PLIST_SUBST+= PYVERSUFFIX=${PYVERSUFFIX}
+PYTHON_VERSIONS_ACCEPTED= 27 26
+
+REPLACE_PYTHON+= docs/ansible2rst.py
+REPLACE_PYTHON+= library/junos_get_config
+REPLACE_PYTHON+= library/junos_rollback
+REPLACE_PYTHON+= tools/sw_upgrade
+
+DEPENDS+= ansible>=1.5:../../sysutils/ansible
+DEPENDS+= ${PYPKGPREFIX}-junos-eznc>=1.2.2:../../net/py-junos-eznc
+# Not packaged yet
+#DEPENDS+= ${PYPKGPREFIX}-netconify>=1.0.1:../../wip/py-netconify
+
+# Pkgsrc frowns on this, pkglint says "use CONF_FILES framework"
+# However, this is what "ansible-galaxy install Juniper.junos" does,
+# and we simply replicate that here.
+INSTALLATION_DIRS= ${PKG_SYSCONFDIR}/ansible/roles/Juniper.junos
+
+do-build:
+
+do-install:
+ (cd ${WRKSRC}; pax -rw . ${DESTDIR}/${PKG_SYSCONFDIR}/ansible/roles/Juniper.junos)
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ansible-junos-stdlib/PLIST b/ansible-junos-stdlib/PLIST
new file mode 100644
index 0000000..5cf4902
--- /dev/null
+++ b/ansible-junos-stdlib/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD$
+etc/ansible/roles/Juniper.junos/.gitignore
+etc/ansible/roles/Juniper.junos/COPYRIGHT
+etc/ansible/roles/Juniper.junos/LICENSE
+etc/ansible/roles/Juniper.junos/README.md
+etc/ansible/roles/Juniper.junos/docs/ansible2rst.py
+etc/ansible/roles/Juniper.junos/docs/conf.py
+etc/ansible/roles/Juniper.junos/docs/docreq.txt
+etc/ansible/roles/Juniper.junos/docs/juniper.png
+etc/ansible/roles/Juniper.junos/docs/rst.j2
+etc/ansible/roles/Juniper.junos/env-setup
+etc/ansible/roles/Juniper.junos/library/__init__.py
+etc/ansible/roles/Juniper.junos/library/junos_commit
+etc/ansible/roles/Juniper.junos/library/junos_get_config
+etc/ansible/roles/Juniper.junos/library/junos_get_facts
+etc/ansible/roles/Juniper.junos/library/junos_install_config
+etc/ansible/roles/Juniper.junos/library/junos_install_os
+etc/ansible/roles/Juniper.junos/library/junos_rollback
+etc/ansible/roles/Juniper.junos/library/junos_shutdown
+etc/ansible/roles/Juniper.junos/library/junos_srx_cluster
+etc/ansible/roles/Juniper.junos/library/junos_zeroize
+etc/ansible/roles/Juniper.junos/meta/main.yml
+etc/ansible/roles/Juniper.junos/setup.py
+etc/ansible/roles/Juniper.junos/tools/sw_upgrade
+etc/ansible/roles/Juniper.junos/version.py
diff --git a/ansible-junos-stdlib/distinfo b/ansible-junos-stdlib/distinfo
new file mode 100644
index 0000000..d02e374
--- /dev/null
+++ b/ansible-junos-stdlib/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (ansible-junos-stdlib-1.2.0.tar.gz) = d6663279f61405e8c9a8f62310f2f44b654b0d63
+RMD160 (ansible-junos-stdlib-1.2.0.tar.gz) = 86b8dc2c9afced7ac00cb10e5ed90decc61419ba
+Size (ansible-junos-stdlib-1.2.0.tar.gz) = 32462 bytes
Home |
Main Index |
Thread Index |
Old Index