Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

redis and mongodb.

  • Loading branch information...
commit cd6faad2c0507e31c313a51f210ccb618f44d235 1 parent 184f92e
@wayneeseguin wayneeseguin authored
View
9 mongodb/bin/configure
@@ -3,4 +3,11 @@
path create "${confd_path}/${extension}"
template install "mongodb/mongodb.conf" \
- to "${confd_path}/${extension}/${extension}.conf"
+ to "${confd_path}/${extension}/${extension}.conf"
+
+template seed "${confd_path}/${extension}/${extension}.conf" \
+ prefix_path "${sm_path}/pkg/active/bin" \
+ data_path "${sm_db_path}" \
+ log_path "${sm_log_path}" \
+
+
View
4 mongodb/bin/setup/init
@@ -2,6 +2,8 @@
template install "mongodb/init.d" to "${init_scripts_path}/${extension}"
-template seed "${init_scripts_path}/${extension}" sm_path "$sm_path"
+template seed "${init_scripts_path}/${extension}" \
+ sm_path "$sm_path"
files chmod a+x "${init_scripts_path}/${extension}"
+
View
68 mongodb/shell/functions
@@ -2,68 +2,6 @@
typeset -g architecture os
-mongodb_initialize()
-{
- # The binary downloads are customized based on OS and Arch.
- service_binary="${active_path}/bin/mongod"
- service_cli_binary="${active_path}/bin/mongo"
- service_flags+=(
- --dbpath "${service_db_path}"
- --pidfilepath "${service_pid_file}"
- --bind_ip
- --logpath "${service_log_path}/mongodb.log"
- --logappend
- )
- # TODO: Allow: --replSet foo run
-
- mongodb_set_architecture
- mongodb_set_os
-}
-
-mongodb_prefetch()
-{
- package define \
- base_url "http://fastdl.mongodb.org/${os}" \
- file "mongodb-${os}-${architecture}-${package_version}.${archive_format}" \
- dir "mongodb-${os}-${architecture}-${package_version}"
-}
-
-mongodb_configure()
-{
- true # no-op
-}
-
-mongodb_build()
-{
- true # no-op
-}
-
-mongodb_install()
-{
- local file files name
-
- paths create "${install_path}"
-
- files=($(
- find "${source_path}/${package_dir}/bin" -mindepth 1 -maxdepth 1 -type f
- ))
-
- for file in "${files[@]}"
- do
- name=${file//*\/}
- paths create "${install_path}/bin"
- files copy from "${file}" to "${install_path}/bin/${name}" mode 0755
- done
-}
-
-mongodb_postinstall()
-{
- path create ${service_db_path}
-
- if ! path exists "${install_base_path}"
- then activate_package "${package_name}" "${package_version}" ; fi
-}
-
mongodb_set_architecture()
{
case $(os arch capable) in
@@ -111,9 +49,3 @@ mongodb_backup()
true # TODO: Implement this
}
-mongodb_start()
-{
- mongod ${service_flags[@]}
-}
-
-
View
69 mongodb/shell/hooks
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+mongodb_initialize()
+{
+ # The binary downloads are customized based on OS and Arch.
+ service_binary="${active_path}/bin/mongod"
+ service_cli_binary="${active_path}/bin/mongo"
+ service_flags+=(
+ --dbpath "${service_db_path}"
+ --pidfilepath "${service_pid_file}"
+ --bind_ip
+ --logpath "${service_log_path}/mongodb.log"
+ --logappend
+ )
+ # TODO: Allow: --replSet foo run
+
+ mongodb_set_architecture
+ mongodb_set_os
+}
+
+mongodb_prefetch()
+{
+ package define \
+ base_url "http://fastdl.mongodb.org/${os}" \
+ file "mongodb-${os}-${architecture}-${package_version}.${archive_format}" \
+ dir "mongodb-${os}-${architecture}-${package_version}"
+}
+
+mongodb_configure()
+{
+ true # no-op
+}
+
+mongodb_build()
+{
+ true # no-op
+}
+
+mongodb_install()
+{
+ local file files name
+
+ paths create "${install_path}"
+
+ files=($(
+ find "${source_path}/${package_dir}/bin" -mindepth 1 -maxdepth 1 -type f
+ ))
+
+ for file in "${files[@]}"
+ do
+ name=${file//*\/}
+ paths create "${install_path}/bin"
+ files copy from "${file}" to "${install_path}/bin/${name}" mode 0755
+ done
+}
+
+mongodb_postinstall()
+{
+ path create ${service_db_path}
+
+ if ! path exists "${install_base_path}"
+ then activate_package "${package_name}" "${package_version}" ; fi
+}
+
+mongodb_start()
+{
+ mongod ${service_flags[@]}
+}
+
View
2  mongodb/templates/mongodb.conf
@@ -11,7 +11,7 @@ prefix_path="{{prefix_path}}/mongodb"
data_path="{{data_path}}/mongodb/data/db"
# Where to keep a log file
-log_file="${data_path}/server.log"
+log_file="${log_path}/server.log"
# Who to run the postmaster as, usually "postgres". (NOT "root")
user="mongodb"
View
2  redis/config/defaults
@@ -1,3 +1,3 @@
-version=2.2.13
+version=2.4.2
base_url=http://redis.googlecode.com/files
website_url=http://redis.io/
View
1  redis/config/md5
@@ -1,3 +1,4 @@
+redis-2.4.2.tar.gz=c4b0b5e4953a11a503cb54cf6b09670e
redis-2.2.12.tar.gz=61b287860cab3e89c49390b8f5ffb697
redis-2.2.11.tar.gz=5501c90ca02ae7ea93c34f067b3e0619
redis-2.2.7.tar.gz=86937a61b9788d1d06fbfbd2bff03916
Please sign in to comment.
Something went wrong with that request. Please try again.