[arch-commits] Commit in salt/repos/community-any (6 files)

Morten Linderud foxboron at archlinux.org
Sat Jun 26 10:05:57 UTC 2021


    Date: Saturday, June 26, 2021 @ 10:05:56
  Author: foxboron
Revision: 967529

archrelease: copy trunk to community-any

Added:
  salt/repos/community-any/PKGBUILD
    (from rev 967528, salt/trunk/PKGBUILD)
  salt/repos/community-any/salt.install
    (from rev 967528, salt/trunk/salt.install)
  salt/repos/community-any/salt.logrotate
    (from rev 967528, salt/trunk/salt.logrotate)
Deleted:
  salt/repos/community-any/PKGBUILD
  salt/repos/community-any/salt.install
  salt/repos/community-any/salt.logrotate

----------------+
 PKGBUILD       |  158 ++++++++++++++++++++++++++++---------------------------
 salt.install   |   44 +++++++--------
 salt.logrotate |   24 ++++----
 3 files changed, 115 insertions(+), 111 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-26 10:05:44 UTC (rev 967528)
+++ PKGBUILD	2021-06-26 10:05:56 UTC (rev 967529)
@@ -1,77 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Sébastien Luttringer
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Christer Edwards <christer.edwards at gmail.com>
-# Contributor: zer0def <zer0def at github>
-
-pkgname=salt
-pkgver=3003.1
-pkgrel=1
-
-pkgdesc='Central system and configuration manager'
-arch=('any')
-url='http://saltstack.org/'
-license=('Apache')
-
-replaces=('salt-zmq' 'salt-raet')
-conflicts=('salt-zmq' 'salt-raet')
-
-depends=('python-jinja'
-         'python-msgpack'
-         'python-yaml'
-         'python-markupsafe'
-         'python-requests'
-         'python-pyzmq'
-         'python-m2crypto'
-         'python-systemd'
-         'python-distro'
-         'python-pycryptodomex')
-optdepends=('dmidecode: decode SMBIOS/DMI tables'
-            'python-pygit2: gitfs support')
-#checkdepends=('python-pytest' 'python-psutil')
-
-backup=('etc/logrotate.d/salt'
-        'etc/salt/master'
-        'etc/salt/minion')
-
-install=salt.install
-source=("https://pypi.io/packages/source/s/salt/salt-$pkgver.tar.gz"
-        salt.logrotate)
-
-sha256sums=('8a7184d3de4d1727618f0d3fbba79e54389aeff85b72f4ceb8200bcc167f6ebe'
-            'abecc3c1be124c4afffaaeb3ba32b60dfee8ba6dc32189edfa2ad154ecb7a215')
-
-build() {
-  cd salt-$pkgver
-  python setup.py build
-}
-
-# TODO: Missing salt-factories, pytest-tempdir
-# check() {
-#   cd salt-$pkgver
-#   python setup.py install --root="$PWD/tmp_install" --optimize=1
-#   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
-# }
-
-package() {
-  install -Dm644 salt.logrotate "$pkgdir"/etc/logrotate.d/salt
-
-  cd salt-$pkgver
-
-  export PYTHONHASHSEED=0
-  python setup.py --salt-pidfile-dir="/run/salt" install --root="$pkgdir" --optimize=1 --skip-build
-
-  # default config
-  install -Dm644 conf/master "$pkgdir/etc/salt/master"
-  install -Dm644 conf/minion "$pkgdir/etc/salt/minion"
-
-  # systemd services
-  for _svc in salt-master.service salt-syndic.service salt-minion.service salt-api.service; do
-    install -Dm644 pkg/$_svc "$pkgdir/usr/lib/systemd/system/$_svc"
-  done
-  install -Dm644 pkg/salt.bash "$pkgdir/usr/share/bash-completion/completions/salt"
-  install -Dm644 pkg/zsh_completion.zsh "$pkgdir/usr/share/zsh/site-functions/_salt"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: salt/repos/community-any/PKGBUILD (from rev 967528, salt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-26 10:05:56 UTC (rev 967529)
@@ -0,0 +1,81 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Christer Edwards <christer.edwards at gmail.com>
+# Contributor: zer0def <zer0def at github>
+
+pkgname=salt
+pkgver=3003.1
+pkgrel=2
+
+pkgdesc='Central system and configuration manager'
+arch=('any')
+url='http://saltstack.org/'
+license=('Apache')
+
+replaces=('salt-zmq' 'salt-raet')
+conflicts=('salt-zmq' 'salt-raet')
+
+depends=('python-jinja'
+         'python-msgpack'
+         'python-yaml'
+         'python-markupsafe'
+         'python-requests'
+         'python-pyzmq'
+         'python-m2crypto'
+         'python-systemd'
+         'python-distro'
+         'python-pycryptodomex')
+optdepends=('dmidecode: decode SMBIOS/DMI tables'
+            'python-pygit2: gitfs support')
+#checkdepends=('python-pytest' 'python-psutil')
+
+backup=('etc/logrotate.d/salt'
+        'etc/salt/master'
+        'etc/salt/minion')
+
+install=salt.install
+source=("https://pypi.io/packages/source/s/salt/salt-$pkgver.tar.gz"
+        salt.logrotate)
+
+sha256sums=('8a7184d3de4d1727618f0d3fbba79e54389aeff85b72f4ceb8200bcc167f6ebe'
+            'abecc3c1be124c4afffaaeb3ba32b60dfee8ba6dc32189edfa2ad154ecb7a215')
+
+prepare() {
+  sed -i '/^contextvars/d' $pkgname-$pkgver/requirements/base.txt
+}
+
+build() {
+  cd salt-$pkgver
+  python setup.py build
+}
+
+# TODO: Missing salt-factories, pytest-tempdir
+# check() {
+#   cd salt-$pkgver
+#   python setup.py install --root="$PWD/tmp_install" --optimize=1
+#   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
+# }
+
+package() {
+  install -Dm644 salt.logrotate "$pkgdir"/etc/logrotate.d/salt
+
+  cd salt-$pkgver
+
+  export PYTHONHASHSEED=0
+  python setup.py --salt-pidfile-dir="/run/salt" install --root="$pkgdir" --optimize=1 --skip-build
+
+  # default config
+  install -Dm644 conf/master "$pkgdir/etc/salt/master"
+  install -Dm644 conf/minion "$pkgdir/etc/salt/minion"
+
+  # systemd services
+  for _svc in salt-master.service salt-syndic.service salt-minion.service salt-api.service; do
+    install -Dm644 pkg/$_svc "$pkgdir/usr/lib/systemd/system/$_svc"
+  done
+  install -Dm644 pkg/salt.bash "$pkgdir/usr/share/bash-completion/completions/salt"
+  install -Dm644 pkg/zsh_completion.zsh "$pkgdir/usr/share/zsh/site-functions/_salt"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: salt.install
===================================================================
--- salt.install	2021-06-26 10:05:44 UTC (rev 967528)
+++ salt.install	2021-06-26 10:05:56 UTC (rev 967529)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-post_upgrade() {
-  if [[ "$(vercmp $2 2014.1.1-1)" -le 0 ]]; then
-    cat << EOF
-==> Since version 2014.1.1-2, salt-master runs by default as root user.
-==> You need to manually update your configuration and remove the salt user and
-==> group to follow the new default behavior.
-EOF
-  fi
-
-  if [[ "$(vercmp $2 2016.3.3-1)" -le 0 ]]; then
-    cat << EOF
-==> Since version 2016.3.3-2 RAET is no longer supported.  Please switch to either
-==> zeromq or tcp for transport instead.
-EOF
-  fi
-}
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: salt/repos/community-any/salt.install (from rev 967528, salt/trunk/salt.install)
===================================================================
--- salt.install	                        (rev 0)
+++ salt.install	2021-06-26 10:05:56 UTC (rev 967529)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  if [[ "$(vercmp $2 2014.1.1-1)" -le 0 ]]; then
+    cat << EOF
+==> Since version 2014.1.1-2, salt-master runs by default as root user.
+==> You need to manually update your configuration and remove the salt user and
+==> group to follow the new default behavior.
+EOF
+  fi
+
+  if [[ "$(vercmp $2 2016.3.3-1)" -le 0 ]]; then
+    cat << EOF
+==> Since version 2016.3.3-2 RAET is no longer supported.  Please switch to either
+==> zeromq or tcp for transport instead.
+EOF
+  fi
+}
+
+# vim:set ts=2 sw=2 ft=sh et:

Deleted: salt.logrotate
===================================================================
--- salt.logrotate	2021-06-26 10:05:44 UTC (rev 967528)
+++ salt.logrotate	2021-06-26 10:05:56 UTC (rev 967529)
@@ -1,12 +0,0 @@
-/var/log/salt/master
-/var/log/salt/minion
-/var/log/salt/key
-/var/log/salt/cloud
-/var/log/salt/ssh
- {
-  compress
-  copytruncate
-  missingok
-  notifempty
-  rotate 7
-}

Copied: salt/repos/community-any/salt.logrotate (from rev 967528, salt/trunk/salt.logrotate)
===================================================================
--- salt.logrotate	                        (rev 0)
+++ salt.logrotate	2021-06-26 10:05:56 UTC (rev 967529)
@@ -0,0 +1,12 @@
+/var/log/salt/master
+/var/log/salt/minion
+/var/log/salt/key
+/var/log/salt/cloud
+/var/log/salt/ssh
+ {
+  compress
+  copytruncate
+  missingok
+  notifempty
+  rotate 7
+}




More information about the arch-commits mailing list