diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile.am | 117 | ||||
-rw-r--r-- | etc/couchdb/Makefile.am | 83 | ||||
-rw-r--r-- | etc/couchdb/default.ini.tpl.in | 130 | ||||
-rw-r--r-- | etc/couchdb/local.ini | 45 | ||||
-rw-r--r-- | etc/default/Makefile.am | 13 | ||||
-rw-r--r-- | etc/default/couchdb | 7 | ||||
-rw-r--r-- | etc/init/Makefile.am | 13 | ||||
-rw-r--r-- | etc/init/couchdb.tpl.in | 168 | ||||
-rw-r--r-- | etc/launchd/Makefile.am | 13 | ||||
-rw-r--r-- | etc/launchd/org.apache.couchdb.plist.tpl.in | 30 | ||||
-rw-r--r-- | etc/logrotate.d/Makefile.am | 13 | ||||
-rw-r--r-- | etc/logrotate.d/couchdb.tpl.in | 9 | ||||
-rw-r--r-- | etc/windows/Makefile.am | 13 | ||||
-rw-r--r-- | etc/windows/README.txt.tpl | 29 | ||||
-rw-r--r-- | etc/windows/couchdb.iss.tpl | 84 |
15 files changed, 0 insertions, 767 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am deleted file mode 100644 index 148f7015..00000000 --- a/etc/Makefile.am +++ /dev/null @@ -1,117 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -SUBDIRS = couchdb default init launchd logrotate.d windows - -default_sysconf_data = logrotate.d/couchdb - -if INIT -init_sysconf_data = default/couchdb -init_DATA = init/couchdb -endif - -if LAUNCHD -launchd_DATA = launchd/org.apache.couchdb.plist -endif - -nobase_sysconf_DATA = $(default_sysconf_data) $(init_sysconf_data) - -EXTRA_DIST = \ - default/couchdb \ - windows/couchdb.iss.tpl \ - windows/README.txt.tpl - -if WINDOWS -EXTRA_DIST += \ - windows/setup-couchdb-@version@.exe.md5 \ - windows/setup-couchdb-@version@.exe.sha -endif - -CLEANFILES = $(init_DATA) $(default_sysconf_data) $(launchd_DATA) - -transform = @program_transform_name@ -couchdb_command_name = `echo couchdb | sed '$(transform)'` - -init/couchdb: init/couchdb.tpl - if test "$(mkdir_p)"; then \ - $(mkdir_p) init; \ - else \ - if test ! -d init; then \ - mkdir init; \ - fi \ - fi - sed -e "s|%configure_input%|$@. Generated from $< by configure.|" \ - -e "s|%bindir%|$(bindir)|" \ - -e "s|%sysconfdir%|$(sysconfdir)|" \ - -e "s|%localstaterundir%|$(localstaterundir)|" \ - -e "s|%couchdb_command_name%|$(couchdb_command_name)|" \ - < $< > $@ - -logrotate.d/couchdb: logrotate.d/couchdb.tpl - sed -e "s|%localstatelogdir%|@localstatelogdir@|g" < $< > $@ - -launchd/org.apache.couchdb.plist: launchd/org.apache.couchdb.plist.tpl - if test "$(mkdir_p)"; then \ - $(mkdir_p) launchd; \ - else \ - if test ! -d launchd; then \ - mkdir launchd; \ - fi \ - fi - sed -e "s|%configure_input%|$@. Generated from $< by configure.|" \ - -e "s|%bindir%|$(bindir)|" \ - -e "s|%couchdb_command_name%|$(couchdb_command_name)|" \ - < $< > $@ - -if WINDOWS - -# README.txt has \n line endings in the repo and must have \r\n -# when installed as notepad is used to view it. -# Also: the targets below don't seem to update after an svn-up (which -# changes the version string in the generated files) so we trick make -# into always building it with the FORCE pattern... -windows/README.txt: windows/README.txt.tpl FORCE - sed -e "s|%package_name%|@package_name@|g" \ - -e "s|%version%|@version@|g" \ - < $< | unix2dos > $@ - -windows/couchdb.iss: windows/couchdb.iss.tpl FORCE - sed -e "s|%configure_input%|$@. Generated from $< by configure.|" \ - -e "s|%package_name%|@package_name@|g" \ - -e "s|%locallibbindir%|`cygpath -m @locallibbindir@`|g" \ - -e "s|%version%|@version@|g" \ - -e "s|%erts_version%|`$(ERL) -version 2>&1 | $(SED) 's/[^0-9\.]//g'`|g" \ - -e "s|%openssl_bin_dir%|@openssl_bin_dir@|g" \ - -e "s|%msvc_redist_dir%|@msvc_redist_dir@|g" \ - -e "s|%msvc_redist_name%|@msvc_redist_name@|g" \ - < $< > $@ - -# The installer depends on all files, not just the source .iss file, -# so we trick make into always building it with the FORCE pattern... -windows/setup-couchdb-@version@.exe: windows/couchdb.iss windows/README.txt FORCE - "$(INNO_COMPILER_EXECUTABLE)" /q $< - @echo Windows Installer is at: `cygpath -a -w windows/setup-couchdb-@version@.exe` - -windows/setup-couchdb-@version@.exe.md5: windows/setup-couchdb-@version@.exe - cd windows && md5sum ./$(<F) > $(@F) - -windows/setup-couchdb-@version@.exe.sha: windows/setup-couchdb-@version@.exe - cd windows && sha1sum ./$(<F) > $(@F) - -FORCE: - -endif - -install-data-hook: - if test -n "$(init_DATA)"; then \ - chmod +x "$(DESTDIR)$(initdir)/couchdb"; \ - fi diff --git a/etc/couchdb/Makefile.am b/etc/couchdb/Makefile.am deleted file mode 100644 index ded52084..00000000 --- a/etc/couchdb/Makefile.am +++ /dev/null @@ -1,83 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -couchprivlibdir = $(localerlanglibdir)/couch-$(version)/priv/lib -devcouchprivlibdir = $(abs_top_builddir)/src/couchdb/priv/.libs - -localconf_DATA = default.ini -noinst_DATA = default_dev.ini local_dev.ini - -EXTRA_DIST = local.ini - -CLEANFILES = $(localconf_DATA) $(noinst_DATA) - -transform = @program_transform_name@ -couchjs_command_name = `echo couchjs | sed '$(transform)'` -couchjs_dev_command_name = `echo couchjs_dev | sed '$(transform)'` - -if WINDOWS -default.ini: default.ini.tpl - sed -e "s|%bindir%|.|g" \ - -e "s|%localconfdir%|$(localconfdir)|g" \ - -e "s|%localdatadir%|../share/couchdb|g" \ - -e "s|%localbuilddatadir%|../share/couchdb|g" \ - -e "s|%localstatelibdir%|../var/lib/couchdb|g" \ - -e "s|%localstatelogdir%|../var/log/couchdb|g" \ - -e "s|%couchprivlibdir%|../lib/couch-$(version)/priv/lib|g" \ - -e "s|%couchjs_command_name%|couchjs.exe|g" \ - < $< > $@ -else -default.ini: default.ini.tpl - sed -e "s|%bindir%|$(bindir)|g" \ - -e "s|%localconfdir%|$(localconfdir)|g" \ - -e "s|%localdatadir%|$(localdatadir)|g" \ - -e "s|%localbuilddatadir%|$(localdatadir)|g" \ - -e "s|%localstatelibdir%|$(localstatelibdir)|g" \ - -e "s|%localstatelogdir%|$(localstatelogdir)|g" \ - -e "s|%couchprivlibdir%|$(couchprivlibdir)|g" \ - -e "s|%couchjs_command_name%|$(couchjs_command_name)|g" \ - < $< > $@ -endif - -default_dev.ini: default.ini.tpl - sed -e "s|%bindir%|$(abs_top_builddir)/bin|g" \ - -e "s|%localconfdir%|$(abs_top_builddir)/etc/couchdb|g" \ - -e "s|%localdatadir%|$(abs_top_srcdir)/share|g" \ - -e "s|%localbuilddatadir%|$(abs_top_builddir)/share|g" \ - -e "s|%localstatelibdir%|$(abs_top_builddir)/tmp/lib|g" \ - -e "s|%localstatelogdir%|$(abs_top_builddir)/tmp/log|g" \ - -e "s|%couchprivlibdir%|$(devcouchprivlibdir)|g" \ - -e "s|%couchjs_command_name%|$(couchjs_dev_command_name)|g" \ - < $< > $@ - -# Noah said to not specify local.ini but it borks -# VPATH builds that make distcheck uses. -local_dev.ini: local.ini - if test ! -f "$@"; then \ - cp $< $@; \ - fi - -install-data-hook: - if test ! -f "$(DESTDIR)$(localconfdir)/local.ini"; then \ - cp $(srcdir)/local.ini "$(DESTDIR)$(localconfdir)/local.ini"; \ - fi - if test ! "$(mkdir_p)" = ""; then \ - $(mkdir_p) "$(DESTDIR)$(localconfdir)/default.d"; \ - $(mkdir_p) "$(DESTDIR)$(localconfdir)/local.d"; \ - else \ - echo "WARNING: You may have to create these directories by hand."; \ - mkdir -p "$(DESTDIR)$(localconfdir)/default.d"; \ - mkdir -p "$(DESTDIR)$(localconfdir)/local.d"; \ - fi - -uninstall-local: - rm -f "$(DESTDIR)/$(localconfdir)/local.ini" diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in deleted file mode 100644 index 064bed4b..00000000 --- a/etc/couchdb/default.ini.tpl.in +++ /dev/null @@ -1,130 +0,0 @@ -; @configure_input@ - -; Upgrading CouchDB will overwrite this file. - -[couchdb] -database_dir = %localstatelibdir% -view_index_dir = %localstatelibdir% -util_driver_dir = %couchprivlibdir% -max_document_size = 4294967296 ; 4 GB -max_attachment_chunk_size = 4294967296 ; 4GB -os_process_timeout = 5000 ; 5 seconds. for view and external servers. -max_dbs_open = 100 -delayed_commits = true ; set this to false to ensure an fsync before 201 Created is returned -uri_file = %localstatelibdir%/couch.uri - -[httpd] -port = 5984 -bind_address = 127.0.0.1 -max_connections = 2048 -authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler} -default_handler = {couch_httpd_db, handle_request} -secure_rewrites = true -vhost_global_handlers = _utils, _uuids, _session, _oauth, _users -allow_jsonp = false - -[log] -file = %localstatelogdir%/couch.log -level = info -include_sasl = true - -[couch_httpd_auth] -authentication_db = _users -authentication_redirect = /_utils/session.html -require_valid_user = false -timeout = 600 ; number of seconds before automatic logout -auth_cache_size = 50 ; size is number of cache entries - -[query_servers] -javascript = %bindir%/%couchjs_command_name% %localbuilddatadir%/server/main.js - -; Changing reduce_limit to false will disable reduce_limit. -; If you think you're hitting reduce_limit with a "good" reduce function, -; please let us know on the mailing list so we can fine tune the heuristic. -[query_server_config] -reduce_limit = true - -; enable external as an httpd handler, then link it with commands here. -; note, this api is still under consideration. -; [external] -; mykey = /path/to/mycommand - -[daemons] -view_manager={couch_view, start_link, []} -external_manager={couch_external_manager, start_link, []} -db_update_notifier={couch_db_update_notifier_sup, start_link, []} -query_servers={couch_query_servers, start_link, []} -httpd={couch_httpd, start_link, []} -stats_aggregator={couch_stats_aggregator, start, []} -stats_collector={couch_stats_collector, start, []} -uuids={couch_uuids, start, []} -auth_cache={couch_auth_cache, start_link, []} - -[httpd_global_handlers] -/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>} -favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "%localdatadir%/www"} - -_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "%localdatadir%/www"} -_all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req} -_active_tasks = {couch_httpd_misc_handlers, handle_task_status_req} -_config = {couch_httpd_misc_handlers, handle_config_req} -_replicate = {couch_httpd_misc_handlers, handle_replicate_req} -_uuids = {couch_httpd_misc_handlers, handle_uuids_req} -_restart = {couch_httpd_misc_handlers, handle_restart_req} -_stats = {couch_httpd_stats_handlers, handle_stats_req} -_log = {couch_httpd_misc_handlers, handle_log_req} -_session = {couch_httpd_auth, handle_session_req} -_oauth = {couch_httpd_oauth, handle_oauth_req} - -[httpd_db_handlers] -_view_cleanup = {couch_httpd_db, handle_view_cleanup_req} -_compact = {couch_httpd_db, handle_compact_req} -_design = {couch_httpd_db, handle_design_req} -_temp_view = {couch_httpd_view, handle_temp_view_req} -_changes = {couch_httpd_db, handle_changes_req} - -; The external module takes an optional argument allowing you to narrow it to a -; single script. Otherwise the script name is inferred from the first path section -; after _external's own path. -; _mypath = {couch_httpd_external, handle_external_req, <<"mykey">>} -; _external = {couch_httpd_external, handle_external_req} - -[httpd_design_handlers] -_view = {couch_httpd_view, handle_view_req} -_show = {couch_httpd_show, handle_doc_show_req} -_list = {couch_httpd_show, handle_view_list_req} -_info = {couch_httpd_db, handle_design_info_req} -_rewrite = {couch_httpd_rewrite, handle_rewrite_req} -_update = {couch_httpd_show, handle_doc_update_req} - -[uuids] -; Known algorithms: -; random - 128 bits of random awesome -; All awesome, all the time. -; sequential - monotonically increasing ids with random increments -; First 26 hex characters are random. Last 6 increment in -; random amounts until an overflow occurs. On overflow, the -; random prefix is regenerated and the process starts over. -; utc_random - Time since Jan 1, 1970 UTC with microseconds -; First 14 characters are the time in hex. Last 18 are random. -algorithm = sequential - -[stats] -; rate is in milliseconds -rate = 1000 -; sample intervals are in seconds -samples = [0, 60, 300, 900] - -[attachments] -compression_level = 8 ; from 1 (lowest, fastest) to 9 (highest, slowest), 0 to disable compression -compressible_types = text/*, application/javascript, application/json, application/xml - -[replicator] -max_http_sessions = 20 -max_http_pipeline_size = 50 -; set to true to validate peer certificates -verify_ssl_certificates = false -; file containing a list of peer trusted certificates (PEM format) -; ssl_trusted_certificates_file = /etc/ssl/certs/ca-certificates.crt -; maximum peer certificate depth (must be set even if certificate validation is off) -ssl_certificate_max_depth = 3 diff --git a/etc/couchdb/local.ini b/etc/couchdb/local.ini deleted file mode 100644 index f20b197a..00000000 --- a/etc/couchdb/local.ini +++ /dev/null @@ -1,45 +0,0 @@ -; CouchDB Configuration Settings - -; Custom settings should be made in this file. They will override settings -; in default.ini, but unlike changes made to default.ini, this file won't be -; overwritten on server upgrade. - -[couchdb] -;max_document_size = 4294967296 ; bytes - -[httpd] -;port = 5984 -;bind_address = 127.0.0.1 -; Uncomment next line to trigger basic-auth popup on unauthorized requests. -;WWW-Authenticate = Basic realm="administrator" - -[couch_httpd_auth] -; If you set this to true, you should also uncomment the WWW-Authenticate line -; above. If you don't configure a WWW-Authenticate header, CouchDB will send -; Basic realm="server" in order to prevent you getting logged out. -; require_valid_user = false - -[log] -;level = debug - - -; To enable Virtual Hosts in CouchDB, add a vhost = path directive. All requests to -; the Virual Host will be redirected to the path. In the example below all requests -; to http://example.com/ are redirected to /database. -; If you run CouchDB on a specific port, include the port number in the vhost: -; example.com:5984 = /database - -[vhosts] -;example.com = /database/ - -[update_notification] -;unique notifier name=/full/path/to/exe -with "cmd line arg" - -; To create an admin account uncomment the '[admins]' section below and add a -; line in the format 'username = password'. When you next start CouchDB, it -; will change the password to a hash (so that your passwords don't linger -; around in plain-text files). You can add more admin accounts with more -; 'username = password' lines. Don't forget to restart CouchDB after -; changing this. -[admins] -;admin = mysecretpassword diff --git a/etc/default/Makefile.am b/etc/default/Makefile.am deleted file mode 100644 index 5b4faae0..00000000 --- a/etc/default/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -## This file intentionally left blank. diff --git a/etc/default/couchdb b/etc/default/couchdb deleted file mode 100644 index c2a3f2ae..00000000 --- a/etc/default/couchdb +++ /dev/null @@ -1,7 +0,0 @@ -# Sourced by init script for configuration. - -COUCHDB_USER=couchdb -COUCHDB_STDOUT_FILE=/dev/null -COUCHDB_STDERR_FILE=/dev/null -COUCHDB_RESPAWN_TIMEOUT=5 -COUCHDB_OPTIONS= diff --git a/etc/init/Makefile.am b/etc/init/Makefile.am deleted file mode 100644 index 5b4faae0..00000000 --- a/etc/init/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -## This file intentionally left blank. diff --git a/etc/init/couchdb.tpl.in b/etc/init/couchdb.tpl.in deleted file mode 100644 index 3b8d17ea..00000000 --- a/etc/init/couchdb.tpl.in +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/sh -e - -# Licensed under the Apache License, Version 2.0 (the "License"); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -### BEGIN INIT INFO -# Provides: couchdb -# Required-Start: $local_fs $remote_fs -# Required-Stop: $local_fs $remote_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Apache CouchDB init script -# Description: Apache CouchDB init script for the database server. -### END INIT INFO - -SCRIPT_OK=0 -SCRIPT_ERROR=1 - -DESCRIPTION="database server" -NAME=couchdb -SCRIPT_NAME=`basename $0` -COUCHDB=%bindir%/%couchdb_command_name% -CONFIGURATION_FILE=%sysconfdir%/default/couchdb -RUN_DIR=%localstaterundir% -LSB_LIBRARY=/lib/lsb/init-functions - -if test ! -x $COUCHDB; then - exit $SCRIPT_ERROR -fi - -if test -r $CONFIGURATION_FILE; then - . $CONFIGURATION_FILE -fi - -log_daemon_msg () { - # Dummy function to be replaced by LSB library. - - echo $@ -} - -log_end_msg () { - # Dummy function to be replaced by LSB library. - - if test "$1" != "0"; then - echo "Error with $DESCRIPTION: $NAME" - fi - return $1 -} - -if test -r $LSB_LIBRARY; then - . $LSB_LIBRARY -fi - -start_couchdb () { - # Start Apache CouchDB as a background process. - - command="$COUCHDB -b" - if test -n "$COUCHDB_STDOUT_FILE"; then - command="$command -o $COUCHDB_STDOUT_FILE" - fi - if test -n "$COUCHDB_STDERR_FILE"; then - command="$command -e $COUCHDB_STDERR_FILE" - fi - if test -n "$COUCHDB_RESPAWN_TIMEOUT"; then - command="$command -r $COUCHDB_RESPAWN_TIMEOUT" - fi - if test -n "$COUCHDB_OPTIONS"; then - command="$command $COUCHDB_OPTIONS" - fi - mkdir -p "$RUN_DIR" - if test -n "$COUCHDB_USER"; then - chown $COUCHDB_USER "$RUN_DIR" - if su $COUCHDB_USER -c "$command" > /dev/null; then - return $SCRIPT_OK - else - return $SCRIPT_ERROR - fi - else - if $command > /dev/null; then - return $SCRIPT_OK - else - return $SCRIPT_ERROR - fi - fi -} - -stop_couchdb () { - # Stop the running Apache CouchDB process. - - command="$COUCHDB -d" - if test -n "$COUCHDB_OPTIONS"; then - command="$command $COUCHDB_OPTIONS" - fi - if test -n "$COUCHDB_USER"; then - if su $COUCHDB_USER -c "$command" > /dev/null; then - return $SCRIPT_OK - else - return $SCRIPT_ERROR - fi - else - if $command > /dev/null; then - return $SCRIPT_OK - else - return $SCRIPT_ERROR - fi - fi -} - -display_status () { - # Display the status of the running Apache CouchDB process. - - $COUCHDB -s -} - -parse_script_option_list () { - # Parse arguments passed to the script and take appropriate action. - - case "$1" in - start) - log_daemon_msg "Starting $DESCRIPTION" $NAME - if start_couchdb; then - log_end_msg $SCRIPT_OK - else - log_end_msg $SCRIPT_ERROR - fi - ;; - stop) - log_daemon_msg "Stopping $DESCRIPTION" $NAME - if stop_couchdb; then - log_end_msg $SCRIPT_OK - else - log_end_msg $SCRIPT_ERROR - fi - ;; - restart) - log_daemon_msg "Restarting $DESCRIPTION" $NAME - if stop_couchdb; then - if start_couchdb; then - log_end_msg $SCRIPT_OK - else - log_end_msg $SCRIPT_ERROR - fi - else - log_end_msg $SCRIPT_ERROR - fi - ;; - status) - display_status - ;; - *) - cat << EOF >&2 -Usage: $SCRIPT_NAME {start|stop|restart|status} -EOF - exit $SCRIPT_ERROR - ;; - esac -} - -parse_script_option_list $@ diff --git a/etc/launchd/Makefile.am b/etc/launchd/Makefile.am deleted file mode 100644 index 5b4faae0..00000000 --- a/etc/launchd/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -## This file intentionally left blank. diff --git a/etc/launchd/org.apache.couchdb.plist.tpl.in b/etc/launchd/org.apache.couchdb.plist.tpl.in deleted file mode 100644 index c72f3480..00000000 --- a/etc/launchd/org.apache.couchdb.plist.tpl.in +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" - "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>Label</key> - <string>org.apache.couchdb</string> - <key>EnvironmentVariables</key> - <dict> - <key>HOME</key> - <string>~</string> - <key>DYLD_LIBRARY_PATH</key> - <string>/opt/local/lib:$DYLD_LIBRARY_PATH</string> - </dict> - <key>ProgramArguments</key> - <array> - <string>%bindir%/%couchdb_command_name%</string> - </array> - <key>UserName</key> - <string>couchdb</string> - <key>StandardOutPath</key> - <string>/dev/null</string> - <key>StandardErrorPath</key> - <string>/dev/null</string> - <key>RunAtLoad</key> - <true/> - <key>KeepAlive</key> - <true/> - </dict> -</plist> diff --git a/etc/logrotate.d/Makefile.am b/etc/logrotate.d/Makefile.am deleted file mode 100644 index 5b4faae0..00000000 --- a/etc/logrotate.d/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -## This file intentionally left blank. diff --git a/etc/logrotate.d/couchdb.tpl.in b/etc/logrotate.d/couchdb.tpl.in deleted file mode 100644 index 0bb07e13..00000000 --- a/etc/logrotate.d/couchdb.tpl.in +++ /dev/null @@ -1,9 +0,0 @@ -%localstatelogdir%/*.log { - weekly - rotate 10 - copytruncate - delaycompress - compress - notifempty - missingok -} diff --git a/etc/windows/Makefile.am b/etc/windows/Makefile.am deleted file mode 100644 index 5b4faae0..00000000 --- a/etc/windows/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Licensed under the Apache License, Version 2.0 (the "License"); you may not -## use this file except in compliance with the License. You may obtain a copy of -## the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -## License for the specific language governing permissions and limitations under -## the License. - -## This file intentionally left blank. diff --git a/etc/windows/README.txt.tpl b/etc/windows/README.txt.tpl deleted file mode 100644 index 791bcc85..00000000 --- a/etc/windows/README.txt.tpl +++ /dev/null @@ -1,29 +0,0 @@ -This is the README for the %package_name% binary distribution for -Windows, version %version%. - -* Although CouchDB defaults to installing into your "Program Files" directory, - the permissions on the 'var' and 'etc' sub-directories have been adjusted - to allow modification by any authorized user so the couchdb databases, logs - and .ini files can be written. You may like to further restrict these - permissions to only the user who will be running couchdb. - -* The installer offers to install CouchDB as a Windows Service. If you select - this option, the service will run as the "LocalSystem" user and be - configured to start automatically. You can configure the service properties - via the Windows 'Services' applet. - -* To start CouchDB in a "console" environment, execute couchdb.bat in the - 'bin' directory. A shortcut to this batch file should have been installed. - Don't try and start couchdb this way if the service is running - it will - fail. - -* The Futon application which comes with CouchDB does not work with - Internet Explorer - Mozilla Firefox is generally recommended. - -* The test suite is known to fail on Windows due to what appear to be - permissions errors; this is due to couch being unable to delete a - file while it is in use on Windows. - See also https://issues.apache.org/jira/browse/COUCHDB-326 - -* Additional help with the Windows support is needed - please contact the - couchdb-dev list if you can help. diff --git a/etc/windows/couchdb.iss.tpl b/etc/windows/couchdb.iss.tpl deleted file mode 100644 index 6efee0aa..00000000 --- a/etc/windows/couchdb.iss.tpl +++ /dev/null @@ -1,84 +0,0 @@ -; Licensed under the Apache License, Version 2.0 (the "License"); you may not -; use this file except in compliance with the License. You may obtain a copy of -; the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations under -; the License. - -; CouchDB inno installer script -; %configure_input% - -[Setup] -AppID=ApacheCouchDB -AppName=%package_name% -AppVerName=%package_name% %version% -AppPublisher=Apache Software Foundation -AppPublisherURL=http://couchdb.apache.org/ -LicenseFile=../../LICENSE -DefaultDirName={pf}\Apache Software Foundation\CouchDB -DefaultGroupName=%package_name% -OutputBaseFilename=setup-couchdb-%version% -OutputDir=. - -[Files] -Source: "%locallibbindir%\..\*.*"; DestDir: "{app}"; Flags: ignoreversion uninsrestartdelete restartreplace -; bin dir -Source: "%locallibbindir%\*.*"; DestDir: "{app}\bin"; Flags: ignoreversion uninsrestartdelete restartreplace recursesubdirs -; other dirs copied '*.*' -Source: "%locallibbindir%\..\erts-%erts_version%\*.*"; DestDir: "{app}\erts-%erts_version%"; Flags: ignoreversion uninsrestartdelete restartreplace recursesubdirs -Source: "%locallibbindir%\..\lib\*.*"; DestDir: "{app}\lib"; Flags: ignoreversion uninsrestartdelete restartreplace recursesubdirs -Source: "%locallibbindir%\..\share\*.*"; DestDir: "{app}\share"; Flags: ignoreversion uninsrestartdelete restartreplace recursesubdirs -Source: "%locallibbindir%\..\releases\*.*"; DestDir: "{app}\releases"; Flags: ignoreversion uninsrestartdelete restartreplace recursesubdirs -; skip ./usr, ./var - -; custom stuff... -; ./etc/default.ini is unconditional -Source: "%locallibbindir%\..\etc\couchdb\default.ini"; DestDir: "{app}\etc\couchdb"; Flags: ignoreversion uninsrestartdelete restartreplace -; ./etc/local.ini is preserved and should not be updated if it exists -Source: "%locallibbindir%\..\etc\couchdb\local.ini"; DestDir: "{app}\etc\couchdb"; Flags: onlyifdoesntexist uninsneveruninstall -; readme -Source: "README.txt"; DestDir: "{app}"; Flags: isreadme - -; msvc redists - see comments in configure.ac for notes about these... -; ( deleteafterinstall - not needed - {tmp} auto cleaned???? -Source: "%msvc_redist_dir%\%msvc_redist_name%"; DestDir: "{tmp}"; Flags: deleteafterinstall - -; These are erlang requirements and not copied by our makefiles. -Source: "%openssl_bin_dir%\ssleay32.dll"; DestDir: "{app}\bin"; Flags: ignoreversion uninsrestartdelete restartreplace -Source: "%openssl_bin_dir%\libeay32.dll"; DestDir: "{app}\bin"; Flags: ignoreversion uninsrestartdelete restartreplace - -[Dirs] -Name: "{app}\var\lib\couchdb"; Permissions: authusers-modify -Name: "{app}\var\log\couchdb"; Permissions: authusers-modify -Name: "{app}\etc\couchdb"; Permissions: authusers-modify - -[Icons] -Name: "{group}\Start CouchDB"; Filename: "{app}\bin\couchdb.bat" -Name: "{group}\Futon (CouchDB web interface)"; Filename: "http://127.0.0.1:5984/_utils" -Name: "{group}\CouchDB Web Site"; Filename: "http://couchdb.apache.org/" - -[Tasks] -Name: service; Description: "Install couchdb as a Windows service" -Name: service\start; Description: "Start the service after installation" - -[Run] -Filename: "{tmp}\%msvc_redist_name%"; Parameters: "/q" -; This is erlang's Install.exe which updates erl.ini correctly. -Filename: "{app}\Install.exe"; Parameters: "-s"; Flags: runhidden - -; Commands for a service -; First attempt to nuke an existing service of this name, incase they are -; reinstalling without uninstalling -Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Tasks: service -; add a new one -Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "add ""%package_name%"" -w ""{app}\bin"" -ar ""-sasl errlog_type error -s couch"" -c ""%package_name% %version%"""; Tasks: service -; and start it if requested -Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "start ""%package_name%"""; Tasks: service\start - -[UninstallRun] -Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Tasks: service |