parent
69a75cb7eb
commit
1d4b86d001
@ -1 +0,0 @@
|
||||
DIST chef-expander-10.24.0.gem 24576 SHA256 5ec3bd3081a428a2ac5fd422d69a2b5ded08abdee524f3e8fa3bf343d0055b7e SHA512 6fe50d641b49fc5114d7a24a0ba14b9b840f9c1a76afed4cd93c327b72007d0cf06ec68c326d23cb8da882239270eeab82ffb4620b04922692c6060bb917d1ad WHIRLPOOL 3a4a53cf1dd3efc80aca3317a04a2bef947aad66ac6e17d1972ff667b1315967e85567ec3ae99f37969dcc3f93d33b3487a806aa17ad4956e5e57f548762d57d
|
@ -1,47 +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/chef-expander/chef-expander-10.24.0.ebuild,v 1.1 2013/03/01 19:18:43 hollow Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="spec"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Configuration management tool"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# specs require a live rabbitmq server
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "~app-admin/chef-${PV}
|
||||
>=dev-ruby/amqp-0.6.7
|
||||
<dev-ruby/amqp-0.7
|
||||
>=dev-ruby/bunny-0.6.0
|
||||
>=dev-ruby/em-http-request-0.2.11
|
||||
<dev-ruby/em-http-request-0.3
|
||||
>=dev-ruby/eventmachine-0.12.10
|
||||
>=dev-ruby/fast_xs-0.7.3
|
||||
>=dev-ruby/highline-1.6.1
|
||||
<dev-ruby/highline-1.7
|
||||
>=dev-ruby/mixlib-log-1.2.0
|
||||
>=dev-ruby/uuidtools-2.1.1
|
||||
<dev-ruby/uuidtools-2.2
|
||||
>=dev-ruby/yajl-ruby-1.0
|
||||
<dev-ruby/yajl-ruby-2"
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doinitd "${FILESDIR}/initd/chef-expander"
|
||||
doconfd "${FILESDIR}/confd/chef-expander"
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
# /etc/conf.d/chef-expander: config file for /etc/init.d/chef-expander
|
||||
|
||||
# The configuration file to use.
|
||||
#CONFIGFILE="/etc/chef/solr.rb"
|
||||
|
||||
# The user and group to set privilege to.
|
||||
#CHEF_USER="chef"
|
||||
#CHEF_GROUP="chef"
|
||||
|
||||
# Log file location.
|
||||
#CHEF_EXPANDER_LOGFILE="/var/log/chef/chef-expander.log"
|
||||
|
||||
# Any radom options you want to pass to chef-expander.
|
||||
CHEF_EXPANDER_OPTS="--node-count 1"
|
||||
|
||||
# Path to the chef expander binary.
|
||||
#CHEF_EXPANDER_BINARY="/usr/bin/chef-expander"
|
||||
|
||||
# PID file location.
|
||||
#CHEF_EXPANDER_PIDFILE="/var/run/chef/expander.pid"
|
@ -1,27 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
CHEF_EXPANDER_LOGFILE=${CHEF_EXPANDER_LOGFILE:-/var/log/chef/expander.log}
|
||||
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
|
||||
CHEF_USER=${CHEF_USER:-chef}
|
||||
CHEF_GROUP=${CHEF_GROUP:-chef}
|
||||
|
||||
pidfile=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
|
||||
command=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
|
||||
command_args="-d -P ${pidfile} -L ${CHEF_EXPANDER_LOGFILE} -c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}"
|
||||
start_stop_daemon_args="--user ${CHEF_USER} --group ${CHEF_GROUP}"
|
||||
|
||||
depend() {
|
||||
need net chef-solr
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
/etc/chef \
|
||||
/etc/chef/certificates \
|
||||
/var/{lib,log,run}/chef
|
||||
|
||||
checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
${CONFIGFILE}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST chef-server-api-10.24.0.gem 52736 SHA256 fb8bab62bb29fb5e4f81d8a961c6530ce386fff546ac7f215998f6c6ab045693 SHA512 b226aeeef354fa285546b76f0ecb4fe752504a5e5f9879879e57addf8beb90f4c0470f64004831faffbb96f0ba1caf8c12516149a9edf0660ed1c2cf07f70909 WHIRLPOOL ab20a6fa6d4bc03daa5884f125a59eb6c9ba032dcd2bae6a5a37d38feab75d65a4386ec220cfdb242f817a1128e6d4884228e3e6fd12bb7230edbb84de63de18
|
@ -1,66 +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/chef-server-api/chef-server-api-10.24.0.ebuild,v 1.1 2013/03/01 19:24:25 hollow Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="spec"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Configuration management tool"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# specs require root access
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-db/couchdb-0.10.0
|
||||
>=net-misc/rabbitmq-server-1.7.0"
|
||||
|
||||
ruby_add_rdepend "~app-admin/chef-${PV}
|
||||
>=dev-ruby/dep_selector-0.0.3
|
||||
>=dev-ruby/merb-assets-1.1.0
|
||||
<dev-ruby/merb-assets-1.2
|
||||
>=dev-ruby/merb-core-1.1.0
|
||||
<dev-ruby/merb-core-1.2
|
||||
>=dev-ruby/merb-helpers-1.1.0
|
||||
<dev-ruby/merb-helpers-1.2
|
||||
>=dev-ruby/merb-param-protection-1.1.0
|
||||
<dev-ruby/merb-param-protection-1.2
|
||||
>=dev-ruby/mixlib-authentication-1.1.3
|
||||
>=dev-ruby/uuidtools-2.1.1
|
||||
<dev-ruby/uuidtools-2.2
|
||||
www-servers/thin"
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
ruby_fakegem_doins -r app
|
||||
ruby_fakegem_doins -r config
|
||||
ruby_fakegem_doins -r public
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doinitd "${FILESDIR}/initd/chef-server-api"
|
||||
doconfd "${FILESDIR}/confd/chef-server-api"
|
||||
|
||||
insinto /etc/chef
|
||||
doins "${FILESDIR}/server.rb"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You should edit /etc/chef/server.rb before starting the service with"
|
||||
elog "/etc/init.d/chef-server-api start"
|
||||
elog
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# /etc/conf.d/chef-server-api: config file for /etc/init.d/chef-server-api
|
||||
|
||||
# The configuration file to use.
|
||||
#CONFIGFILE="/etc/chef/server.rb"
|
||||
|
||||
# Number of merb daemons to run for chef-server.
|
||||
#CLUSTER_NODES=1
|
||||
|
||||
# The user and group to set privilege to.
|
||||
#CHEF_USER="chef"
|
||||
#CHEF_GROUP="chef"
|
||||
|
||||
# Log file location.
|
||||
#CHEF_SERVER_LOGFILE="/var/log/chef/server.log"
|
||||
|
||||
# Any radom options you want to pass to chef-server.
|
||||
CHEF_SERVER_OPTS="-e production"
|
||||
|
||||
# Path to the chef server binary.
|
||||
#CHEF_SERVER_BINARY="/usr/bin/chef-server"
|
||||
|
||||
# PID file location.
|
||||
#CHEF_SERVER_PIDFILE="/var/run/chef/server.%s.pid"
|
@ -1,40 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need net couchdb rabbitmq chef-expander
|
||||
before chef-client
|
||||
}
|
||||
|
||||
CHEF_SERVER_BINARY=${CHEF_SERVER_BINARY:-/usr/bin/chef-server}
|
||||
CHEF_SERVER_PIDFILE=${CHEF_SERVER_PIDFILE:-/var/run/chef/server.%s.pid}
|
||||
CHEF_SERVER_LOGFILE=${CHEF_SERVER_LOGFILE:-/var/log/chef/server.log}
|
||||
CONFIGFILE=${CONFIGFILE:-/etc/chef/server.rb}
|
||||
CLUSTER_NODES=${CLUSTER_NODES:-1}
|
||||
CHEF_USER=${CHEF_USER:-chef}
|
||||
CHEF_GROUP=${CHEF_GROUP:-chef}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
/etc/chef \
|
||||
/etc/chef/certificates \
|
||||
/var/{lib,log,run}/chef
|
||||
|
||||
checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
${CONFIGFILE}
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Chef server"
|
||||
${CHEF_SERVER_BINARY} -d -P ${CHEF_SERVER_PIDFILE} -C ${CONFIGFILE} \
|
||||
-u ${CHEF_USER} -G ${CHEF_GROUP} --name chef-server \
|
||||
-c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} ${CHEF_SERVER_OPTS} > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Shutting down Chef server"
|
||||
${CHEF_SERVER_BINARY} -K all -P ${CHEF_SERVER_PIDFILE} > /dev/null
|
||||
eend $?
|
||||
}
|
@ -1,130 +0,0 @@
|
||||
# Configuration File For Chef (chef-server)
|
||||
#
|
||||
# chef-server is a Merb application slice. By default it is configured to
|
||||
# run via Thin, the default Merb adapter. It can be run as:
|
||||
#
|
||||
# chef-server -p 4000 -e production -a thin
|
||||
#
|
||||
# This starts up the RESTful Chef Server API on port 4000 in production mode
|
||||
# using the thin server adapter.
|
||||
#
|
||||
# This file configures the behavior of the running server itself.
|
||||
#
|
||||
# Chef uses a Ruby DSL for configuration, and this file contains a few
|
||||
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
|
||||
# :value. Second, in Ruby, everything but false and nil (no quotes or other
|
||||
# designations) is true, including true, the integer 0 and the string "false".
|
||||
# So to set the value of a setting to false, write:
|
||||
#
|
||||
# some_setting false
|
||||
#
|
||||
# Third, Ruby class methods can be used, for example we tell the log to show
|
||||
# the current time stamp with Chef::Log::Formatter.show_time, below.
|
||||
#
|
||||
# log_level specifies the level of verbosity for output.
|
||||
# valid values are: :debug, :info, :warn, :error, :fatal
|
||||
|
||||
log_level :info
|
||||
|
||||
# log_location specifies where the server should log to.
|
||||
# valid values are: a quoted string specifying a file, or STDOUT with
|
||||
# no quotes. This is the application log for the Merb workers that get
|
||||
# spawned.
|
||||
|
||||
log_location "/var/log/chef/server.log"
|
||||
|
||||
# ssl_verify_mode specifies if the REST client should verify SSL certificates.
|
||||
# valid values are :verify_none, :verify_peer. The default Chef Server
|
||||
# installation will use a self-generated SSL certificate so this should be
|
||||
# :verify_none unless you replace the certificate.
|
||||
|
||||
ssl_verify_mode :verify_none
|
||||
|
||||
# chef_server_url specifies the URL for the server API. The process actually
|
||||
# listens on 0.0.0.0:PORT.
|
||||
# valid values are any HTTP URL.
|
||||
|
||||
chef_server_url "http://localhost:4000"
|
||||
|
||||
# cookbook_path is a Ruby array of filesystem locations to search for cookbooks.
|
||||
# valid value is a string, or an array of strings of filesystem directory
|
||||
# locations. This setting is searched beginning (index 0) to end in order. You
|
||||
# might specify multiple search paths for cookbooks if you want to use an
|
||||
# upstream source, and provide localised "site" overrides. These should come
|
||||
# after the 'upstream' source. The default value, /var/lib/chef/cookbooks does
|
||||
# not contain any cookbooks by default.
|
||||
# See the Chef Wiki for more information about setting up a local repository
|
||||
# for working on cookbooks.
|
||||
# http://wiki.opscode.com/display/chef/Chef+Repository
|
||||
|
||||
cookbook_path [ "/var/lib/chef/cookbooks" ]
|
||||
cookbook_tarball_path "/var/lib/chef/cookbook-tarballs"
|
||||
|
||||
# file_cache_path specifies where the client should cache cookbooks, server
|
||||
# cookie ID, and openid registration data.
|
||||
# valid value is any filesystem directory location.
|
||||
|
||||
file_cache_path "/var/lib/chef/cache"
|
||||
|
||||
# node_path specifies a location for where to find node-specific recipes.
|
||||
# valid values are any filesystem direcory location.
|
||||
|
||||
node_path "/var/lib/chef/nodes"
|
||||
|
||||
# openid_store_path specifies a location where to keep openid nonces for clients.
|
||||
# valid values are any filesystem directory location.
|
||||
#
|
||||
# NOTE: OpenID is deprecated and this option may not be used, kept for
|
||||
# historical purposes.
|
||||
|
||||
openid_store_path "/var/lib/chef/openid/store"
|
||||
|
||||
# openid_store_path specifies a location where to keep openid nonces for clients.
|
||||
# valid values are any filesystem directory location.
|
||||
#
|
||||
# NOTE: OpenID is deprecated and this option may not be used, kept for
|
||||
# historical purposes and may be removed.
|
||||
|
||||
openid_cstore_path "/var/lib/chef/openid/cstore"
|
||||
|
||||
# role_path designates where the server should load role JSON and Ruby DSL
|
||||
# files from.
|
||||
# valid values are any filesystem directory location. Roles are a feature
|
||||
# that allow you to easily reuse lists of recipes and attribute settings.
|
||||
# Please see the Chef Wiki page for information on how to utilize the feature.
|
||||
# http://wiki.opscode.com/display/chef/Roles
|
||||
#
|
||||
# NOTE: The role_path setting is deprecated on the chef-server, as the
|
||||
# roles are now stored directly in CouchDB rather than on the filesystem.
|
||||
# This option is kept for historical purposes and may be removed.
|
||||
|
||||
role_path "/var/lib/chef/roles"
|
||||
|
||||
# cache_options sets options used by the moneta library for local cache for
|
||||
# checksums of compared objects.
|
||||
|
||||
cache_options({
|
||||
:path => "/var/lib/chef/cache/checksums",
|
||||
:skip_expires => true
|
||||
})
|
||||
|
||||
# Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
|
||||
# contain timestamps.
|
||||
# valid values are true or false (no quotes, see above about Ruby idioms). The
|
||||
# printed timestamp is rfc2822, for example:
|
||||
# Fri, 31 Jul 2009 19:19:46 -0600
|
||||
|
||||
Mixlib::Log::Formatter.show_time = true
|
||||
|
||||
# The following options configure the signing CA so it can be read by
|
||||
# non-privileged user for the server daemon.
|
||||
|
||||
signing_ca_path "/etc/chef/certificates"
|
||||
signing_ca_cert "/etc/chef/certificates/cert.pem"
|
||||
signing_ca_key "/etc/chef/certificates/key.pem"
|
||||
|
||||
sandbox_path "/var/lib/chef/sandboxes"
|
||||
checksum_path "/var/lib/chef/checksums"
|
||||
|
||||
openid_store_path "/var/lib/chef/openid/store"
|
||||
search_index_path "/var/lib/chef/search_index"
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST chef-server-webui-10.24.0.gem 184832 SHA256 9fb6b9d8ed022e4b4bf0c5990496760d548951c1be2fc1cc29774d17faec1e35 SHA512 226c876e447af48c5b9009447d62ec37c3a500759113c019c949b6bfdf6c9f7643f87a052273c5c29fcc88ac50a4b71888e88258120ce53256d5a5b40003271a WHIRLPOOL 5e578d64c81507803ecdd97c773e1e3552cf63bf239622b9661f67d92b9bf6e3938c474eb209f34c6c437a29e95ef2e8414dc44198a87ed048ffb3c58f2c2595
|
@ -1,74 +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/chef-server-webui/chef-server-webui-10.24.0.ebuild,v 1.2 2013/03/07 08:10:46 hollow Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit ruby-fakegem user
|
||||
|
||||
DESCRIPTION="Configuration management tool"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-db/couchdb-0.10.0
|
||||
>=net-misc/rabbitmq-server-1.7.0"
|
||||
|
||||
ruby_add_rdepend "dev-ruby/coderay
|
||||
>=dev-ruby/extlib-0.9.16
|
||||
dev-ruby/haml
|
||||
<dev-ruby/sass-3.2
|
||||
>=dev-ruby/merb-assets-1.1.0
|
||||
<dev-ruby/merb-assets-1.2
|
||||
>=dev-ruby/merb-core-1.1.0
|
||||
<dev-ruby/merb-core-1.2
|
||||
>=dev-ruby/merb-haml-1.1.0
|
||||
<dev-ruby/merb-haml-1.2
|
||||
>=dev-ruby/merb-helpers-1.1.0
|
||||
<dev-ruby/merb-helpers-1.2
|
||||
>=dev-ruby/merb-param-protection-1.1.0
|
||||
<dev-ruby/merb-param-protection-1.2
|
||||
>=dev-ruby/rack-1.4.5
|
||||
dev-ruby/ruby-openid
|
||||
www-servers/thin"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup chef
|
||||
enewuser chef -1 -1 /var/lib/chef chef
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
ruby_fakegem_doins -r app
|
||||
ruby_fakegem_doins -r config
|
||||
ruby_fakegem_doins config.ru
|
||||
ruby_fakegem_doins -r public
|
||||
|
||||
# create unversioned path for passenger/rack integration
|
||||
dodir /var/lib/chef/rack
|
||||
dosym $(ruby_fakegem_gemsdir)/gems/${P} /var/lib/chef/rack/webui
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doinitd "${FILESDIR}/initd/chef-server-webui"
|
||||
doconfd "${FILESDIR}/confd/chef-server-webui"
|
||||
|
||||
insinto /etc/chef
|
||||
doins "${FILESDIR}/webui.rb"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You should edit or create /etc/chef/webui.rb before starting the service"
|
||||
elog "with /etc/init.d/chef-server-webui start"
|
||||
elog
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# /etc/conf.d/chef-server-webui: config file for /etc/init.d/chef-server-webui
|
||||
|
||||
# The configuration file to use.
|
||||
#CONFIGFILE="/etc/chef/webui.rb"
|
||||
|
||||
# Number of merb daemons to run for chef-server-webui.
|
||||
#CLUSTER_NODES=1
|
||||
|
||||
# The user and group to set privilege to.
|
||||
#CHEF_USER="chef"
|
||||
#CHEF_GROUP="chef"
|
||||
|
||||
# Log file location.
|
||||
#CHEF_SERVER_WEBUI_LOGFILE="/var/log/chef/server-webui.log"
|
||||
|
||||
# Any radom options you want to pass to chef-server.
|
||||
#CHEF_SERVER_WEBUI_OPTS=""
|
||||
|
||||
# Path to the chef server webui binary.
|
||||
#CHEF_SERVER_WEBUI_BINARY="/usr/bin/chef-server-webui"
|
||||
|
||||
# PID file location.
|
||||
#CHEF_SERVER_WEBUI_PIDFILE="/var/run/chef/server-webui.%s.pid"
|
@ -1,40 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after chef-server
|
||||
}
|
||||
|
||||
CHEF_SERVER_WEBUI_BINARY=${CHEF_SERVER_WEBUI_BINARY:-/usr/bin/chef-server-webui}
|
||||
CHEF_SERVER_WEBUI_PIDFILE=${CHEF_SERVER_WEBUI_PIDFILE:-/var/run/chef/server-webui.%s.pid}
|
||||
CHEF_SERVER_WEBUI_LOGFILE=${CHEF_SERVER_WEBUI_LOGFILE:-/var/log/chef/server-webui.log}
|
||||
CONFIGFILE=${CONFIGFILE:-/etc/chef/webui.rb}
|
||||
CLUSTER_NODES=${CLUSTER_NODES:-1}
|
||||
CHEF_USER=${CHEF_USER:-chef}
|
||||
CHEF_GROUP=${CHEF_GROUP:-chef}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
/etc/chef \
|
||||
/etc/chef/certificates \
|
||||
/var/{lib,log,run}/chef
|
||||
|
||||
checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
${CONFIGFILE}
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Chef server web interface"
|
||||
${CHEF_SERVER_WEBUI_BINARY} -d -P ${CHEF_SERVER_WEBUI_PIDFILE} --name \
|
||||
chef-server-webui -C ${CONFIGFILE} -u ${CHEF_USER} -G ${CHEF_GROUP} \
|
||||
-c ${CLUSTER_NODES} -L ${CHEF_SERVER_WEBUI_LOGFILE} ${CHEF_SERVER_WEBUI_OPTS} > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Shutting down Chef server web interface"
|
||||
${CHEF_SERVER_WEBUI_BINARY} -K all -P ${CHEF_SERVER_WEBUI_PIDFILE} > /dev/null
|
||||
eend $?
|
||||
}
|
@ -1,106 +0,0 @@
|
||||
# Configuration File For Chef (chef-server-webui)
|
||||
#
|
||||
# chef-server-webui is a Merb application slice. By default it is configured to
|
||||
# run via Thin, the default Merb adapter. This should be run as:
|
||||
#
|
||||
# chef-server-webui -p 4040 -e production -a thin
|
||||
#
|
||||
# This starts up the Chef Server WebUI on port 4040 in production mode using
|
||||
# the thin server adapter.
|
||||
#
|
||||
# This file configures the behavior of the running server itself.
|
||||
#
|
||||
# Chef uses a Ruby DSL for configuration, and this file contains a few
|
||||
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
|
||||
# :value. Second, in Ruby, everything but false and nil (no quotes or other
|
||||
# designations) is true, including true, the integer 0 and the string "false".
|
||||
# So to set the value of a setting to false, write:
|
||||
#
|
||||
# some_setting false
|
||||
#
|
||||
# Third, Ruby class methods can be used, for example we tell the log to show
|
||||
# the current time stamp with Chef::Log::Formatter.show_time, below.
|
||||
#
|
||||
# log_level specifies the level of verbosity for output.
|
||||
# valid values are: :debug, :info, :warn, :error, :fatal
|
||||
|
||||
log_level :info
|
||||
|
||||
# log_location specifies where the server should log to.
|
||||
# valid values are: a quoted string specifying a file, or STDOUT with
|
||||
# no quotes. This is the application log for the Merb workers that get
|
||||
# spawned.
|
||||
|
||||
log_location "/var/log/chef/server-webui.log"
|
||||
|
||||
# ssl_verify_mode specifies if the REST client should verify SSL certificates.
|
||||
# valid values are :verify_none, :verify_peer. The default Chef Server
|
||||
# installation will use a self-generated SSL certificate so this should be
|
||||
# :verify_none unless you replace the certificate.
|
||||
|
||||
ssl_verify_mode :verify_none
|
||||
|
||||
# chef_server_url specifies the URL for the server API. The process actually
|
||||
# listens on 0.0.0.0:PORT.
|
||||
# valid values are any HTTP URL.
|
||||
|
||||
chef_server_url "http://localhost:4000"
|
||||
|
||||
# file_cache_path specifies where the client should cache cookbooks, server
|
||||
# cookie ID, and openid registration data.
|
||||
# valid value is any filesystem directory location.
|
||||
|
||||
file_cache_path "/var/lib/chef/cache"
|
||||
|
||||
# openid_store_path specifies a location where to keep openid nonces for clients.
|
||||
# valid values are any filesystem directory location.
|
||||
#
|
||||
# NOTE: OpenID is deprecated and this option may not be used, kept for
|
||||
# historical purposes.
|
||||
|
||||
openid_store_path "/var/lib/chef/openid/store"
|
||||
|
||||
# openid_store_path specifies a location where to keep openid nonces for clients.
|
||||
# valid values are any filesystem directory location.
|
||||
#
|
||||
# NOTE: OpenID is deprecated and this option may not be used, kept for
|
||||
# historical purposes and may be removed.
|
||||
|
||||
openid_cstore_path "/var/lib/chef/openid/cstore"
|
||||
|
||||
# Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
|
||||
# contain timestamps.
|
||||
# valid values are true or false (no quotes, see above about Ruby idioms). The
|
||||
# printed timestamp is rfc2822, for example:
|
||||
# Fri, 31 Jul 2009 19:19:46 -0600
|
||||
|
||||
Mixlib::Log::Formatter.show_time = true
|
||||
|
||||
signing_ca_cert "/etc/chef/certificates/cert.pem"
|
||||
signing_ca_key "/etc/chef/certificates/key.pem"
|
||||
|
||||
# web_ui_client_name specifies the user to use when accessing the Chef
|
||||
# Server API. By default this is already set to "chef-webui".
|
||||
#
|
||||
# This user gets created by the chef-server and stored in CouchDB the
|
||||
# first time the server starts up if the user and key don't exist.
|
||||
|
||||
web_ui_client_name "chef-webui"
|
||||
|
||||
# web_ui_admin_user_name and web_ui_admin_default_password specify the
|
||||
# user and password that a human can use to initially log into the
|
||||
# chef-server-webui when it starts. The default value for the user is 'admin'
|
||||
# and the default password is'p@ssw0rd1' should be changed immediately on
|
||||
# login. The web form will display the password reset page on first login.
|
||||
|
||||
web_ui_admin_user_name "admin"
|
||||
web_ui_admin_default_password "p@ssw0rd1"
|
||||
|
||||
# web_ui_key specifics the file to use for authenticating with the Chef
|
||||
# Server API. By default this is already set to "/etc/chef/webui.pem".
|
||||
#
|
||||
# This file gets created by the chef-server and the public key stored in
|
||||
# CouchDB the first time the server starts up if the user and key don't
|
||||
# exist.
|
||||
|
||||
web_ui_key "/etc/chef/webui.pem"
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST chef-server-10.24.0.gem 8192 SHA256 4b072426181694f2069a396e5d42174352a7b3d5a6d5b475964322d6b027d97d SHA512 1367b762f4340b3ea93599ddbc0429214fb5f898c57d657b0c57e4e15afa40a8f040e890418d3945f7b992cf20f45abd0645c1bba4413e388672151041bc6091 WHIRLPOOL 5175d4f565d793f87b30e9246ccab4aefb41702d26fce36349dfdec6c14ddb2eafee33cde8e11bc9efda02ed046e5c43e03ef3bf05212a397f00f7e2e973a29b
|
@ -1,25 +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/chef-server/chef-server-10.24.0.ebuild,v 1.1 2013/03/01 19:26:36 hollow Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Configuration management tool (meta package)"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "~app-admin/chef-server-api-${PV}
|
||||
~app-admin/chef-solr-${PV}
|
||||
~app-admin/chef-expander-${PV}"
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST chef-solr-10.24.0.gem 10217472 SHA256 8db6e6a1859304f4c990ee3d0b50046da730e900b0e74b225cdd2dfed4bef361 SHA512 099450600084b4076bce9325c6d8eae16765f944cdf45fa0f5805f9fc11f591e0bd40483f8b4cc88be52963a632ccddf89cb75c1675390ecc1e2aa3431424927 WHIRLPOOL edbee0fee265ab00ee0f59244a93f4c316024a1835d5b10f5843a92f457de03df10cf6629fdabc916da6a96e845d356e85612cb1b169e95ff8f77d1ddfba3bbb
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/chef-solr/chef-solr-10.24.0.ebuild,v 1.2 2014/12/28 09:41:10 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Configuration management tool"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=net-misc/rabbitmq-server-1.7.2
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
ruby_add_rdepend "~app-admin/chef-${PV}"
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
ruby_fakegem_doins -r solr
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doinitd "${FILESDIR}/initd/chef-solr"
|
||||
doconfd "${FILESDIR}/confd/chef-solr"
|
||||
|
||||
insinto /etc/chef
|
||||
doins "${FILESDIR}/solr.rb"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You need to run the chef-solr-installer script to setup the SOLR instance:"
|
||||
elog
|
||||
elog " chef-solr-installer -c /etc/chef/solr.rb -u chef -g chef -f"
|
||||
elog
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
# /etc/conf.d/chef-solr: config file for /etc/init.d/chef-solr
|
||||
|
||||
# The configuration file to use.
|
||||
#CONFIGFILE="/etc/chef/solr.rb"
|
||||
|
||||
# The user and group to set privilege to.
|
||||
#CHEF_USER="chef"
|
||||
#CHEF_GROUP="chef"
|
||||
|
||||
# Log file location.
|
||||
#CHEF_SOLR_LOGFILE="/var/log/chef/solr.log"
|
||||
|
||||
# Any radom options you want to pass to chef-solr.
|
||||
#CHEF_SOLR_OPTS=""
|
||||
|
||||
# Path to the chef solr binary.
|
||||
#CHEF_SOLR_BINARY="/usr/bin/chef-solr"
|
||||
|
||||
# PID file location.
|
||||
#CHEF_SOLR_PIDFILE="/var/run/chef/solr.pid"
|
@ -1,28 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
CHEF_SOLR_LOGFILE=${CHEF_SOLR_LOGFILE:-/var/log/chef/solr.log}
|
||||
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
|
||||
CHEF_USER=${CHEF_USER:-chef}
|
||||
CHEF_GROUP=${CHEF_GROUP:-chef}
|
||||
|
||||
pidfile=${CHEF_SOLR_PIDFILE:-/var/run/chef/solr.pid}
|
||||
command=${CHEF_SOLR_BINARY:-/usr/bin/chef-solr}
|
||||
command_args="-d -P ${pidfile} -L ${CHEF_SOLR_LOGFILE} -c ${CONFIGFILE} ${CHEF_SOLR_OPTS}"
|
||||
start_stop_daemon_args="--user ${CHEF_USER} --group ${CHEF_GROUP}"
|
||||
|
||||
depend() {
|
||||
need net rabbitmq
|
||||
after couchdb
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
/etc/chef \
|
||||
/etc/chef/certificates \
|
||||
/var/{lib,log,run}/chef
|
||||
|
||||
checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
|
||||
${CONFIGFILE}
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Configuration File For Chef SOLR Indexer (chef-solr-indexer)
|
||||
#
|
||||
# The chef-indexer program runs on the Chef Server to generate search indexes
|
||||
# of node data stored in the Server's CouchDB store.
|
||||
#
|
||||
# Chef uses a Ruby DSL for configuration, and this file may contain some
|
||||
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
|
||||
# :value. Second, in Ruby, everything but false and nil (no quotes or other
|
||||
# designations) is true, including true, the integer 0 and the string "false".
|
||||
# So to set the value of a setting to false, write:
|
||||
#
|
||||
# some_setting false
|
||||
#
|
||||
# Third, Ruby class methods can be used, for example we tell the log to show
|
||||
# the current time stamp with Chef::Log::Formatter.show_time, below.
|
||||
#
|
||||
# log_location specifies where the indexer should log to.
|
||||
# valid values are: a quoted string specifying a file, or STDOUT with
|
||||
# no quotes. When run as a daemon (default), STDOUT will produce no output.
|
||||
|
||||
log_location "/var/log/chef/solr.log"
|
||||
|
||||
# search_index_path specifies where the indexer should store the indexes.
|
||||
# valid value is any filesystem directory location.
|
||||
|
||||
search_index_path "/var/lib/chef/search_index"
|
||||
|
||||
solr_jetty_path "/var/lib/chef/solr/jetty"
|
||||
solr_home_path "/var/lib/chef/solr/home"
|
||||
solr_data_path "/var/lib/chef/solr/data"
|
||||
solr_heap_size "256M"
|
||||
|
||||
# Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
|
||||
# contain timestamps.
|
||||
# valid values are true or false (no quotes, see above about Ruby idioms). The
|
||||
# printed timestamp is rfc2822, for example:
|
||||
# Fri, 31 Jul 2009 19:19:46 -0600
|
||||
|
||||
Mixlib::Log::Formatter.show_time = true
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST chef-10.24.0.gem 823296 SHA256 896945deb09cb35ea370186e7f5380e7b61728ce85dfd7ee79de50506a516a89 SHA512 6027a4cd96da418dc18061611ff8c3461f236a088c3213f54f8828d63abe3575962fcb94ae91b5285f6f2168ef4204738d327781c3195151cf708b82cb9666d6 WHIRLPOOL a34e15688e99116909e326b40bd96246234e9c1eae592d34cc1cfa8396b56f7bfb54cfcd3917b1b21853f7a9d6dc143cf55bc4c899131a240f00a2d8249e8ef9
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/chef/chef-10.24.0-r1.ebuild,v 1.1 2014/12/14 10:29:27 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="spec"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC=${RUBY_FAKEGEM_NAME}.gemspec
|
||||
|
||||
inherit ruby-fakegem user
|
||||
|
||||
DESCRIPTION="Chef is a systems integration framework"
|
||||
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# specs have various indempotency issues which result in the global Chef::Config
|
||||
# object to be replaced and subsequently fails other specs. Revisit this later.
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/bunny-0.6.0
|
||||
dev-ruby/erubis
|
||||
>=dev-ruby/highline-1.6.9
|
||||
>=dev-ruby/json-1.4.4
|
||||
>=dev-ruby/mixlib-authentication-1.3.0
|
||||
>=dev-ruby/mixlib-cli-1.1.0
|
||||
>=dev-ruby/mixlib-config-1.1.2
|
||||
>=dev-ruby/mixlib-log-1.3.0
|
||||
dev-ruby/mixlib-shellout
|
||||
<dev-ruby/moneta-0.7.0
|
||||
>=dev-ruby/net-ssh-2.6
|
||||
<dev-ruby/net-ssh-2.7
|
||||
>=dev-ruby/net-ssh-multi-1.1
|
||||
<dev-ruby/net-ssh-multi-1.2
|
||||
>=dev-ruby/ohai-0.6.0
|
||||
>=dev-ruby/rest-client-1.0.4
|
||||
<dev-ruby/rest-client-1.7
|
||||
dev-ruby/ruby-shadow
|
||||
>=dev-ruby/treetop-1.4.9
|
||||
<dev-ruby/treetop-1.5
|
||||
dev-ruby/uuidtools
|
||||
>=dev-ruby/yajl-ruby-1.1
|
||||
<dev-ruby/yajl-ruby-2"
|
||||
|
||||
each_ruby_prepare() {
|
||||
ruby_fakegem_metadata_gemspec ../metadata ${RUBY_FAKEGEM_GEMSPEC}
|
||||
|
||||
# bunny, json
|
||||
sed -i -e 's/"< 0.8.0", //' -e 's/<= 1.7.7/< 2/' ${RUBY_FAKEGEM_GEMSPEC} || die "Unable to fix up dependencies."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
keepdir /etc/chef /var/lib/chef /var/log/chef
|
||||
|
||||
doinitd "${FILESDIR}/initd/chef-client"
|
||||
doconfd "${FILESDIR}/confd/chef-client"
|
||||
|
||||
insinto /etc/chef
|
||||
doins "${FILESDIR}/client.rb"
|
||||
doins "${FILESDIR}/solo.rb"
|
||||
|
||||
doman distro/common/man/man1/*.1
|
||||
doman distro/common/man/man8/*.8
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup chef
|
||||
enewuser chef -1 -1 /var/lib/chef chef
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You should edit /etc/chef/client.rb before starting the service with"
|
||||
elog "/etc/init.d/chef-client start"
|
||||
elog
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Configuration File For Chef (chef-client)
|
||||
#
|
||||
# The chef-client program will connect the local system to the specified
|
||||
# server URLs through a RESTful API to retrieve its configuration.
|
||||
#
|
||||
# By default, the client is configured to connect to a Chef Server
|
||||
# running on the local system. Change this to reflect your environment.
|
||||
#
|
||||
# Chef uses a Ruby DSL for configuration, and this file contains a few
|
||||
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
|
||||
# :value. Second, in Ruby, everything but false and nil (no quotes or other
|
||||
# designations) is true, including true, the integer 0 and the string "false".
|
||||
# So to set the value of a setting to false, write:
|
||||
#
|
||||
# some_setting false
|
||||
#
|
||||
# Third, Ruby class methods can be used, for example we tell the log to show
|
||||
# the current time stamp with Chef::Log::Formatter.show_time, below.
|
||||
#
|
||||
# log_level specifies the level of verbosity for output.
|
||||
# valid values are: :debug, :info, :warn, :error, :fatal
|
||||
|
||||
log_level :info
|
||||
|
||||
# log_location specifies where the client should log to.
|
||||
# valid values are: a quoted string specifying a file, or STDOUT with
|
||||
# no quotes. When run as a daemon (default), STDOUT will produce no output.
|
||||
|
||||
log_location "/var/log/chef/client.log"
|
||||
|
||||
# ssl_verify_mode specifies if the REST client should verify SSL certificates.
|
||||
# valid values are :verify_none, :verify_peer. The default Chef Server
|
||||
# installation will use a self-generated SSL certificate so this should be
|
||||
# :verify_none unless you replace the certificate.
|
||||
|
||||
ssl_verify_mode :verify_none
|
||||
|
||||
# Server URLs.
|
||||
#
|
||||
# chef_server_url specifies the Chef Server to connect to.
|
||||
# valid values are any HTTP URL (e.g. https://chef.example.com:4443).
|
||||
|
||||
chef_server_url "http://localhost:4000"
|
||||
|
||||
# file_cache_path specifies where the client should cache cookbooks, server
|
||||
# cookie ID, and openid registration data.
|
||||
# valid value is any filesystem directory location.
|
||||
|
||||
file_cache_path "/var/lib/chef/cache"
|
||||
|
||||
file_backup_path "/var/lib/chef/backup"
|
||||
|
||||
# pid_file specifies the location of where chef-client daemon should keep the pid
|
||||
# file.
|
||||
# valid value is any filesystem file location.
|
||||
|
||||
pid_file "/var/run/chef/client.pid"
|
||||
|
||||
# Mixlib::Log::Formatter.show_time specifies whether the chef-client
|
||||
# log should contain timestamps. valid values are true or false (no
|
||||
# quotes, see above about Ruby idioms). The printed timestamp is
|
||||
# rfc2822, for example:
|
||||
# Fri, 31 Jul 2009 19:19:46 -0600
|
||||
|
||||
Mixlib::Log::Formatter.show_time = true
|
@ -1,19 +0,0 @@
|
||||
# /etc/conf.d/chef-client: config file for /etc/init.d/chef-client
|
||||
|
||||
# The configuration file to use.
|
||||
#CONFIGFILE="/etc/chef/client.rb"
|
||||
|
||||
# Run chef-client periodically, in seconds.
|
||||
#INTERVAL=1800
|
||||
|
||||
# The splay time for running at intervals, in seconds.
|
||||
#SPLAY=20
|
||||
|
||||
# Any radom options you want to pass to chef.
|
||||
#CHEF_CLIENT_OPTS=""
|
||||
|
||||
# Path to the chef client binary.
|
||||
#CHEF_CLIENT_BINARY="/usr/bin/chef-client"
|
||||
|
||||
# PID file location.
|
||||
#CHEF_CLIENT_PIDFILE="/var/run/chef/client.pid"
|
@ -1,20 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
CONFIGFILE=${CONFIGFILE:-/etc/chef/client.rb}
|
||||
INTERVAL=${INTERVAL:-1800}
|
||||
SPLAY=${SPLAY:-20}
|
||||
ENCODING=${ENCODING:-UTF-8}
|
||||
|
||||
pidfile=${CHEF_CLIENT_PIDFILE:-/var/run/chef/client.pid}
|
||||
command=${CHEF_CLIENT_BINARY:-/usr/bin/ruby19}
|
||||
command_args="-E ${ENCODING} /usr/bin/chef-client -d -c ${CONFIGFILE} -i ${INTERVAL} -s ${SPLAY} -P ${pidfile} ${CHEF_CLIENT_OPTS}"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d /var/run/chef
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Configuration File For Chef Solo (chef-solo)
|
||||
#
|
||||
# The program chef-solo allows you to run Chef as a standalone program
|
||||
# without connecting to a remote Chef Server.
|
||||
#
|
||||
# Chef uses a Ruby DSL for configuration, and this file may contain some
|
||||
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
|
||||
# :value. Second, in Ruby, everything but false and nil (no quotes or other
|
||||
# designations) is true, including true, the integer 0 and the string "false".
|
||||
# So to set the value of a setting to false, write:
|
||||
#
|
||||
# some_setting false
|
||||
#
|
||||
# Third, Ruby class methods can be used, for example we tell the log to show
|
||||
# the current time stamp with Mixlib::Log::Formatter.show_time, below.
|
||||
#
|
||||
# log_level specifies the level of verbosity for output.
|
||||
# valid values are: :debug, :info, :warn, :error, :fatal
|
||||
|
||||
log_level :info
|
||||
|
||||
# log_location specifies where the client should log to.
|
||||
# valid values are: a quoted string specifying a file, or STDOUT with
|
||||
# no quotes.
|
||||
|
||||
log_location "/var/log/chef/solo.log"
|
||||
|
||||
# file_cache_path specifies where solo should look for the cookbooks to use
|
||||
# valid value is any filesystem directory location. This is slightly
|
||||
# different from 'normal' client mode as solo is actually downloading (or
|
||||
# using) the specified cookbooks in this location.
|
||||
|
||||
file_cache_path "/var/lib/chef"
|
||||
|
||||
# cookbook_path specifies where solo should look for cookbooks it will use.
|
||||
# valid value is a string, or array of strings of filesystem directory locations.
|
||||
# This setting is similar to the server setting of the same name. Solo will use
|
||||
# this as a search location, in Array order. It should be a subdirectory of
|
||||
# file_cache_path, above.
|
||||
|
||||
cookbook_path [ "/var/lib/chef/cookbooks" ]
|
||||
|
||||
# Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
|
||||
# contain timestamps.
|
||||
# valid values are true or false (no quotes, see above about Ruby idioms). The
|
||||
# printed timestamp is rfc2822, for example:
|
||||
# Fri, 31 Jul 2009 19:19:46 -0600
|
||||
|
||||
Mixlib::Log::Formatter.show_time = true
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-109.ebuild,v 1.1 2015/04/25 14:28:18 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit linux-info eutils systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
|
||||
HOMEPAGE="http://mcelog.org/"
|
||||
SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="selinux"
|
||||
|
||||
RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
|
||||
|
||||
CONFIG_CHECK="~X86_MCE"
|
||||
|
||||
# TODO: add mce-inject to the tree to support test phase
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
|
||||
"${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
|
||||
"${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin ${PN}
|
||||
|
||||
insinto /etc/cron.daily
|
||||
newins ${PN}.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins ${PN}.logrotate ${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins mcelog.conf
|
||||
exeinto /etc/${PN}
|
||||
doexe triggers/*
|
||||
|
||||
dodoc CHANGES README TODO *.pdf
|
||||
doman ${PN}.8
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "The default configuration set is now installed in /etc/${PN}"
|
||||
einfo "you might want to edit those files."
|
||||
einfo
|
||||
einfo "A sample cronjob is installed into /etc/cron.daily"
|
||||
einfo "without executable bit (system service is the preferred method now)"
|
||||
}
|
@ -0,0 +1,227 @@
|
||||
From a2676d349a975a142f1119c0aecb435e1b0db8b8 Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Grenier <grenier@cgsecurity.org>
|
||||
Date: Sat, 14 Jun 2014 12:08:59 +0200
|
||||
Subject: TestDisk: fix rare crash when listing NTFS directories
|
||||
|
||||
|
||||
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
|
||||
index d416cea..b51c63d 100644
|
||||
--- a/src/ntfs_dir.c
|
||||
+++ b/src/ntfs_dir.c
|
||||
@@ -167,7 +167,15 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
|
||||
const MFT_REF mref, const unsigned dt_type)
|
||||
{
|
||||
int result = 0;
|
||||
- char *filename = (char *)calloc (1, MAX_PATH);
|
||||
+ char *filename;
|
||||
+ ntfs_inode *ni;
|
||||
+ ntfs_attr_search_ctx *ctx_si = NULL;
|
||||
+ file_info_t *new_file=NULL;
|
||||
+ /* Keep FILE_NAME_WIN32 and FILE_NAME_POSIX */
|
||||
+ if ((name_type & FILE_NAME_WIN32_AND_DOS) == FILE_NAME_DOS)
|
||||
+ return 0;
|
||||
+
|
||||
+ filename = (char *)calloc (1, MAX_PATH);
|
||||
if (!filename)
|
||||
{
|
||||
log_critical("ntfs_td_list_entry calloc failed\n");
|
||||
@@ -178,118 +186,111 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
|
||||
if (ntfs_ucstoutf8(ls->cd, name, name_len, &filename, MAX_PATH) < 0 &&
|
||||
ntfs_ucstombs (name, name_len, &filename, MAX_PATH) < 0) {
|
||||
log_error("Cannot represent filename in current locale.\n");
|
||||
- goto free;
|
||||
+ goto freefn;
|
||||
}
|
||||
#else
|
||||
if (ntfs_ucstombs (name, name_len, &filename, MAX_PATH) < 0) {
|
||||
log_error("Cannot represent filename in current locale.\n");
|
||||
- goto free;
|
||||
+ goto freefn;
|
||||
}
|
||||
#endif
|
||||
|
||||
result = 0; /* These are successful */
|
||||
if (MREF(mref) < FILE_first_user && filename[0] == '$') /* Hide system file */
|
||||
- goto free;
|
||||
- /* Keep FILE_NAME_WIN32 and FILE_NAME_POSIX */
|
||||
- if ((name_type & FILE_NAME_WIN32_AND_DOS) == FILE_NAME_DOS)
|
||||
- goto free;
|
||||
- {
|
||||
- ntfs_inode *ni;
|
||||
- ntfs_attr_search_ctx *ctx_si = NULL;
|
||||
- file_info_t *new_file=NULL;
|
||||
+ goto freefn;
|
||||
+ result = -1; /* Everything else is bad */
|
||||
|
||||
- result = -1; /* Everything else is bad */
|
||||
+ ni = ntfs_inode_open(ls->vol, mref);
|
||||
+ if (!ni)
|
||||
+ goto freefn;
|
||||
+ new_file=(file_info_t*)MALLOC(sizeof(*new_file));
|
||||
+ new_file->status=0;
|
||||
+ new_file->st_ino=MREF(mref);
|
||||
+ new_file->st_uid=0;
|
||||
+ new_file->st_gid=0;
|
||||
|
||||
- ni = ntfs_inode_open(ls->vol, mref);
|
||||
- if (!ni)
|
||||
- goto release;
|
||||
- new_file=(file_info_t*)MALLOC(sizeof(*new_file));
|
||||
- new_file->status=0;
|
||||
- td_list_add_tail(&new_file->list, &ls->dir_list->list);
|
||||
- new_file->st_ino=MREF(mref);
|
||||
- new_file->st_uid=0;
|
||||
- new_file->st_gid=0;
|
||||
-
|
||||
- ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec);
|
||||
- if (ctx_si)
|
||||
+ ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec);
|
||||
+ if (ctx_si)
|
||||
+ {
|
||||
+ if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0)
|
||||
{
|
||||
- if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0)
|
||||
+ const ATTR_RECORD *attr = ctx_si->attr;
|
||||
+ const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr +
|
||||
+ le16_to_cpu(attr->value_offset));
|
||||
+ if(si)
|
||||
{
|
||||
- const ATTR_RECORD *attr = ctx_si->attr;
|
||||
- const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr +
|
||||
- le16_to_cpu(attr->value_offset));
|
||||
- if(si)
|
||||
- {
|
||||
- new_file->td_atime=td_ntfs2utc(sle64_to_cpu(si->last_access_time));
|
||||
- new_file->td_mtime=td_ntfs2utc(sle64_to_cpu(si->last_data_change_time));
|
||||
- new_file->td_ctime=td_ntfs2utc(sle64_to_cpu(si->creation_time));
|
||||
- }
|
||||
+ new_file->td_atime=td_ntfs2utc(sle64_to_cpu(si->last_access_time));
|
||||
+ new_file->td_mtime=td_ntfs2utc(sle64_to_cpu(si->last_data_change_time));
|
||||
+ new_file->td_ctime=td_ntfs2utc(sle64_to_cpu(si->creation_time));
|
||||
}
|
||||
- ntfs_attr_put_search_ctx(ctx_si);
|
||||
}
|
||||
+ ntfs_attr_put_search_ctx(ctx_si);
|
||||
+ }
|
||||
+ {
|
||||
+ ATTR_RECORD *rec;
|
||||
+ int first=1;
|
||||
+ ntfs_attr_search_ctx *ctx = NULL;
|
||||
+ if (dt_type == NTFS_DT_DIR)
|
||||
{
|
||||
- ATTR_RECORD *rec;
|
||||
- int first=1;
|
||||
- ntfs_attr_search_ctx *ctx = NULL;
|
||||
- if (dt_type == NTFS_DT_DIR)
|
||||
+ new_file->name=strdup(filename);
|
||||
+ new_file->st_mode = LINUX_S_IFDIR| LINUX_S_IRUGO | LINUX_S_IXUGO;
|
||||
+ new_file->st_size=0;
|
||||
+ td_list_add_tail(&new_file->list, &ls->dir_list->list);
|
||||
+ first=0;
|
||||
+ }
|
||||
+ ctx = ntfs_attr_get_search_ctx(ni, ni->mrec);
|
||||
+ /* A file has always an unnamed date stream and
|
||||
+ * may have named alternate data streams (ADS) */
|
||||
+ while((rec = find_attribute(AT_DATA, ctx)))
|
||||
+ {
|
||||
+ const s64 filesize = ntfs_get_attribute_value_length(ctx->attr);
|
||||
+ if(rec->name_length &&
|
||||
+ (ls->dir_data->param & FLAG_LIST_ADS)!=FLAG_LIST_ADS)
|
||||
+ continue;
|
||||
+ if(first==0)
|
||||
{
|
||||
- new_file->name=strdup(filename);
|
||||
- new_file->st_mode = LINUX_S_IFDIR| LINUX_S_IRUGO | LINUX_S_IXUGO;
|
||||
- new_file->st_size=0;
|
||||
- td_list_add_tail(&new_file->list, &ls->dir_list->list);
|
||||
- first=0;
|
||||
+ const file_info_t *old_file=new_file;
|
||||
+ new_file=(file_info_t *)MALLOC(sizeof(*new_file));
|
||||
+ memcpy(new_file, old_file, sizeof(*new_file));
|
||||
}
|
||||
- ctx = ntfs_attr_get_search_ctx(ni, ni->mrec);
|
||||
- /* A file has always an unnamed date stream and
|
||||
- * may have named alternate data streams (ADS) */
|
||||
- while((rec = find_attribute(AT_DATA, ctx)))
|
||||
+ new_file->st_mode = LINUX_S_IFREG | LINUX_S_IRUGO;
|
||||
+ new_file->st_size=filesize;
|
||||
+ if (rec->name_length)
|
||||
{
|
||||
- const s64 filesize = ntfs_get_attribute_value_length(ctx->attr);
|
||||
- if(rec->name_length &&
|
||||
- (ls->dir_data->param & FLAG_LIST_ADS)!=FLAG_LIST_ADS)
|
||||
- continue;
|
||||
- if(first==0)
|
||||
- {
|
||||
- const file_info_t *old_file=new_file;
|
||||
- new_file=(file_info_t *)MALLOC(sizeof(*new_file));
|
||||
- memcpy(new_file, old_file, sizeof(*new_file));
|
||||
- }
|
||||
- new_file->st_mode = LINUX_S_IFREG | LINUX_S_IRUGO;
|
||||
- new_file->st_size=filesize;
|
||||
- if (rec->name_length)
|
||||
+ char *stream_name=NULL;
|
||||
+ new_file->status=FILE_STATUS_ADS;
|
||||
+ new_file->name = (char *)MALLOC(MAX_PATH);
|
||||
+ if (ntfs_ucstombs((ntfschar *) ((char *) rec + le16_to_cpu(rec->name_offset)),
|
||||
+ rec->name_length, &stream_name, 0) < 0)
|
||||
{
|
||||
- char *stream_name=NULL;
|
||||
- new_file->status=FILE_STATUS_ADS;
|
||||
- new_file->name = (char *)MALLOC(MAX_PATH);
|
||||
- if (ntfs_ucstombs((ntfschar *) ((char *) rec + le16_to_cpu(rec->name_offset)),
|
||||
- rec->name_length, &stream_name, 0) < 0)
|
||||
- {
|
||||
- log_error("ERROR: Cannot translate name into current locale.\n");
|
||||
- snprintf(new_file->name, MAX_PATH, "%s:???", filename);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- snprintf(new_file->name, MAX_PATH, "%s:%s", filename, stream_name);
|
||||
- }
|
||||
- free(stream_name);
|
||||
+ log_error("ERROR: Cannot translate name into current locale.\n");
|
||||
+ snprintf(new_file->name, MAX_PATH, "%s:???", filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
- new_file->name=strdup(filename);
|
||||
+ snprintf(new_file->name, MAX_PATH, "%s:%s", filename, stream_name);
|
||||
}
|
||||
- td_list_add_tail(&new_file->list, &ls->dir_list->list);
|
||||
- first=0;
|
||||
+ free(stream_name);
|
||||
}
|
||||
- ntfs_attr_put_search_ctx(ctx);
|
||||
+ else
|
||||
+ {
|
||||
+ new_file->name=strdup(filename);
|
||||
+ }
|
||||
+ td_list_add_tail(&new_file->list, &ls->dir_list->list);
|
||||
+ first=0;
|
||||
+ }
|
||||
+ ntfs_attr_put_search_ctx(ctx);
|
||||
+ if(first)
|
||||
+ {
|
||||
+ free(new_file);
|
||||
}
|
||||
-
|
||||
- result = 0;
|
||||
-release:
|
||||
- /* close the inode. */
|
||||
- if (ni)
|
||||
- ntfs_inode_close(ni);
|
||||
}
|
||||
-free:
|
||||
+
|
||||
+ result = 0;
|
||||
+ /* close the inode. */
|
||||
+ if (ni)
|
||||
+ ntfs_inode_close(ni);
|
||||
+freefn:
|
||||
free (filename);
|
||||
return result;
|
||||
}
|
||||
--
|
||||
cgit v0.10.2
|
||||
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/testdisk/testdisk-6.14-r1.ebuild,v 1.1 2015/04/24 15:24:10 nicolasbock Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool"
|
||||
HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk"
|
||||
SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="ewf jpeg ntfs reiserfs static qt4"
|
||||
|
||||
REQUIRED_USE="static? ( !qt4 )"
|
||||
|
||||
# WARNING: reiserfs support does NOT work with reiserfsprogs
|
||||
# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released).
|
||||
DEPEND="
|
||||
static? (
|
||||
sys-apps/util-linux[static-libs]
|
||||
>=sys-libs/ncurses-5.2[static-libs]
|
||||
jpeg? ( virtual/jpeg:*[static-libs] )
|
||||
ntfs? ( sys-fs/ntfs3g[static-libs] )
|
||||
reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] )
|
||||
>=sys-fs/e2fsprogs-1.35[static-libs]
|
||||
sys-libs/zlib[static-libs]
|
||||
!arm? ( ewf? ( app-forensics/libewf:*[static-libs] ) )
|
||||
)
|
||||
!static? (
|
||||
sys-apps/util-linux
|
||||
>=sys-libs/ncurses-5.2
|
||||
jpeg? ( virtual/jpeg:* )
|
||||
ntfs? ( sys-fs/ntfs3g )
|
||||
reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 )
|
||||
>=sys-fs/e2fsprogs-1.35
|
||||
sys-libs/zlib
|
||||
!arm? ( ewf? ( app-forensics/libewf:* ) )
|
||||
qt4? ( >=dev-qt/qtgui-4.0.1:* )
|
||||
)"
|
||||
RDEPEND="!static? ( ${DEPEND} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/fix_rare_crash-6.14.patch"
|
||||
)
|
||||
DOCS=( )
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
BUILD_DIR="${S}"
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# this is static method is the same used by upstream for their 'static' make
|
||||
# target, but better, as it doesn't break.
|
||||
use static && append-ldflags -static
|
||||
|
||||
# --with-foo are broken, any use of --with/--without disable the
|
||||
# functionality.
|
||||
# The following variation must be used.
|
||||
use reiserfs || myconf+=" --without-reiserfs"
|
||||
use ntfs || myconf+=" --without-ntfs --without-ntfs3g"
|
||||
use jpeg || myconf+=" --without-jpeg"
|
||||
use ewf || myconf+=" --without-ewf"
|
||||
myconf+=$(usex qt4 " --enable-qt" " --disable-qt")
|
||||
|
||||
econf \
|
||||
--docdir "${ROOT}/usr/share/doc/${P}" \
|
||||
--enable-sudo \
|
||||
${myconf}
|
||||
|
||||
# perform safety checks for NTFS, REISERFS and JPEG
|
||||
if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then
|
||||
die "Failed to find either NTFS or NTFS-3G library."
|
||||
fi
|
||||
if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then
|
||||
die "Failed to find reiserfs library."
|
||||
fi
|
||||
if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then
|
||||
die "Failed to find jpeg library."
|
||||
fi
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST cdrtools-3.01a17.tar.bz2 2061522 SHA256 3d613965b213ad83e4be0ba2535e784901839ea4d11a20a2beb6765f0eb76dfa SHA512 34a0579c536028b030cf828441ad55a705472646bc3a1ae962aad234fbe0b12c2bcb670511487c17086f5ba7643d1b8ae42a4a86bfe2940dc94f9744377daa8b WHIRLPOOL b718d559e0b36a576a42a38f84b3917891450d0bbab47b084eb1e906a396cf28ce47b79fd16565d4e0697311ee0c3d5abdd95b52ba2d7ae4e9f32d9b26bc26e1
|
||||
DIST cdrtools-3.01a24.tar.bz2 2075400 SHA256 4d9907b84f5b65dc6ca278b6202b90b8eb68652b01aa4dda978ffede8bdd4a5b SHA512 19be30de77fca00bb06fa6325149421304c1d5ff7d40a9d842496058494fcf0e798678c661ff3ae9ebc9e4c5971917f7aabfd813a6d88ff863d7e2e5f1456766 WHIRLPOOL 4533288dffef2b702eeef2a44fd702aff3e66283d5d90c810eb177ee4f1f1aa7cfd75238bf1f2a406e9b8ccaa43c7a77fb401825f8ce806e73fdc80abcc0a45a
|
||||
DIST cdrtools-3.01a27.tar.bz2 2079545 SHA256 71188d5a9ad61de440b07471e2612b937b5f9b456eae10efbdb012b6a9dfe3ca SHA512 bec2efd8989899cec58d39129f4bd8f0c42af34d65c575af48feea89a63c7eaf5064a885922730364879b325a9e0d6d78c2e3e7dc4ee5b06523da33f55333f72 WHIRLPOOL 5f722e7861452f6a216d9a4df9b5bd5c61b75056ba8503d1a489b42ce075bf24e469849f943bce180c46ce7030fdd1ce940a71fe7f17b2d585b6940c6abe87d9
|
||||
DIST cdrtools-3.01a28.tar.bz2 2081108 SHA256 3da9ad914cd5fb68037f7508cadfa05a31e3bb39c655b2dd0933345d44f86c7b SHA512 d703ba99bb9435006931ec8f7864137213d2a89d34611eb4a9e3d6fdaa438af55625da1a6d6005ac70a669f091d7133ff3565ce5be9dbd51723168887ae6baa5 WHIRLPOOL 98e7efbd24bf32dcf04e813127495a02494a2fccac14954f18e1e4843842008512dfe7dfd72c3e534ca0c1bb4ac46754d4479f229bff60e6877dc172c77cf58e
|
||||
|
@ -1,269 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha27.ebuild,v 1.5 2015/02/25 22:21:33 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit fcaps multilib eutils toolchain-funcs flag-o-matic gnuconfig
|
||||
|
||||
MY_P="${P/_alpha/a}"
|
||||
|
||||
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
|
||||
HOMEPAGE="http://sourceforge.net/projects/cdrtools/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="acl caps nls unicode"
|
||||
|
||||
RDEPEND="acl? ( virtual/acl )
|
||||
caps? ( sys-libs/libcap )
|
||||
nls? ( virtual/libintl )
|
||||
!app-cdr/cdrkit"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-misc/makedepend
|
||||
nls? ( >=sys-devel/gettext-0.18.1.1 )"
|
||||
|
||||
S=${WORKDIR}/${P/_alpha[0-9][0-9]}
|
||||
|
||||
FILECAPS=(
|
||||
cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep usr/bin/cdrecord --
|
||||
cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav --
|
||||
cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd
|
||||
)
|
||||
|
||||
cdrtools_os() {
|
||||
local os="linux"
|
||||
[[ ${CHOST} == *-darwin* ]] && os="mac-os10"
|
||||
[[ ${CHOST} == *-freebsd* ]] && os="freebsd"
|
||||
echo "${os}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
gnuconfig_update
|
||||
|
||||
# Remove profiled make files.
|
||||
find -name '*_p.mk' -delete
|
||||
|
||||
# Adjusting hardcoded paths.
|
||||
sed -i -e "s|opt/schily|usr|" \
|
||||
$(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \
|
||||
|| die "sed opt/schily"
|
||||
|
||||
sed -i -e "s|\(^INSDIR=\t\tshare/doc/\)|\1${PF}/|" \
|
||||
$(find ./ -type f -exec grep -l '^INSDIR.\+doc' '{}' '+') \
|
||||
|| die "sed doc"
|
||||
|
||||
# Respect libdir.
|
||||
sed -i -e "s|\(^INSDIR=\t\t\)lib|\1$(get_libdir)|" \
|
||||
$(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \
|
||||
|| die "sed multilib"
|
||||
|
||||
# Do not install static libraries.
|
||||
sed -i -e "s|include\t\t.*rules.lib||" \
|
||||
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
|
||||
|| die "sed rules"
|
||||
|
||||
# Enable verbose build.
|
||||
sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \
|
||||
RULES/*.rul RULES/rules.prg RULES/rules.inc \
|
||||
|| die "sed verbose rules"
|
||||
|
||||
# Respect CC/CXX variables.
|
||||
cd "${S}"/RULES
|
||||
local tcCC=$(tc-getCC)
|
||||
local tcCXX=$(tc-getCXX)
|
||||
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
|
||||
rules1.top || die "sed rules1.top"
|
||||
sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \
|
||||
-e "/^CC++_COM_DEF=/s|g++|${tcCXX}|" \
|
||||
-e "/COPTOPT=/s|-O||" \
|
||||
-e 's|$(GCCOPTOPT)||' \
|
||||
cc-gcc.rul || die "sed cc-gcc.rul"
|
||||
sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \
|
||||
rules.cnf || die "sed rules.cnf"
|
||||
|
||||
# Add support for arm64
|
||||
ln -sf i586-linux-cc.rul aarch64-linux-cc.rul
|
||||
ln -sf i586-linux-gcc.rul aarch64-linux-gcc.rul
|
||||
|
||||
# Schily make setup.
|
||||
cd "${S}"/DEFAULTS
|
||||
local os=$(cdrtools_os)
|
||||
|
||||
sed -i \
|
||||
-e "s|^\(DEFLINKMODE=\).*|\1\tdynamic|" \
|
||||
-e "s|^\(LINUX_INCL_PATH=\).*|\1|" \
|
||||
-e "s|^\(LDPATH=\).*|\1|" \
|
||||
-e "s|^\(RUNPATH=\).*|\1|" \
|
||||
-e "s|^\(INS_BASE=\).*|\1\t${ED}/usr|" \
|
||||
-e "s|^\(INS_RBASE=\).*|\1\t${ED}|" \
|
||||
-e "s|^\(DEFINSGRP=\).*|\1\t0|" \
|
||||
-e '/^DEFUMASK/s,002,022,g' \
|
||||
Defaults.${os} || die "sed Schily make setup"
|
||||
# re DEFUMASK above:
|
||||
# bug 486680: grsec TPE will block the exec if the directory is
|
||||
# group-writable. This is painful with cdrtools, because it makes a bunch of
|
||||
# group-writable directories during build. Change the umask on their
|
||||
# creation to prevent this.
|
||||
}
|
||||
|
||||
ac_cv_sizeof() {
|
||||
cat <<-EOF >"${T}"/test.c
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
int main () {
|
||||
static int test_array [1 - 2 * !((sizeof(TYPE)) == LEN)];
|
||||
test_array [0] = 0;
|
||||
return test_array [0];
|
||||
}
|
||||
EOF
|
||||
|
||||
local i=1
|
||||
while [[ ${i} -lt 20 ]] ; do
|
||||
if ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o /dev/null -DTYPE="$1" -DLEN=$i 2>/dev/null; then
|
||||
echo ${i}
|
||||
return 0
|
||||
fi
|
||||
: $(( i += 1 ))
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use acl || export ac_cv_header_sys_acl_h="no"
|
||||
use caps || export ac_cv_lib_cap_cap_get_proc="no"
|
||||
|
||||
# skip obsolete configure script
|
||||
if tc-is-cross-compiler ; then
|
||||
# Cache known values for targets. #486680
|
||||
|
||||
tc-export CC
|
||||
local var val t types=(
|
||||
char "short int" int "long int" "long long"
|
||||
"unsigned char" "unsigned short int" "unsigned int"
|
||||
"unsigned long int" "unsigned long long"
|
||||
float double "long double" size_t ssize_t ptrdiff_t
|
||||
mode_t uid_t gid_t pid_t dev_t time_t wchar_t
|
||||
"char *" "unsigned char *"
|
||||
)
|
||||
for t in "${types[@]}" ; do
|
||||
var="ac_cv_sizeof_${t// /_}"
|
||||
var=${var//[*]/p}
|
||||
val=$(ac_cv_sizeof "${t}") || die "could not compute ${t}"
|
||||
export "${var}=${val}"
|
||||
einfo "Computing sizeof(${t}) as ${val}"
|
||||
done
|
||||
# We don't have these types.
|
||||
export ac_cv_sizeof___int64=0
|
||||
export ac_cv_sizeof_unsigned___int64=0
|
||||
export ac_cv_sizeof_major_t=${ac_cv_sizeof_dev_t}
|
||||
export ac_cv_sizeof_minor_t=${ac_cv_sizeof_dev_t}
|
||||
export ac_cv_sizeof_wchar=${ac_cv_sizeof_wchar_t}
|
||||
|
||||
export ac_cv_type_prototypes="yes"
|
||||
export ac_cv_func_mlock{,all}="yes"
|
||||
export ac_cv_func_{e,f,g}cvt=$(usex elibc_glibc)
|
||||
export ac_cv_func_dtoa_r="no"
|
||||
export ac_cv_func_sys_siglist{,_def}="no"
|
||||
export ac_cv_func_printf_{j,ll}="yes"
|
||||
export ac_cv_realloc_null="yes"
|
||||
export ac_cv_no_user_malloc="no"
|
||||
export ac_cv_var_timezone="yes"
|
||||
export ac_cv_var___progname{,_full}="yes"
|
||||
export ac_cv_fnmatch_igncase="yes"
|
||||
export ac_cv_file__dev_{fd_{0,1,2},null,std{err,in,out},tty,zero}="yes"
|
||||
export ac_cv_file__usr_src_linux_include="no"
|
||||
|
||||
case $(cdrtools_os) in
|
||||
linux)
|
||||
export ac_cv_func_bsd_{g,s}etpgrp="no"
|
||||
export ac_cv_hard_symlinks="yes"
|
||||
export ac_cv_link_nofollow="yes"
|
||||
export ac_cv_access_e_ok="no"
|
||||
|
||||
export ac_cv_dev_minor_noncontig="yes"
|
||||
case ${ac_cv_sizeof_long_int} in
|
||||
4) export ac_cv_dev_minor_bits="32";;
|
||||
8) export ac_cv_dev_minor_bits="44";;
|
||||
esac
|
||||
|
||||
cat <<-EOF >"${T}"/test.c
|
||||
struct {
|
||||
char start[6];
|
||||
unsigned char x1:4;
|
||||
unsigned char x2:4;
|
||||
char end[5];
|
||||
} a = {
|
||||
.start = {'S', 't', 'A', 'r', 'T', '_'},
|
||||
.x1 = 5,
|
||||
.x2 = 4,
|
||||
.end = {'_', 'e', 'N', 'd', 'X'},
|
||||
};
|
||||
EOF
|
||||
${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
|
||||
if grep -q 'StArT_E_eNdX' "${T}"/test.o ; then
|
||||
export ac_cv_c_bitfields_htol="no"
|
||||
elif grep -q 'StArT_T_eNdX' "${T}"/test.o ; then
|
||||
export ac_cv_c_bitfields_htol="yes"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use unicode; then
|
||||
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)"
|
||||
if [[ -n ${flags} ]]; then
|
||||
append-flags ${flags}
|
||||
else
|
||||
ewarn "Your compiler does not support the options required to build"
|
||||
ewarn "cdrtools with unicode in USE. unicode flag will be ignored."
|
||||
fi
|
||||
fi
|
||||
|
||||
# If not built with -j1, "sometimes" cdda2wav will not be built.
|
||||
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
|
||||
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# If not built with -j1, "sometimes" manpages are not installed.
|
||||
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
|
||||
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install
|
||||
|
||||
# These symlinks are for compat with cdrkit.
|
||||
dosym schily /usr/include/scsilib
|
||||
dosym ../scg /usr/include/schily/scg
|
||||
|
||||
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
|
||||
|
||||
cd "${S}"/cdda2wav
|
||||
docinto cdda2wav
|
||||
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
|
||||
|
||||
cd "${S}"/mkisofs
|
||||
docinto mkisofs
|
||||
dodoc ChangeLog* TODO
|
||||
|
||||
# Remove man pages related to the build system
|
||||
rm -rvf "${ED}"/usr/share/man/man5
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fcaps_pkg_postinst
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
einfo
|
||||
einfo "Darwin/OS X use the following device names:"
|
||||
einfo
|
||||
einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices"
|
||||
einfo
|
||||
einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices"
|
||||
einfo
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST dvtm-0.11.tar.gz 34499 SHA256 01a29fdf6556f019f183bd517a1045bcc12d23561c1a84c4b5a8b3ba2d2feb87 SHA512 e1c76540bbddf6245f77a749146f2c3c836a8f2cf1c0e96ef198c3be9e5069458360ecf0a0a523ce9fcf22d55a424ee064420f8699875026cb399fc3f017cfa7 WHIRLPOOL 7d18be8ca4ab86d93f6d98d07a1a1843d6bb0ea796affb99864fcd31798396a4a431895f4b3b955be64de2f6661f8c87c07c6b8dc09992c1d53107ee3500f52b
|
||||
DIST dvtm-0.14.tar.gz 35893 SHA256 8a9bb341f8a4c578b839e22d9a707f053a27ae6df15158e16f4fee787e43747a SHA512 d47f55b4ce47582f665ac5b5d86bb9137722f65b157bdd80aaaf45a2cd8d783a3b0718886c7a7ea1d900762359316c2d76816460dac03484e122d43c64f57dd6 WHIRLPOOL 1ca474b4ad5f9d7fa7106ec0c180d32e06cd2d02be1e3a3392a7c6373ecf00d5abba26e8e4d2ed67d8784533db10951bebc408cad9c068e7270407beb339706e
|
||||
DIST dvtm-0.8.tar.gz 27543 SHA256 4c84b7c32f6cd476ef92150c4c1ca211836ed00f16ca8bdd4089933912b39a78 SHA512 6b4c910aee637fe0e4eeedf7905e893ffee2476baffc08697093b2181197aaca1aafd1095fb7e140fea2f0dd9492edf608bad5ad4ad410a5a3e76610732220eb WHIRLPOOL c3505ca64e36a17b1e0de175448c6bbf09ba18732b41787c8f9d7062afb3aca1a72f0a74d890da2261db7b94bd14ac83f5998ff87c776253f0c4c0a2df4a575b
|
||||
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/dvtm-0.14.ebuild,v 1.1 2015/04/25 10:47:05 chithanh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit savedconfig toolchain-funcs
|
||||
|
||||
DESCRIPTION="Dynamic virtual terminal manager"
|
||||
HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://repo.or.cz/dvtm.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="unicode"
|
||||
|
||||
DEPEND="sys-libs/ncurses[unicode?]"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e 's|FLAGS =|FLAGS +=|' \
|
||||
-e 's|-I/usr/local/include||' \
|
||||
-e 's|-L/usr/local/lib||' \
|
||||
-e 's|-Os||' \
|
||||
config.mk || die "sed config.mk failed"
|
||||
use unicode || {
|
||||
sed -i \
|
||||
-e 's|-lncursesw|-lncurses|' \
|
||||
config.mk || die "sed config.mk failed"
|
||||
}
|
||||
sed -i \
|
||||
-e '/strip/d' \
|
||||
-e 's:@tic :@tic -o ${DESTDIR}${PREFIX}/share/terminfo :g' \
|
||||
Makefile || die "sed Makefile failed"
|
||||
|
||||
restore_config config.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local msg=""
|
||||
use savedconfig && msg=", please check the configfile"
|
||||
emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="/usr" install
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
newins config.h ${PF}.config.h
|
||||
|
||||
dodoc README
|
||||
|
||||
save_config config.h
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This ebuild has support for user defined configs"
|
||||
elog "Please read this ebuild for more details and re-emerge as needed"
|
||||
elog "if you want to add or remove functionality for ${PN}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST g-sorcery-0.1.tar.gz 45796 SHA256 47fbc40864849cb4b9dfe15d79a38310705fc4dd2a7d5c2ef99688f5b31edec6 SHA512 207776ed65c79365dd65a21b14f3ba38589a2b5f47c3c6ac38691ba7949b9a836f6a8543e443119d6f2381a5f34ee854ecbc7d2f88527301c7cb1e10478406a5 WHIRLPOOL 4af6a5267d2c3dc5b9c4932b39dc474419f95c0c279d3211847abd8aa25cb148413815099a8c1866156d2437c673850445fbedd04e00076072c9ed91fc150897
|
||||
DIST g-sorcery-0.2.tar.gz 54173 SHA256 0d37d5f7ad41771fadefef4caa7d75470c334f277d50107b727f8cd4688b5189 SHA512 9715d468c3eb34eac2bda81b7442d86fc8af984c2115c93682ae6c63d59a9ed3d7d0234df845659ccd991eb304d732ae33e31c217a7916b8dd08e2617984cb32 WHIRLPOOL 8e9439c11132f25ef8f21421ff89043773de15211934dbb45e0b409d058f41b347f536f0b88d0f1a7f8632918b08988edeb76897a2b9d087e1f83da55e35fcac
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/g-sorcery/g-sorcery-0.2.ebuild,v 1.1 2015/04/24 21:57:49 jauhien Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_3,3_4})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="framework for ebuild generators"
|
||||
HOMEPAGE="https://github.com/jauhien/g-sorcery"
|
||||
SRC_URI="https://github.com/jauhien/g-sorcery/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="bson"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="bson? ( dev-python/pymongo[$(python_gen_usedep 'python*')] )
|
||||
sys-apps/portage[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
PDEPEND=">=app-portage/layman-2.2.0[g-sorcery(-),$(python_gen_usedep 'python*')]"
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="." "${PYTHON}" scripts/run_tests.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/*.8
|
||||
dohtml docs/developer_instructions.html
|
||||
diropts -m0777
|
||||
dodir /var/lib/g-sorcery
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST gs-pypi-0.1.tar.gz 15351 SHA256 98a684cad3bb64af397dac5373b57a4bb23a6784dec6f3d049423808d068c1d8 SHA512 e7d8dabed21de28f327da3163e95ea16dfb63c27d502233c0f6eae7bf3146866498c492795eff5c7126bf56bf6dd1613457290ffab83962741d49bd9254f059f WHIRLPOOL e7ce64d24302e4daa5ea2fdb96d1f43ccf9c5af1bd28a4de12dce05f73772de495e8c3f459088bac305caab02cae6f97018081d800eb1fadcc2e1ae133302c26
|
||||
DIST gs-pypi-0.2.tar.gz 16582 SHA256 17c72368d10d740f31cd84e237a350b10ec1ac0606432fc226a167d0433061ac SHA512 b28143f6eb85151cee27c24f11fd8e2adae7115120cc38eeaaa9a59af49af9cee8423725db0babc0dec7ef357ed2485f8a360f69db9fb246f1097fc0f3c227b0 WHIRLPOOL dbeae06ece88f1842c8be9b517a386534da433f599bbf6001b5b50fc22cfe0977569651c3b9d41a725a3dacb436991e8679ba403e8cc12528c9674ff1dcf78d6
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/gs-pypi/gs-pypi-0.2.ebuild,v 1.1 2015/04/24 22:00:02 jauhien Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_3,3_4})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI="https://github.com/jauhien/gs-pypi/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=">=app-portage/g-sorcery-0.2[bson(-),$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/moarvm/moarvm-2015.04.ebuild,v 1.1 2015/04/24 09:44:12 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
MY_PN="MoarVM"
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/libuv"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
S="${WORKDIR}/MoarVM-${PV}"
|
||||
|
||||
src_configure() {
|
||||
perl Configure.pl --prefix="${D}/usr"|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/nqp-2015.04.ebuild,v 1.1 2015/04/24 09:43:25 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# still not working
|
||||
RESTRICT="test"
|
||||
|
||||
inherit eutils multilib versionator
|
||||
|
||||
GITCRAP=e415a4f
|
||||
PARROT_VERSION="6.7.0"
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="http://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="doc +parrot java moar"
|
||||
REQUIRED_USE="|| ( parrot java moar )"
|
||||
|
||||
RDEPEND="parrot? ( >=dev-lang/parrot-${PARROT_VERSION}:=[unicode] )
|
||||
java? ( >=virtual/jre-1.7 )
|
||||
moar? ( =dev-lang/moarvm-${PV} )
|
||||
dev-libs/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
S=${WORKDIR}/perl6-nqp-${GITCRAP}
|
||||
|
||||
src_configure() {
|
||||
use java && myconf+="jvm,"
|
||||
use parrot && myconf+="parrot,"
|
||||
use moar && myconf+="moar,"
|
||||
perl Configure.pl --backend=${myconf} --prefix=/usr || die
|
||||
# dirty hack to make dyncall not fail
|
||||
sed -i -e 's/-Werror=missing-prototypes//' Makefile || die
|
||||
sed -i -e 's/-Werror=missing-declarations//' Makefile || die
|
||||
sed -i -e 's/-Werror=strict-prototypes//' Makefile || die
|
||||
|
||||
# more dirty hack to allow building with newer gcc
|
||||
sed -i -e 's/-Werror=implicit-function-declaration//' Makefile || die
|
||||
sed -i -e 's/-Werror=nested-externs//' Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.pod || die
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/* || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/parrot/parrot-7.3.0.ebuild,v 1.1 2015/04/24 09:40:55 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
# weird failures
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="Virtual machine designed to efficiently compile and execute bytecode for dynamic languages"
|
||||
HOMEPAGE="http://www.parrot.org/"
|
||||
SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/all/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="opengl nls doc examples gdbm +gmp ssl +unicode pcre"
|
||||
|
||||
RDEPEND="sys-libs/readline
|
||||
dev-libs/libffi
|
||||
opengl? ( media-libs/freeglut )
|
||||
nls? ( sys-devel/gettext )
|
||||
unicode? ( >=dev-libs/icu-2.6:= )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3-r1 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.4 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
pcre? ( dev-libs/libpcre )
|
||||
doc? ( dev-perl/JSON )"
|
||||
|
||||
DEPEND="dev-lang/perl[doc?]
|
||||
${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
myconf="--disable-rpath"
|
||||
use unicode || myconf+=" --without-icu"
|
||||
use ssl || myconf+=" --without-crypto"
|
||||
use gdbm || myconf+=" --without-gdbm"
|
||||
use nls || myconf+=" --without-gettext"
|
||||
use gmp || myconf+=" --without-gmp"
|
||||
use opengl || myconf+=" --without-opengl"
|
||||
use pcre || myconf+=" --without-pcre"
|
||||
|
||||
perl Configure.pl \
|
||||
--ccflags="${CFLAGS}" \
|
||||
--linkflags="${LDFLAGS}" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--sharedstatedir="${EPREFIX}"/var/lib/parrot \
|
||||
$myconf || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib
|
||||
# occasionally dies in parallel make
|
||||
emake -j1 || die
|
||||
if use doc ; then
|
||||
emake -j1 html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-dev DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" || die
|
||||
dodoc CREDITS DONORS.pod PBC_COMPAT PLATFORMS RESPONSIBLE_PARTIES TODO || die
|
||||
dosym /usr/bin/parrot-ops2c /usr/bin/ops2c || die
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/* || die
|
||||
fi
|
||||
if use doc; then
|
||||
insinto "/usr/share/doc/${PF}/editor"
|
||||
doins -r editor || die
|
||||
cd docs/html
|
||||
dohtml -r developer.html DONORS.pod.html index.html ops.html parrotbug.html pdds.html \
|
||||
pmc.html tools.html docs src tools || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/rakudo-2015.04.ebuild,v 1.1 2015/04/24 09:45:00 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PV="2015.01"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="A Perl 6 implementation built on the Parrot virtual machine"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="http://rakudo.org/downloads/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc java +moar"
|
||||
|
||||
RDEPEND=">=dev-lang/nqp-${MY_PV}[java?,moar?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
src_configure() {
|
||||
use java && myconf+="jvm,"
|
||||
use moar && myconf+="moar,"
|
||||
perl Configure.pl --backends=${myconf} --prefix=/usr || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.md docs/ChangeLog docs/ROADMAP || die
|
||||
|
||||
if use doc; then
|
||||
dohtml -A svg docs/architecture.html docs/architecture.svg || die
|
||||
dodoc docs/*.pod || die
|
||||
docinto announce
|
||||
dodoc docs/announce/* || die
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue