Skip to content

Commit

Permalink
Split Package and depend on what's already in AUR
Browse files Browse the repository at this point in the history
- ruby-hiera already in aur
- ruby-hiera-json already in aur

Updated provides:
- package puppet (ofcourse)
- package vim-puppet (we ship vim files)
- package ruby-hiera-puppet (no need puppet3 provides ruby-hiera-puppet)

Updated conflicts:
with corresponding packages from above.
  • Loading branch information
aboe76 authored and GregSutcliffe committed Nov 19, 2012
1 parent a7d2ba2 commit d3057f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 52 deletions.
32 changes: 6 additions & 26 deletions puppet/PKGBUILD
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,37 +15,27 @@


pkgname=puppet pkgname=puppet
pkgver=3.0.1 pkgver=3.0.1
pkgrel=3 pkgrel=4
_hieraver=1.1.1
pkgdesc="A system for automating system administration tasks." pkgdesc="A system for automating system administration tasks."
arch=("any") arch=("any")
url="http://puppetlabs.com/projects/puppet/" url="http://puppetlabs.com/projects/puppet/"
license=("APACHE") license=("APACHE")
depends=("ruby" "ruby-shadow" "facter") depends=("ruby" "ruby-shadow" "facter" "ruby-hiera" "ruby-hiera-json")
optdepends=("ruby-augeas")
backup=("etc/puppet/puppet.conf") backup=("etc/puppet/puppet.conf")
options=(emptydirs) options=(emptydirs)
provides=("puppet") provides=("puppet" "vim-puppet" "ruby-hiera-puppet")
conflicts=("puppet3") conflicts=("puppet3" "ruby-puppet" "vim-puppet" "ruby-hiera-puppet")
install="puppet.install" install="puppet.install"
source=(http://puppetlabs.com/downloads/puppet/puppet-${pkgver//_/-}.tar.gz source=(http://puppetlabs.com/downloads/puppet/puppet-${pkgver//_/-}.tar.gz
http://downloads.puppetlabs.com/hiera/hiera-puppet-1.0.0rc3.tar.gz
http://downloads.puppetlabs.com/hiera/hiera-${_hieraver}.tar.gz
http://downloads.puppetlabs.com/hiera/hiera-json-0.4.0.tgz
fileserver.conf fileserver.conf
puppet puppet
puppet.conf puppet.conf
puppetmaster puppetmaster)
hiera.yaml)
md5sums=('2117e3a1964ac54fcd36d926eed3db94' md5sums=('2117e3a1964ac54fcd36d926eed3db94'
'6829fb5735e179b90b0491971d9b46a8'
'20f485d09d5ab39e6d4e4f27e0dd97af'
'389be2d95502d41d26da330207a33db3'
'ffacd9bfb9c7656a3a345dbc5eb0e67a' 'ffacd9bfb9c7656a3a345dbc5eb0e67a'
'59dbf39e251bc4877e7604a5876c642d' '59dbf39e251bc4877e7604a5876c642d'
'a7d61d20e46b411eb50ad5279987584a' 'a7d61d20e46b411eb50ad5279987584a'
'4c507c580cb28d7a5adc9ea6b3626657' '4c507c580cb28d7a5adc9ea6b3626657')
'c2f380cdcffab3956fe9f6e261d6ea32')


package() { package() {
cd $srcdir/puppet-${pkgver//_/-} cd $srcdir/puppet-${pkgver//_/-}
Expand All @@ -57,15 +47,6 @@ package() {
--sbindir=/usr/sbin \ --sbindir=/usr/sbin \
--mandir=/usr/share/man --mandir=/usr/share/man


# Hiera is essential for Puppet3
install -d $pkgdir/usr/lib/ruby/site_ruby/1.9.1/lib/
cp -r $srcdir/hiera-${_hieraver}/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
cp -r $srcdir/hiera-json-0.4.0/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
cp -r $srcdir/hiera-json-0.4.0/spec* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/hiera/backend/
cp -r $srcdir/hiera-puppet-1.0.0rc3/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
install -d $pkgdir/usr/bin/
install -Dp -m0755 $srcdir/hiera-${_hieraver}/bin/* $pkgdir/usr/bin/
install -Dp -m0755 $srcdir/hiera-puppet-1.0.0rc3/bin/* $pkgdir/usr/bin/


# Set up vim and emacs # Set up vim and emacs
install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim
Expand All @@ -83,7 +64,6 @@ package() {
echo "D /var/run/puppet 0755 puppet puppet -" > $pkgdir/etc/tmpfiles.d/puppet.conf echo "D /var/run/puppet 0755 puppet puppet -" > $pkgdir/etc/tmpfiles.d/puppet.conf


# Configuration for hiera / symlink is there to use hiera within puppet. # Configuration for hiera / symlink is there to use hiera within puppet.
install -m 644 $srcdir/hiera.yaml $pkgdir/etc/
ln -snf /etc/hiera.yaml ${pkgdir}/etc/puppet/hiera.yaml ln -snf /etc/hiera.yaml ${pkgdir}/etc/puppet/hiera.yaml


# Systemd files # Systemd files
Expand Down
26 changes: 0 additions & 26 deletions puppet/hiera.yaml

This file was deleted.

0 comments on commit d3057f7

Please sign in to comment.