Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
Salt is a distributed remote execution system used to execute commands
and query data. It was developed in order to bring the best solutions
found in the world of remote execution together and make them better,
faster and more malleable. Salt accomplishes this via its ability to
handle larger loads of information, and not just dozens, but hundreds,
or even thousands of individual servers. It handles them quickly and
through a simple yet manageable interface.
+62
View File
@@ -0,0 +1,62 @@
# $NetBSD: Makefile,v 1.14 2013/06/15 15:04:39 imil Exp $
#
DISTNAME= salt-0.15.3
CATEGORIES= sysutils
MASTER_SITES= http://pypi.python.org/packages/source/s/salt/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://saltstack.org/
COMMENT= Remote execution and configuration management system
LICENSE= apache-2.0
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= post-patch
SUBST_MESSAGE.fix-paths=Fixing directory paths.
SUBST_FILES.fix-paths+= conf/*
SUBST_FILES.fix-paths+= doc/man/*
SUBST_FILES.fix-paths+= salt/client.py
SUBST_FILES.fix-paths+= salt/config.py
SUBST_FILES.fix-paths+= salt/modules/mysql.py
SUBST_FILES.fix-paths+= salt/modules/postgres.py
SUBST_FILES.fix-paths+= salt/modules/tls.py
SUBST_FILES.fix-paths+= salt/utils/parsers.py
SUBST_FILES.fix-paths+= salt/utils/migrations.py
SUBST_SED.fix-paths+= -e "s|/etc/salt|${PKG_SYSCONFDIR}|g"
REPLACE_PYTHON+= salt/modules/munin.py
REPLACE_PYTHON+= salt/returners/sentry_return.py
RCD_SCRIPTS+= salt_master salt_minion
FILES_SUBST+= PYTHON=${PYTHONBIN:Q}
PKG_SYSCONFSUBDIR= salt
EGDIR= ${PREFIX}/share/examples/salt
INSTALLATION_DIRS+= ${EGDIR}
CONF_FILES+= ${EGDIR}/master ${PKG_SYSCONFDIR}/master
CONF_FILES+= ${EGDIR}/minion ${PKG_SYSCONFDIR}/minion
post-install:
${INSTALL_DATA} ${WRKSRC}/conf/master ${DESTDIR}${EGDIR}/
${INSTALL_DATA} ${WRKSRC}/conf/minion ${DESTDIR}${EGDIR}/
# Dependencies are documented at
# http://docs.saltstack.org/en/latest/topics/installation/index.html#dependencies
# Jinja2 is documented as an optional dependency, but it's small so we
# include it unconditionally.
#
# There's also an optional dependency on gcc, for Cython support, but
# we don't bother with that here.
#
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
DEPENDS+= zeromq>=2.1.9:../../net/zeromq
DEPENDS+= ${PYPKGPREFIX}-zmq>=2.1.9:../../net/py-zmq
DEPENDS+= ${PYPKGPREFIX}-m2crypto-[0-9]*:../../security/py-m2crypto
DEPENDS+= ${PYPKGPREFIX}-crypto-[0-9]*:../../security/py-crypto
DEPENDS+= ${PYPKGPREFIX}-msgpack-[0-9]*:../../devel/py-msgpack
DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
.include "../../mk/bsd.pkg.mk"
+1032
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.6 2013/06/15 15:04:39 imil Exp $
SHA1 (salt-0.15.3.tar.gz) = b1d1876ab44db16bd04551dbc770e6a0cf4a4f4e
RMD160 (salt-0.15.3.tar.gz) = fd48bf35d25a42e18da6dbe7d2ccc20b651c340a
Size (salt-0.15.3.tar.gz) = 3427038 bytes
SHA1 (patch-setup.py) = 15907268df5ee1d06e1c932dc84fd7701156519d
+20
View File
@@ -0,0 +1,20 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: salt_master.sh,v 1.2 2013/05/05 12:26:23 imil Exp $
#
# PROVIDE: salt_master
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="salt_master"
rcvar=$name
command="@PREFIX@/bin/salt-master"
command_args="-d"
command_interpreter=@PYTHON@
required_files="@PKG_SYSCONFDIR@/master"
load_rc_config $name
run_rc_command "$1"
+20
View File
@@ -0,0 +1,20 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: salt_minion.sh,v 1.2 2013/05/05 12:26:23 imil Exp $
#
# PROVIDE: salt_minion
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="salt_minion"
rcvar=$name
command="@PREFIX@/bin/salt-minion"
command_args="-d"
command_interpreter=@PYTHON@
required_files="@PKG_SYSCONFDIR@/minion"
load_rc_config $name
run_rc_command "$1"
+51
View File
@@ -0,0 +1,51 @@
$NetBSD: patch-setup.py,v 1.3 2013/04/28 09:46:25 imil Exp $
* Remove unused example_path and template_path;
* Set etc_path to the directory where configfiles will be
installed, which is PREFIX/share/examples, not /etc or
PKG_SYSCONFDIR. The files are copied to PKG_SYSCONFDIR
via the CONFIG_FILES setting in the pkgsrc Makefile.
* Install man pages in PKGMANDIR, not PREFIX/share/man.
--- setup.py.orig 2013-03-29 00:06:49.000000000 +0000
+++ setup.py
@@ -151,13 +151,15 @@ DESC = ('Portable, distributed, remote e
'configuration management system')
mod_path = os.path.join(get_python_lib(), 'salt/modules')
doc_path = os.path.join(PREFIX, 'share/doc', NAME + '-' + VER)
-example_path = os.path.join(doc_path, 'examples')
-template_path = os.path.join(example_path, 'templates')
-if 'SYSCONFDIR' in os.environ:
- etc_path = os.environ['SYSCONFDIR']
+# For pkgsrc:
+# * Do not define example_path, template_path, or etc_path; they are not used.
+# * man_path should be set to PKGMANDIR, defaulting to PREFIX/share/man.
+#
+if 'PKGMANDIR' in os.environ:
+ man_path = os.environ['PKGMANDIR']
else:
- etc_path = os.path.join(os.path.dirname(PREFIX), 'etc')
+ man_path = os.path.join(os.path.dirname(PREFIX), 'share/man')
with open(salt_reqs) as f:
lines = f.read().split('\n')
@@ -210,7 +212,7 @@ setup_kwargs = {'name': NAME,
'salt.utils',
],
'package_data': {'salt.modules': ['rh_ip/*.jinja']},
- 'data_files': [('share/man/man1',
+ 'data_files': [(os.path.join(man_path, 'man1'),
['doc/man/salt-master.1',
'doc/man/salt-key.1',
'doc/man/salt.1',
@@ -220,7 +222,8 @@ setup_kwargs = {'name': NAME,
'doc/man/salt-run.1',
'doc/man/salt-minion.1',
]),
- ('share/man/man7', ['doc/man/salt.7']),
+ (os.path.join(man_path, 'man7'),
+ ['doc/man/salt.7']),
],
# Required for esky builds
'install_requires': requirements,