[arch-commits] Commit in puppet/repos (4 files)
Christian Rebischke
shibumi at archlinux.org
Sat Nov 3 11:39:44 UTC 2018
Date: Saturday, November 3, 2018 @ 11:39:43
Author: shibumi
Revision: 401340
db-move: moved puppet from [community-staging] to [community-testing] (any)
Added:
puppet/repos/community-testing-any/
puppet/repos/community-testing-any/PKGBUILD
(from rev 401339, puppet/repos/community-staging-any/PKGBUILD)
puppet/repos/community-testing-any/puppet.install
(from rev 401339, puppet/repos/community-staging-any/puppet.install)
Deleted:
puppet/repos/community-staging-any/
----------------+
PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
puppet.install | 5 ++++
2 files changed, 63 insertions(+)
Copied: puppet/repos/community-testing-any/PKGBUILD (from rev 401339, puppet/repos/community-staging-any/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-11-03 11:39:43 UTC (rev 401340)
@@ -0,0 +1,58 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Greg Sutcliffe <puppet-aur (at) emeraldreverie (dot) org>
+# Contributor: Hyacinthe Cartiaux <hyacinthe (dot) cartiaux (at) free (dot) fr>
+# Contributor: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
+# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Contributor: Miah Johnson <miah (at) chia-pet dot org>
+# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
+# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com>
+
+pkgname=puppet
+pkgver=6.0.3
+pkgrel=1
+pkgdesc="Server automation framework and application"
+arch=('any')
+url="https://puppet.com/products/open-source-projects"
+license=('Apache')
+depends=('facter' 'hiera' 'ruby-semantic_puppet')
+optdepends=('ruby-shadow: user password management')
+backup=('etc/puppetlabs/puppet/auth.conf'
+ 'etc/puppetlabs/puppet/puppet.conf')
+install=$pkgname.install
+source=(https://downloads.puppetlabs.com/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('707c0769e4487b07f1b2f8a28f4d8359')
+conflicts=('puppet5')
+provides=('puppet')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # FS#45044: fix file location
+ sed -i 's_/opt/puppetlabs/puppet_/usr_' ext/systemd/puppet.service
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ ruby install.rb --destdir="$pkgdir" --sitelibdir="$( ruby -e \
+ 'puts RbConfig::CONFIG["vendorlibdir"]' )"
+
+ install -d "$pkgdir"/usr/lib/{sysusers.d,tmpfiles.d}
+
+ echo 'u puppet 52 "Puppet" /var/lib/puppet' > \
+ "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf
+ echo "d /run/puppetlabs 0755 $pkgname $pkgname -" > \
+ "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+
+ # systemd
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/ext/systemd/$pkgname.service \
+ "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # Match permissions that puppet sets when running
+ install -dm775 "$pkgdir"/var/lib/puppet
+ chmod 750 "$pkgdir"/var/log/puppetlabs/puppet
+
+ rm -r "$pkgdir"/var/run
+}
Copied: puppet/repos/community-testing-any/puppet.install (from rev 401339, puppet/repos/community-staging-any/puppet.install)
===================================================================
--- community-testing-any/puppet.install (rev 0)
+++ community-testing-any/puppet.install 2018-11-03 11:39:43 UTC (rev 401340)
@@ -0,0 +1,5 @@
+pre_remove() {
+ if [[ -f /run/puppetlabs/agent.pid ]]; then
+ systemctl stop puppet
+ fi
+}
More information about the arch-commits
mailing list