summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2009-01-01 03:04:10 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2009-01-01 03:04:10 +0000
commit002c57e3a220622fbcc543bff87e275ac64530b8 (patch)
tree516745192f842d481c4aa0b9d6c763f92acd7463 /app-admin
parentRemoved old version. (diff)
downloadhistorical-002c57e3a220622fbcc543bff87e275ac64530b8.tar.gz
historical-002c57e3a220622fbcc543bff87e275ac64530b8.tar.bz2
historical-002c57e3a220622fbcc543bff87e275ac64530b8.zip
Removed old versions.
Package-Manager: portage-2.1.6.4/cvs/Linux 2.6.28-gentoo x86_64
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/puppet/ChangeLog9
-rw-r--r--app-admin/puppet/Manifest8
-rw-r--r--app-admin/puppet/files/puppet-0.24.5-eix-0.14.0.patch12
-rw-r--r--app-admin/puppet/puppet-0.24.5-r4.ebuild149
-rw-r--r--app-admin/puppet/puppet-0.24.6-r1.ebuild149
-rw-r--r--app-admin/puppet/puppet-0.24.7.ebuild141
6 files changed, 8 insertions, 460 deletions
diff --git a/app-admin/puppet/ChangeLog b/app-admin/puppet/ChangeLog
index 83fd89c11397..b7c8386e5b9b 100644
--- a/app-admin/puppet/ChangeLog
+++ b/app-admin/puppet/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/puppet
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.33 2008/12/23 16:49:41 matsuu Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.34 2009/01/01 03:04:10 matsuu Exp $
+
+ 01 Jan 2009; MATSUU Takuto <matsuu@gentoo.org>
+ -files/puppet-0.24.5-eix-0.14.0.patch, -puppet-0.24.5-r4.ebuild,
+ -puppet-0.24.6-r1.ebuild, -puppet-0.24.7.ebuild:
+ Removed old versions.
*puppet-0.24.7-r1 (23 Dec 2008)
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
index ba0acc5ddd56..e6f56c246f08 100644
--- a/app-admin/puppet/Manifest
+++ b/app-admin/puppet/Manifest
@@ -1,19 +1,13 @@
AUX 50puppet-mode-gentoo.el 257 RMD160 c8ee412f60fed83c44091bb56d18e200bb0c7e03 SHA1 208a9a008dec0de89839c71e4d3a86c08be6931d SHA256 1dbae981327dd736b9e0b0a63be0bc6bf662eeb51506da60394f9c9a9b314fde
AUX puppet-0.24.2-gentoo.patch 628 RMD160 9149d2b68a82a87dc4bcdae3ef5608ca0f152973 SHA1 d7bd432ef27be9dc14dc4e37b8302659caa0f3f4 SHA256 abc592df144baec0c93cc90459ab273fe2aec9f195670ca5dba5d8bc4e6ee886
AUX puppet-0.24.4-openrc_initd.patch 624 RMD160 1cc74a411a961f13e752fb2f05a21f102118e220 SHA1 3fa676dd62d7e7efffbd1888effe6b19d18b3d95 SHA256 c723c1f2bb56e6013b8d4deeba0ce73c7c798508d4425dbd18a280719babeb0b
-AUX puppet-0.24.5-eix-0.14.0.patch 1285 RMD160 a5d3894afb3f026e0f44a3bfbcab3d9157f52b7c SHA1 f072684527a9b6b30e7c8fb7dd7d833a58d33a9c SHA256 59c71450f000175c1c11c8844ce837c643ea039ecd0b4545b38a1b50634a0dbd
AUX puppet-0.24.6-eix.patch 2228 RMD160 a2465eba3775cacb54d9e20f97efd6cbb3e91627 SHA1 17e828e676d6e8f6abd7b008ca250e69557b2ea9 SHA256 d822a12eaaa6eaf8316fe04fc6c9b654f0427e4d80fb6c5cd15ca2a7368bb754
AUX puppet.init 893 RMD160 419bbfebadf6c98bc27930b6eb4583b6fc8129c4 SHA1 9f1a1979a74c4130c08857275952b8749a5f0c38 SHA256 220b2723769110e644e984babb5a19657f1b9e062edd70c60e87a86146ada6c9
AUX puppetmaster.confd 279 RMD160 64824fc2c88d9069b25d0548fac5981f1ff4fa6b SHA1 d521616310e7a27986c27138bd4d4382238d609a SHA256 6db68d9e093d3d231c8ad35968e8d276f68cdd7aec8577b3f7ac2998d1f91692
AUX puppetmaster.init 976 RMD160 2f3ba179a2642b17e82bedf86765bf9cfe7fd5bc SHA1 e5fcf58f85ddde9dc2599c87b5698622559146e9 SHA256 d3754a931b63939dd030feef4d18b12cd1b9a4d66b8b3dc7645e349fa5115666
DIST puppet-0.24.4.tgz 652572 RMD160 e675d27216dfeb3717c8140d3c89625e6be351e9 SHA1 e79671d8765e08df93c6a4c76b198467c3e13a7a SHA256 0d54f6db7cf1210d123264bcb35b07b36837ebc12a4f2bd01aee6127836adfb9
-DIST puppet-0.24.5.tgz 872803 RMD160 be85ce18ce6a56939eaf83c60cc55d1c5134ef36 SHA1 fe3d63bf30169eb6ec2b30e43d489a51bb36d090 SHA256 0b5ff82b06699a5d10b2ee6e995f427b76540cc0e67ffa8243ee6fc03d8e641d
-DIST puppet-0.24.6.tgz 894124 RMD160 5fba245b7dcd196f734558ab8bc00a3637dc49fc SHA1 2deaf43934c149430dec46d97af17aa4afc41442 SHA256 1cf0f7914b6ed13314bff2f517a42fd224ef24bd99b46e323d2bc793fe58b936
DIST puppet-0.24.7.tgz 1088422 RMD160 fc5da816355878712cddc302ea964dfddcf7bf64 SHA1 37f40b920666b1cb73adedc66abcb3cfee43aae7 SHA256 1107006f89980d5e1b9e905db25616beb5f92261e3ee1f661f5baeb838c1be32
EBUILD puppet-0.24.4.ebuild 3395 RMD160 1fb3c6d7f30c5c8e7b60677ec88f3a4783290253 SHA1 af75f2fa63d3d65d49d60dddeaf5093177d26468 SHA256 fa7b1964961008b3585cfc29b09204248cc9fcb3fde881f3c79e1ec8a520f4a8
-EBUILD puppet-0.24.5-r4.ebuild 4038 RMD160 3140da785fd0365a65b263197342963fcac3f037 SHA1 dd68af46e22eaf8423c0a99d60488547771caa98 SHA256 90405e56b976ac3752d50ca4f906880a8800310aa369eb87bbe9ab6c7131e2a1
-EBUILD puppet-0.24.6-r1.ebuild 4031 RMD160 a81502558f0f80857f031d6ee785b786a336fe51 SHA1 bbaa81b061844534e79790712fdd1acb59c5d016 SHA256 785f7d3807421a8941e468cd607338c4a02379b7acfa68c2b3881921d88cb6e7
EBUILD puppet-0.24.7-r1.ebuild 3991 RMD160 cd8019049a7c4ce6e80e19acc4f00a32a5c33912 SHA1 ee78d6d8edfe4e0a973eac9efb5cd42d39cfeaae SHA256 6e47537fdceb775d0a38211030b925ae771cc482dbebf358201314f5ba501f4f
-EBUILD puppet-0.24.7.ebuild 3900 RMD160 c0f4b7c509c3e0c3626fb965129f008cc82fc524 SHA1 9d3df12eb5e82f03e4230fc53d9bf76d8482745a SHA256 b96a504cac425253da72ce850d8ac129dc2b6e777ffdda2afbfc816873ae8477
-MISC ChangeLog 6516 RMD160 057b652ad8623fd5ee601ee596d3ae75ba882648 SHA1 069e3648b0b55368cc69d4025c2ef398c24e5b83 SHA256 ff86eb2029021cb873b26dac0a7cf3ee3b721ab4c02e38e0cba171e77acfcd3c
+MISC ChangeLog 6708 RMD160 3652ddb8a9d1b36b0b5cd3d274bed79917b6062f SHA1 5f261708eff513ee064c040ce92e720d6669e9f0 SHA256 3e4a15e2ca9de7b73dbfc20fb0b1b337aa9bac377fd57f74ce9f08b539d86ce1
MISC metadata.xml 1002 RMD160 172f4fc2883017a49b71d7e48c558bbc6c54770b SHA1 0386fcc01ff39593cf1755051a3d1283e6b4f2b7 SHA256 eb49ad59455c53c1666eeca292c0670b399968f9e10e9017b88f1e206098f8a5
diff --git a/app-admin/puppet/files/puppet-0.24.5-eix-0.14.0.patch b/app-admin/puppet/files/puppet-0.24.5-eix-0.14.0.patch
deleted file mode 100644
index 416d8f25ecbc..000000000000
--- a/app-admin/puppet/files/puppet-0.24.5-eix-0.14.0.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur puppet-0.24.5.orig/lib/puppet/provider/package/portage.rb puppet-0.24.5/lib/puppet/provider/package/portage.rb
---- puppet-0.24.5.orig/lib/puppet/provider/package/portage.rb 2008-07-08 22:46:19.000000000 +0900
-+++ puppet-0.24.5/lib/puppet/provider/package/portage.rb 2008-10-03 01:45:15.000000000 +0900
-@@ -10,7 +10,7 @@
- defaultfor :operatingsystem => :gentoo
-
- def self.instances
-- result_format = /(\S+) (\S+) \[(?:([0-9.a-zA-Z]+(?:_(?:alpha|beta|pre|rc|p)[0-9]*)*(?:-r[0-9]*)?)(?:\([^\)]+\))?(?:\[([^\]]+)\])?[ ]*)*\] \[(?:(?:\{M\})?(?:\([~*]+\))?([0-9.a-zA-Z]+(?:_(?:alpha|beta|pre|rc|p)[0-9]*)*(?:-r[0-9]*)?)(?:\(([^\)]+)\))?(?:![mf])*(?:\[([^\]]+)\])?)?\] ([\S]*) (.*)/
-+ result_format = /(\S+) (\S+) \[(?:([0-9.a-zA-Z]+(?:_(?:alpha|beta|pre|rc|p)[0-9]*)*(?:-r[0-9]*)?)(?:\([^\)]+\))?(?:\[([^\]]+)\])?[ ]*)*\] \[(?:(?:\{M\})?(?:\([~*]+\))?([0-9.a-zA-Z]+(?:_(?:alpha|beta|pre|rc|p)[0-9]*)*(?:-r[0-9]*)?)(?:\(([^\)]+)\))?(?:\+[ilvs]|![fmpbstuid])*(?:\[([^\]]+)\])?)?\] ([\S]*) (.*)/
- result_fields = [:category, :name, :ensure, :ensure_overlay, :version_available, :slot, :overlay, :vendor, :description]
-
- search_format = "{installedversionsshort}<category> <name> [<installedversionsshort>] [<best>] <homepage> <description>{}"
diff --git a/app-admin/puppet/puppet-0.24.5-r4.ebuild b/app-admin/puppet/puppet-0.24.5-r4.ebuild
deleted file mode 100644
index d997a22e1b67..000000000000
--- a/app-admin/puppet/puppet-0.24.5-r4.ebuild
+++ /dev/null
@@ -1,149 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.5-r4.ebuild,v 1.2 2008/12/02 16:46:09 matsuu Exp $
-
-inherit elisp-common eutils ruby
-
-DESCRIPTION="A system automation and configuration management software"
-HOMEPAGE="http://reductivelabs.com/projects/puppet/index.html"
-SRC_URI="http://reductivelabs.com/downloads/${PN}/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="emacs ldap rrdtool vim-syntax"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-DEPEND="emacs? ( virtual/emacs )
- >=dev-ruby/facter-1.1.0"
-RDEPEND="${DEPEND}
- >=app-portage/eix-0.9.4
- ldap? ( dev-ruby/ruby-ldap )
- rrdtool? (
- || (
- >=net-analyzer/rrdtool-1.2.23
- dev-ruby/ruby-rrd
- )
- )"
-# || (
-# www-servers/webrick
-# www-servers/mongrel
-# )
-# dev-ruby/diff-lcs
-# dev-ruby/rails
-# dev-ruby/ruby-shadow
-
-USE_RUBY="ruby18 ruby19"
-
-SITEFILE="50${PN}-mode-gentoo.el"
-
-pkg_setup() {
- built_with_use virtual/ruby ipv6 || \
- die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run"
-
- built_with_use virtual/ruby ssl || \
- die "Ruby must be built with ssl support, otherwise puppet will not be able to run"
-
- if use rrdtool && \
- has_version '>=net-analyzer/rrdtool-1.2.23' && \
- ! built_with_use '>=net-analyzer/rrdtool-1.2.23' ruby
- then
- die "net-analyzer/rrdtool must be built with ruby USE flag."
- fi
-
- enewgroup puppet
- enewuser puppet -1 -1 /var/lib/puppet puppet
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-0.24.2-gentoo.patch"
- epatch "${FILESDIR}/${P}-eix-0.14.0.patch"
-}
-
-src_compile() {
- if use emacs ; then
- elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
- fi
-}
-
-src_install() {
- DESTDIR="${D}" ruby_einstall "$@" || die
- DESTDIR="${D}" erubydoc
-
- #
- # bug #237071
- #
- #doinitd conf/gentoo/init.d/puppetmaster
- newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
- #doconfd conf/gentoo/conf.d/puppetmaster
- newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
- #doinitd conf/gentoo/init.d/puppet
- newinitd "${FILESDIR}"/puppet.init puppet
- doconfd conf/gentoo/conf.d/puppet
-
- # Initial configuration files
- keepdir /etc/puppet/manifests
- insinto /etc/puppet
- doins conf/gentoo/puppet/*
-
- # Location of log and data files
- keepdir /var/run/puppet
- keepdir /var/log/puppet
- keepdir /var/lib/puppet/ssl
- keepdir /var/lib/puppet/files
- fowners -R puppet:puppet /var/{run,log,lib}/puppet
-
- if use emacs ; then
- elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
- 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/syntax; doins ext/vim/syntax/puppet.vim
- insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/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 "${ROOT}/etc/puppet/puppetd.conf" -o \
- -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
- -f "${ROOT}/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
-}
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/app-admin/puppet/puppet-0.24.6-r1.ebuild b/app-admin/puppet/puppet-0.24.6-r1.ebuild
deleted file mode 100644
index 6a0dddd8ea2e..000000000000
--- a/app-admin/puppet/puppet-0.24.6-r1.ebuild
+++ /dev/null
@@ -1,149 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.6-r1.ebuild,v 1.2 2008/12/02 16:46:09 matsuu Exp $
-
-inherit elisp-common eutils ruby
-
-DESCRIPTION="A system automation and configuration management software"
-HOMEPAGE="http://reductivelabs.com/projects/puppet/index.html"
-SRC_URI="http://reductivelabs.com/downloads/${PN}/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="emacs ldap rrdtool vim-syntax"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-DEPEND="emacs? ( virtual/emacs )
- >=dev-ruby/facter-1.5.0"
-RDEPEND="${DEPEND}
- >=app-portage/eix-0.9.4
- ldap? ( dev-ruby/ruby-ldap )
- rrdtool? (
- || (
- >=net-analyzer/rrdtool-1.2.23
- dev-ruby/ruby-rrd
- )
- )"
-# || (
-# www-servers/webrick
-# www-servers/mongrel
-# )
-# dev-ruby/diff-lcs
-# dev-ruby/rails
-# dev-ruby/ruby-shadow
-
-USE_RUBY="ruby18 ruby19"
-
-SITEFILE="50${PN}-mode-gentoo.el"
-
-pkg_setup() {
- built_with_use virtual/ruby ipv6 || \
- die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run"
-
- built_with_use virtual/ruby ssl || \
- die "Ruby must be built with ssl support, otherwise puppet will not be able to run"
-
- if use rrdtool && \
- has_version '>=net-analyzer/rrdtool-1.2.23' && \
- ! built_with_use '>=net-analyzer/rrdtool-1.2.23' ruby
- then
- die "net-analyzer/rrdtool must be built with ruby USE flag."
- fi
-
- enewgroup puppet
- enewuser puppet -1 -1 /var/lib/puppet puppet
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-0.24.2-gentoo.patch"
- epatch "${FILESDIR}/${P}-eix.patch"
-}
-
-src_compile() {
- if use emacs ; then
- elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
- fi
-}
-
-src_install() {
- DESTDIR="${D}" ruby_einstall "$@" || die
- DESTDIR="${D}" erubydoc
-
- #
- # bug #237071
- #
- #doinitd conf/gentoo/init.d/puppetmaster
- newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
- #doconfd conf/gentoo/conf.d/puppetmaster
- newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
- #doinitd conf/gentoo/init.d/puppet
- newinitd "${FILESDIR}"/puppet.init puppet
- doconfd conf/gentoo/conf.d/puppet
-
- # Initial configuration files
- keepdir /etc/puppet/manifests
- insinto /etc/puppet
- doins conf/gentoo/puppet/*
-
- # Location of log and data files
- keepdir /var/run/puppet
- keepdir /var/log/puppet
- keepdir /var/lib/puppet/ssl
- keepdir /var/lib/puppet/files
- fowners -R puppet:puppet /var/{run,log,lib}/puppet
-
- if use emacs ; then
- elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
- 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/syntax; doins ext/vim/syntax/puppet.vim
- insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/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 "${ROOT}/etc/puppet/puppetd.conf" -o \
- -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
- -f "${ROOT}/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
-}
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/app-admin/puppet/puppet-0.24.7.ebuild b/app-admin/puppet/puppet-0.24.7.ebuild
deleted file mode 100644
index fe7acdef1ee0..000000000000
--- a/app-admin/puppet/puppet-0.24.7.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.7.ebuild,v 1.1 2008/12/19 18:07:43 matsuu Exp $
-
-inherit elisp-common eutils ruby
-
-DESCRIPTION="A system automation and configuration management software"
-HOMEPAGE="http://reductivelabs.com/projects/puppet/index.html"
-SRC_URI="http://reductivelabs.com/downloads/${PN}/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="emacs ldap rrdtool vim-syntax"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-DEPEND="emacs? ( virtual/emacs )
- >=dev-ruby/facter-1.5.0"
-RDEPEND="${DEPEND}
- >=app-portage/eix-0.9.4
- ldap? ( dev-ruby/ruby-ldap )
- rrdtool? (
- || (
- >=net-analyzer/rrdtool-1.2.23
- dev-ruby/ruby-rrd
- )
- )"
-# || (
-# www-servers/webrick
-# www-servers/mongrel
-# )
-# dev-ruby/diff-lcs
-# dev-ruby/rails
-# dev-ruby/ruby-shadow
-
-USE_RUBY="ruby18 ruby19"
-
-SITEFILE="50${PN}-mode-gentoo.el"
-
-pkg_setup() {
- built_with_use virtual/ruby ipv6 || \
- die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run"
-
- built_with_use virtual/ruby ssl || \
- die "Ruby must be built with ssl support, otherwise puppet will not be able to run"
-
- if use rrdtool && \
- has_version '>=net-analyzer/rrdtool-1.2.23' && \
- ! built_with_use '>=net-analyzer/rrdtool-1.2.23' ruby
- then
- die "net-analyzer/rrdtool must be built with ruby USE flag."
- fi
-
- enewgroup puppet
- enewuser puppet -1 -1 /var/lib/puppet puppet
-}
-
-src_compile() {
- if use emacs ; then
- elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
- fi
-}
-
-src_install() {
- DESTDIR="${D}" ruby_einstall "$@" || die
- DESTDIR="${D}" erubydoc
-
- #
- # bug #237071
- #
- #doinitd conf/gentoo/init.d/puppetmaster
- newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
- #doconfd conf/gentoo/conf.d/puppetmaster
- newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
- #doinitd conf/gentoo/init.d/puppet
- newinitd "${FILESDIR}"/puppet.init puppet
- doconfd conf/gentoo/conf.d/puppet
-
- # Initial configuration files
- keepdir /etc/puppet/manifests
- insinto /etc/puppet
- doins conf/gentoo/puppet/*
-
- # Location of log and data files
- keepdir /var/run/puppet
- keepdir /var/log/puppet
- keepdir /var/lib/puppet/ssl
- keepdir /var/lib/puppet/files
- fowners -R puppet:puppet /var/{run,log,lib}/puppet
-
- if use emacs ; then
- elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
- 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/syntax; doins ext/vim/syntax/puppet.vim
- insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/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 "${ROOT}/etc/puppet/puppetd.conf" -o \
- -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
- -f "${ROOT}/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
-}
-pkg_postrm() {
- use emacs && elisp-site-regen
-}