summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Thode <prometheanfire@gentoo.org>2013-03-17 16:10:12 +0000
committerMatt Thode <prometheanfire@gentoo.org>2013-03-17 16:10:12 +0000
commitc0f94743583b8b5fc7c185b58c7706caed851d1b (patch)
tree5fd26c8ed000a9cdce2e6b8e2a93b48ca0575fe7 /app-admin
parentEAPI=5 and poppler subslot dependencies (diff)
downloadhistorical-c0f94743583b8b5fc7c185b58c7706caed851d1b.tar.gz
historical-c0f94743583b8b5fc7c185b58c7706caed851d1b.tar.bz2
historical-c0f94743583b8b5fc7c185b58c7706caed851d1b.zip
removing old vulnerable versions of puppet for bug 461656
Package-Manager: portage-2.1.11.52/cvs/Linux x86_64 Manifest-Sign-Key: 0x2471EB3E40AC5AC3
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/puppet/ChangeLog6
-rw-r--r--app-admin/puppet/Manifest34
-rw-r--r--app-admin/puppet/puppet-2.7.18.ebuild178
-rw-r--r--app-admin/puppet/puppet-2.7.19-r1.ebuild182
4 files changed, 20 insertions, 380 deletions
diff --git a/app-admin/puppet/ChangeLog b/app-admin/puppet/ChangeLog
index 3771b118e4c1..73e0e6a3d074 100644
--- a/app-admin/puppet/ChangeLog
+++ b/app-admin/puppet/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/puppet
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.151 2013/03/17 16:02:16 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.152 2013/03/17 16:10:02 prometheanfire Exp $
+
+ 17 Mar 2013; Matthew Thode <prometheanfire@gentoo.org> -puppet-2.7.18.ebuild,
+ -puppet-2.7.19-r1.ebuild:
+ removing old vulnerable versions of puppet for bug 461656
17 Mar 2013; Agostino Sarubbo <ago@gentoo.org> puppet-2.7.21.ebuild:
Stable for sparc, wrt bug #461656
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
index b1af8723687a..7a67a5816cb7 100644
--- a/app-admin/puppet/Manifest
+++ b/app-admin/puppet/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX 50puppet-mode-gentoo.el 217 SHA256 e70f8d26e2523d2d118a4944d11540807b48f59d75d878e6fa6aac606ece9a91 SHA512 3fbe7045df9ac9d30520020d4df454a03f02989bbcaa4bae0c632f86f6e6d3fd2eeb3bed84d864077c2b85b65586406525fa621a262ec363f53d714a093f6d1a WHIRLPOOL 60d02a9b70d418cb453d08c17fbeb1133a6ddd924ba18565e30f7c655f5abeebf71af6f17797d3045483ae8775c905efdc11396f4f9829ab2c6b95fbafc2584f
AUX puppet-2.7.18-eix_fix.patch 1370 SHA256 9414e985fe18c673256dbe5e654018de3d4f8c3c33765e873e1873da7d06a4d1 SHA512 7a5aa71c6ce987c95224c79be55a4b14b4c37aef3960e1aa34e96397564042192f30f8c9f935949768e33a7191ab3ae6335830c68e9bfb2d02c654dbfdbe1fd4 WHIRLPOOL e318b8f60d787bb7947598b91168b96c6d4886602f5f6b90db7336feac00fee61f0c8b3c4c60d0de25f7bc029172a8b10ab6ce1d2115df7755db4344ccd57a3a
@@ -11,30 +11,26 @@ AUX puppetmaster-2.7.6.init 867 SHA256 3fc62b4850ccd38517d9617671bef2a5d80414738
AUX puppetmaster-2.7.6.init-CVE-2012-6120 1066 SHA256 4f71739cef2abcc9bb861b744af6c88898032b8a44b145aa2ca1bb7121502c57 SHA512 05268387980aad5a0299aeca114c7285377ca1f1a91af9008366d37d21c64830c5db1b8a19f176eeb8239d616c0499996c6d0082e29de81d3945d3009fb30a90 WHIRLPOOL 8c753fc6a8bba8ec7dad5e02021d8e97e24044c3a90bb0d51682ffd9bfa5c3de6e31fae3154573f4fc2c8f72b622148f51b5f846612868b39257a0becfdc1a44
AUX puppetmaster.confd 640 SHA256 2245ae58a702618504257b690fd9b82b3562e7eaaa0d4ef2a96f918996249e8b SHA512 deb4004dd8448c503099a0cdfcbbfa8e2efed5dc088539bbce5c9db4337f2910b625598402b72db42d68a0a9b6d3570c18fb314f3c9406fa67f946c38c9bf44d WHIRLPOOL d0d14ac957978d59ee6b57b53d8d2e4f00a78ac2fc9d5c279457e326fcd08c30c3ad0f884f05580a4e80a00ba02af7496469eed96a91245b2bf3141494c56058
AUX puppetmaster.init 1099 SHA256 5dd4ebaa436718838a3c60adbc19cbb27723f5e0d4fb5f7ada0e4c9cbf361c42 SHA512 3037625bc5ee7f57f40a15942fbb35807432122efeaeea3baadeb9634e2a73effb24eda1475d34cacc0749f560bea3ddc139ece53c91898214e3f542e77486f9 WHIRLPOOL 08be166f2a2163d76616c2ea5fe5b61920e5e8ad0508245a78a3307850179e51bd244c0e91be472dc350bd57c7e45a3f83fa600af30c77a86b2268ebdd29afb5
-DIST puppet-2.7.18.gem 1920000 SHA256 147cd18ec39d2768bbc40f2735a84f770d9dde1b5679ba21f37edd6f7db19089 SHA512 e51c09baf2eee908f3b4ad1d90c252eb0eca3a1eb550522d0b612db919de305b724a13fdcc7abac51da31291b4a703b2478d2fc9ebfc5aa995ad677aabc42c83 WHIRLPOOL 9f2f4d30acfddd78f0d57ab0a58f400d6c1218e6f5e6541a5f224b9243f5ef5c2dee64bde5a69dff16df42242fa3f44ee226b4aa411a249fc8acafdd1ae17bf3
-DIST puppet-2.7.19.gem 1936384 SHA256 aaa225d83a8fe545a6bcd1b1b6c10373f9cec7c41e38caf56bd0d956892cf2f3 SHA512 3d003c22663226996aa6422d18af446768bd81b67e76e8d1aedf18430bb85df73c3695de9d49340e51f948f661f4c6e24bc83d9d428c9f10634219e01fd641b6 WHIRLPOOL 0ffd63338cc55c13f6bb49bf1487f3b890be04a5ce83939848bace35dd51ff4b01b93ddde146197888455cc65cf8fb4228056c749c7802cd471d9b43dcca5c8c
DIST puppet-2.7.21.gem 2031616 SHA256 a5eecdbe68cde5ebfd576a9af5ddb0c8c17dae224a7d0b3ec240ef54e6bd88a1 SHA512 638c188b945791fe86c1657343f9d7ec3ef7e86342c35e03dacfae4e99e63d8c09160dd1faf840f244b275e6a0aea3b969668debe9dc1b60cef68cb2513068b5 WHIRLPOOL a4bcb4181e57bda6aaf79fdd484903114e94dcf5196105203538d6d8a1bfefcd6db44f74cbef1c209b086d7b2bfab53d62069da1be034e6c35fe686fd00898bc
DIST puppet-3.1.1.tar.gz 1587190 SHA256 4401f6388bb96b1301a107f247af6fa558127d78467bb5cef1a1e0ff66b4463d SHA512 48759776b68f83a125a0c703ecc9ad3efe34f10e6cfd9ddcd9e596ff082c9f40bdb7e0489bf7eb0bb0ce8bdb4ad0ae87049d2ad3133e839d0a5a6caa8419074e WHIRLPOOL d7152ba5397edadba9784f3c1800c8cf31ddd547691b35567ad52a42e82e741256326d2ee0bccec0642e82f533ffb74babcaddf3a0ee54361626b875cc618b2f
-EBUILD puppet-2.7.18.ebuild 4712 SHA256 4172930670e5e1e40e2985824dd99247bf4c6befdc61e0865b3b4cef1317ceac SHA512 6b546e75814a9c8aef2944f89f802ca220c01db3dd970927ae4a12a13ac29e598e4bdb4930fbcf1b66022154959de25423ee2b4779931ae9f245300cc829ceb8 WHIRLPOOL df6770a6dbcd85add1b929ba369aee2ab8181adf2ac818d593c39dc36fcd899de717cf7517da0e09554efd0a5fbb14a0d69a1b587dc4d98bcc5b5d8366a7cf58
-EBUILD puppet-2.7.19-r1.ebuild 4782 SHA256 2e9e6e48347963a1072c3501e5fa1002047cc2cf88ff8b356f4f252d7dfca990 SHA512 ae457b0ca4fc5e3d3217592f505fd2145bd5dd5058d2b40bd3f65813215fa3caf1d64d091e94d952a594db2e577477ec1340d20278e920f8aa161dd8fc4a122a WHIRLPOOL 9d7816a5aa7fbb8fe3084e7336d40443bc643f92741a0e38d71efae7381deffc675658623130f65ff851aca18ec58a5a10e6c10f232cbc3315515550343dcdd8
EBUILD puppet-2.7.21.ebuild 4731 SHA256 bfe02b716ade3d16d07f1faed6f76b70e91f03a3c4bc75d80815a6963637af6c SHA512 6483b205b96b62ca29378b51bf188b6d0367b389ad4bac4afc5a5b86eb164764dee87da00e0027dbc17eb634ab938bc550b7b98019948cab14d9cbd4ccdb5e52 WHIRLPOOL c876e707366ec3d058db8ee696e3e3b781502b4f8b5da2c6416c1fa0979dd7a9ddcc3278c7dffdbc6c3ad3c8313b9f2036872461e1538595192192cdeb98a697
EBUILD puppet-3.1.1.ebuild 4232 SHA256 4830d8083f7adff8b38bc367225d8a514513cb90d8e31b11d9fe7d4b99b46c29 SHA512 384f9f6e82d306390d67b6516fc82a27cc336d6166147825888b35dc49237d34015877ff1b3bdea4cf283d3b3810e007ca66654caa303038986abc1a17cd13e4 WHIRLPOOL a88bd973a41fe9c6050fba047904650df11582e48a5cde27a2eb80b341cb6b79634a46de01ce85cc75755f266e3a8634028be470352585e79e0a9ccd9423d877
-MISC ChangeLog 24742 SHA256 bca3e352b7eec24ea781f702095a0e47ce8babaa384c95cf6709aaa6f9f65301 SHA512 d66d3641adea9d011b9c633a1b0d49fb16c088206bebfc145e780ed83db31c571e8b66fda77684bfd43e62c3a249cf3d483e403d727efdff86968dc2c3bbc05d WHIRLPOOL 005e0a4646af85b2e629497c7a2184a16bd09acd5da12230650526ccb3572fdb372471b9882973cfec498a0660e8bbc02fd08882c25554e5e1fa1cc97dc62484
+MISC ChangeLog 24922 SHA256 6ad2635bcd51b7b8bda89f93b00f2e72ea8d45524f821b0b78c25fada943d6b0 SHA512 f831947a42b5588a83999d0beab28e4f60d4bd72ee7423307fd52428573eed9a7f7a57d1f4245eac9a7e4739c5d368238346bfecd974c0ea4309b91e6386c81e WHIRLPOOL 4e3999774d7ee839ddaa3506a6aafb88fcdc50ad80937ddbf5c3d4bb7d271ca1b5252f497e2eb85e049eed1b2b0fb276746c03e0e5ecf755bf7ac51e763e9419
MISC metadata.xml 1178 SHA256 a2bacb8f1f7fe8ea72ecea2729a55402fdff8e88082295b8f27a96077328f83b SHA512 90c5f30845403e8eb5e2218617892d5cfd149deacea62c1ba8533a8773ff79d2e7f4d4b9ffea666237494e0f51fd02cba290d000902aa9811c39be4d8c564952 WHIRLPOOL c7067fd67fc94cdf4fb044428b9142019ef3ef9cb591b5354bc3da6604d54ad68eeb1388f19df40293e1a521f311dd5e447305a03a9a769afb1c96949f8cbe92
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCgAGBQJRReh6AAoJELp701BxlEWf0WMP/jvmd6azQKQmrWaPv8CF0f4t
-7v+yf/9+U5QDwN95GQdjw/fXPwa2iOASqc04DHWc3foAcoFPY6iC2dwuWW70Fd1a
-ZGbS5IPVlT88KzWi2xyhGWzqgQVR0pobaCroMrvx8UdYxo5EXLPYmdx6tv6YxXuQ
-y8e4YhZKa1PCyzYs/FTC3SPb8yJEF2X1k2WSpPzbauRG6fGDMLahFhKCsjryKZWc
-Qs9PBTTmEQ1iJV2kkqq+c6FiINXfPcq6oiDUq9DHJwfydeUI6AMKgeVvHyqLTFZL
-eLBDf4xmrymAWdNJ6oj0pODCj176yoIqB9lJopmiab8cEwWHMeeocWP7qPoMg1WW
-09KBf1HHWXGWuobIwTOtLPqIGqUKoYArAS85jEVEoDEeqJnIK550QtNbyLf4eJpO
-lmBKwVohqdzae4Xst9xFRqqADKLfXo6Ra80nsrQpSO4in223yvXqwLn17Tdscicr
-uvU2pbYGoD0xLaym7cLNZ0rDqRqAlZCRjoKM/1ywsKcd8FsUoXbGxtydnkCMg1w+
-NlLIXs/qY4vFLKdA1AtIgglECDFvmh3B8KMDOc7HPoYV5xyrm/3T8b1hU7KhEEHZ
-uLf8cRhBWH86wLX8uvIPYvPB16HdoDvJXXzHermjlwzbGRPhlho8+hmTYMuaw07h
-QHhgXCU48aw5iZTLZP6n
-=+f6V
+iQIcBAEBCAAGBQJRRerpAAoJECRx6z5ArFrDnDUP/3rOkkeL+VDSNfDuRVjsuEuU
+0TXPgfFUiMa0X9xB5p8nKY/ME/O6kRXvw6EoeKeAE65rN/aM6Z/Jb9eNdUbLylzn
+bWfe8ok5K9KC8qbOGS0DRDjrPh/spBE8yMgRw21P07eObEetN4xL2PknRptrIM0Q
+mawudA/AJhYq5o4/ICmGNRhopvGrYErckC4y31NFJ4S1Yh2Col44xcH3ZMpd9jK2
+5YaJ+okxJuGh6koBHOTEckZSrVgqjmztz0/eMruGfJln06kMIG+0tRNYd/q4nKow
+ND9DQxLBlebDW1ErDT/1uNY04lvXznJelgupi0vRuza+jHb/0Swk1RWGGXTMPjLn
+BRdKURyutHqOQz3ax6qAljEFZMJjKeMhWv0cKLMk6ArSXv95QYXDYDLucGepQu1o
+YDYUlMEu7lIm5Z0qfh1w/dLUJm4orFYPW/6V7gVTZA4Cy2Bvm1JJnlFE694HRHr5
+TWTXaZm/Q7Wpahh3POmCJh4gVEkDmOSns6WWgIcdh1EiVeH2HriSc4lDJsXWrvdC
+OdZHIMLPfT+lnxeifOyTSjyIv2Esnj8jfm7jGDA2N4KZNs/0H8SqvpWBG3E1E9bg
+GasnOuYXQxXj2j0Bz2d1bFTx7ItIDon+3O8PRqPUhHjEZbsUTPBk58b6bgoFIM9l
+BF+xnEp+hFyVhRFcacxD
+=E+Hc
-----END PGP SIGNATURE-----
diff --git a/app-admin/puppet/puppet-2.7.18.ebuild b/app-admin/puppet/puppet-2.7.18.ebuild
deleted file mode 100644
index cc0082fc5016..000000000000
--- a/app-admin/puppet/puppet-2.7.18.ebuild
+++ /dev/null
@@ -1,178 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-2.7.18.ebuild,v 1.7 2012/08/26 14:32:00 armin76 Exp $
-
-EAPI="4"
-# ruby19: dev-ruby/ruby-ldap has no ruby19
-#USE_RUBY="ruby18 ruby19 ree18"
-USE_RUBY="ruby18"
-
-RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_TASK_TEST="test"
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG* README*"
-
-inherit elisp-common xemacs-elisp-common eutils ruby-fakegem user
-
-DESCRIPTION="A system automation and configuration management software"
-HOMEPAGE="http://puppetlabs.com/"
-
-LICENSE="Apache-2.0 GPL-2"
-SLOT="0"
-IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite3 vim-syntax xemacs"
-KEYWORDS="amd64 hppa ppc sparc x86"
-
-ruby_add_rdepend "
- >=dev-ruby/facter-1.5.6
- augeas? ( dev-ruby/ruby-augeas )
- diff? ( dev-ruby/diff-lcs )
- doc? ( dev-ruby/rdoc )
- ldap? ( dev-ruby/ruby-ldap )
- shadow? ( dev-ruby/ruby-shadow )
- sqlite3? ( dev-ruby/sqlite3 )
- virtual/ruby-ssl"
-# couchdb? ( dev-ruby/couchrest )
-# mongrel? ( www-servers/mongrel )
-# rack? ( >=dev-ruby/rack-1 )
-# rails? (
-# dev-ruby/rails
-# >=dev-ruby/activerecord-2.1
-# )
-# stomp? ( dev-ruby/stomp )
-
-DEPEND="${DEPEND}
- emacs? ( virtual/emacs )
- xemacs? ( app-editors/xemacs )
- selinux? ( sec-policy/selinux-puppet )"
-RDEPEND="${RDEPEND}
- emacs? ( virtual/emacs )
- xemacs? ( app-editors/xemacs )
- rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
- selinux? (
- sys-libs/libselinux[ruby]
- sec-policy/selinux-puppet
- )
- >=app-portage/eix-0.18.0"
-
-SITEFILE="50${PN}-mode-gentoo.el"
-
-pkg_setup() {
- enewgroup puppet
- enewuser puppet -1 -1 /var/lib/puppet puppet
-}
-
-all_ruby_compile() {
- all_fakegem_compile
-
- if use emacs ; then
- elisp-compile ext/emacs/puppet-mode.el
- fi
-
- if use xemacs ; then
- # Create a separate version for xemacs to be able to install
- # emacs and xemacs in parallel.
- mkdir ext/xemacs
- cp ext/emacs/* ext/xemacs/
- xemacs-elisp-compile ext/xemacs/puppet-mode.el
- fi
-}
-
-each_fakegem_install() {
- ${RUBY} install.rb --destdir="${D}" install
-}
-
-all_ruby_install() {
- all_fakegem_install
-
- newinitd "${FILESDIR}"/puppet.init puppet
- doconfd conf/gentoo/conf.d/puppet
-
- # Initial configuration files
- insinto /etc/puppet
- # Bug #338439
- #doins conf/gentoo/puppet/*
- doins conf/redhat/puppet.conf
-
- # Location of log and data files
- keepdir /var/{run,log}/puppet
- fowners -R puppet:puppet /var/{run,log}/puppet
-
- if use minimal ; then
- rm "${ED}/usr/bin/puppetmasterd"
- rm "${ED}/etc/puppet/auth.conf"
- else
- newinitd "${FILESDIR}"/puppetmaster-2.7.6.init puppetmaster
- newconfd "${FILESDIR}"/puppetmaster-2.7.6.confd puppetmaster
-
- insinto /etc/puppet
- doins conf/redhat/fileserver.conf
-
- keepdir /etc/puppet/manifests
- keepdir /etc/puppet/modules
-
- keepdir /var/lib/puppet/ssl
- keepdir /var/lib/puppet/facts
- keepdir /var/lib/puppet/files
- fowners -R puppet:puppet /var/{run,log,lib}/puppet
- fi
-
- if use emacs ; then
- elisp-install ${PN} ext/emacs/puppet-mode.el*
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-
- if use xemacs ; then
- xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
- xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-
- if use ldap ; then
- insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
- fi
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim
- insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim
- fi
-
- # ext and examples files
- for f in $(find ext examples -type f) ; do
- docinto "$(dirname ${f})"; dodoc "${f}"
- done
- docinto conf; dodoc conf/namespaceauth.conf
-}
-
-pkg_postinst() {
- elog
- elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
- elog "cause puppet to hang while installing packages."
- elog
- elog "Puppet uses eix to get information about currently installed packages,"
- elog "so please keep the eix metadata cache updated so puppet is able to properly"
- elog "handle package installations."
- elog
- elog "Currently puppet only supports adding and removing services to the default"
- elog "runlevel, if you want to add/remove a service from another runlevel you may"
- elog "do so using symlinking."
- elog
-
- if [ \
- -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
- -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
- -f "${EPREFIX}/etc/puppet/puppetca.conf" \
- ] ; then
- elog
- elog "Please remove deprecated config files."
- elog " /etc/puppet/puppetca.conf"
- elog " /etc/puppet/puppetd.conf"
- elog " /etc/puppet/puppetmasterd.conf"
- elog
- fi
-
- use emacs && elisp-site-regen
- use xemacs && xemacs-elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
- use xemacs && xemacs-elisp-site-regen
-}
diff --git a/app-admin/puppet/puppet-2.7.19-r1.ebuild b/app-admin/puppet/puppet-2.7.19-r1.ebuild
deleted file mode 100644
index a50ed5d344cb..000000000000
--- a/app-admin/puppet/puppet-2.7.19-r1.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-2.7.19-r1.ebuild,v 1.7 2013/02/24 18:47:14 ago Exp $
-
-EAPI="4"
-USE_RUBY="ruby18 ruby19"
-
-RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_TASK_TEST="test"
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG* README*"
-
-inherit elisp-common xemacs-elisp-common eutils ruby-fakegem user
-
-DESCRIPTION="A system automation and configuration management software"
-HOMEPAGE="http://puppetlabs.com/"
-
-LICENSE="Apache-2.0 GPL-2"
-SLOT="0"
-IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite3 vim-syntax xemacs"
-KEYWORDS="amd64 hppa ppc sparc x86"
-
-ruby_add_rdepend "
- >=dev-ruby/facter-1.5.6
- augeas? ( dev-ruby/ruby-augeas )
- diff? ( dev-ruby/diff-lcs )
- doc? ( dev-ruby/rdoc )
- ldap? ( dev-ruby/ruby-ldap )
- shadow? ( dev-ruby/ruby-shadow )
- sqlite3? ( dev-ruby/sqlite3 )
- virtual/ruby-ssl"
-# couchdb? ( dev-ruby/couchrest )
-# mongrel? ( www-servers/mongrel )
-# rack? ( >=dev-ruby/rack-1 )
-# rails? (
-# dev-ruby/rails
-# >=dev-ruby/activerecord-2.1
-# )
-# stomp? ( dev-ruby/stomp )
-
-DEPEND="${DEPEND}
- ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
- emacs? ( virtual/emacs )
- xemacs? ( app-editors/xemacs )
- selinux? ( sec-policy/selinux-puppet )"
-RDEPEND="${RDEPEND}
- ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
- emacs? ( virtual/emacs )
- xemacs? ( app-editors/xemacs )
- rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
- selinux? (
- sys-libs/libselinux[ruby]
- sec-policy/selinux-puppet
- )
- >=app-portage/eix-0.18.0"
-
-SITEFILE="50${PN}-mode-gentoo.el"
-
-RUBY_PATCHES=(
- "${PN}-2.7.18-eix_fix.patch"
-)
-
-pkg_setup() {
- enewgroup puppet
- enewuser puppet -1 -1 /var/lib/puppet puppet
-}
-
-all_ruby_compile() {
- all_fakegem_compile
-
- if use emacs ; then
- elisp-compile ext/emacs/puppet-mode.el
- fi
-
- if use xemacs ; then
- # Create a separate version for xemacs to be able to install
- # emacs and xemacs in parallel.
- mkdir ext/xemacs
- cp ext/emacs/* ext/xemacs/
- xemacs-elisp-compile ext/xemacs/puppet-mode.el
- fi
-}
-
-each_fakegem_install() {
- ${RUBY} install.rb --destdir="${D}" install
-}
-
-all_ruby_install() {
- all_fakegem_install
-
- newinitd "${FILESDIR}"/puppet.init-r1 puppet
- doconfd conf/gentoo/conf.d/puppet
-
- # Initial configuration files
- insinto /etc/puppet
- # Bug #338439
- #doins conf/gentoo/puppet/*
- doins conf/redhat/puppet.conf
-
- # Location of log and data files
- keepdir /var/{run,log}/puppet
- fowners -R puppet:puppet /var/{run,log}/puppet
-
- if use minimal ; then
- rm "${ED}/usr/bin/puppetmasterd"
- rm "${ED}/etc/puppet/auth.conf"
- else
- newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
- newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
-
- insinto /etc/puppet
- doins conf/redhat/fileserver.conf
-
- keepdir /etc/puppet/manifests
- keepdir /etc/puppet/modules
-
- keepdir /var/lib/puppet/ssl
- keepdir /var/lib/puppet/facts
- keepdir /var/lib/puppet/files
- fowners -R puppet:puppet /var/{run,log,lib}/puppet
- fi
-
- if use emacs ; then
- elisp-install ${PN} ext/emacs/puppet-mode.el*
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-
- if use xemacs ; then
- xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
- xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-
- if use ldap ; then
- insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
- fi
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim
- insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim
- fi
-
- # ext and examples files
- for f in $(find ext examples -type f) ; do
- docinto "$(dirname ${f})"; dodoc "${f}"
- done
- docinto conf; dodoc conf/namespaceauth.conf
-}
-
-pkg_postinst() {
- elog
- elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
- elog "cause puppet to hang while installing packages."
- elog
- elog "Puppet uses eix to get information about currently installed packages,"
- elog "so please keep the eix metadata cache updated so puppet is able to properly"
- elog "handle package installations."
- elog
- elog "Currently puppet only supports adding and removing services to the default"
- elog "runlevel, if you want to add/remove a service from another runlevel you may"
- elog "do so using symlinking."
- elog
-
- if [ \
- -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
- -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
- -f "${EPREFIX}/etc/puppet/puppetca.conf" \
- ] ; then
- elog
- elog "Please remove deprecated config files."
- elog " /etc/puppet/puppetca.conf"
- elog " /etc/puppet/puppetd.conf"
- elog " /etc/puppet/puppetmasterd.conf"
- elog
- fi
-
- use emacs && elisp-site-regen
- use xemacs && xemacs-elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
- use xemacs && xemacs-elisp-site-regen
-}