couchdb-pkg.git
3 months agoFix CentOS 8 -> Rocky 8 alias main
Nick Vatamaniuc [Sun, 3 Jul 2022 01:09:38 +0000 (21:09 -0400)] 
Fix CentOS 8 -> Rocky 8 alias

3 months agoAdd ubuntu jammy distro
Nick Vatamaniuc [Tue, 28 Jun 2022 06:28:04 +0000 (02:28 -0400)] 
Add ubuntu jammy distro

In the couchdb-ci used this to create the image
```
ERLANGVERSION=default ./build.sh buildx-platform ubuntu-jammy
```

There was an error building erlang from source with included openssl 3.x so opted to use the built-in default erlang 24 there.

To build the image then used that image to build the jammy 3.2.2-2 deb
package with:

```
ERLANGVERSION=default ./build.sh couch ubuntu-jammy apache-couchdb-3.2.2.tar.gz
./build.sh couch-upload-all
```

3 months agoImprove /dev/random usage when generating cookies for RPM distros
Nick Vatamaniuc [Mon, 13 Jun 2022 19:13:05 +0000 (15:13 -0400)] 
Improve /dev/random usage when generating cookies for RPM distros

In a low entropy environments, `/dev/random` will block, so make sure to use
only as many bytes as we'll need instead of reading and discarding bytes as we
did previously.

3 months agoMerge pull request #97 from apache/improve_inet_dist_use_interface_switch
Robert Newson [Tue, 7 Jun 2022 06:53:49 +0000 (07:53 +0100)] 
Merge pull request #97 from apache/improve_inet_dist_use_interface_switch

tolerate single quotes presence and absence on inet_dist_use_interface

3 months agotolerate single quotes presence and absence on inet_dist_use_interface 97/head
Robert Newson [Sat, 4 Jun 2022 22:09:53 +0000 (23:09 +0100)] 
tolerate single quotes presence and absence on inet_dist_use_interface

4 months agoImprove cookie setup for RPMs
Nick Vatamaniuc [Mon, 16 May 2022 15:50:14 +0000 (11:50 -0400)] 
Improve cookie setup for RPMs

Previously, with an embedded prompt, it was hard to automatically
provision nodes.

Avoid the interactive TTY prompt by setting a random 48 character (285
bits of entropy) cookie from /dev/urandom instead. This should help
automating standalone setups.

Improve clustered setups by allowing users to specify the cookie as an
environment variable. In this way the cookie may be automaticaly
provisioned on all the nodes of the cluster during the initial
install.

Fixes https://github.com/apache/couchdb-pkg/issues/94

4 months agoUpdate to handle Rocky Linux 8
Nick Vatamaniuc [Thu, 5 May 2022 17:53:55 +0000 (13:53 -0400)] 
Update to handle Rocky Linux 8

4 months agoUpdate Erlang to 23.3.4.14
Nick Vatamaniuc [Thu, 5 May 2022 05:03:35 +0000 (01:03 -0400)] 
Update Erlang to 23.3.4.14

5 months agoFix cookie preseeding
Robert Newson [Wed, 20 Apr 2022 19:43:29 +0000 (20:43 +0100)] 
Fix cookie preseeding

5 months agoOn RPM upgrade prompt for cookie only if previously set "monster"
Nick Vatamaniuc [Mon, 18 Apr 2022 18:56:18 +0000 (14:56 -0400)] 
On RPM upgrade prompt for cookie only if previously set "monster"

5 months agofeat: patch rpmspec to prompt for cookie value
diannasoreil [Wed, 13 Apr 2022 15:24:59 +0000 (17:24 +0200)] 
feat: patch rpmspec to prompt for cookie value

5 months agotighten file permissions for vm.args
Robert Newson [Thu, 24 Feb 2022 15:12:05 +0000 (15:12 +0000)] 
tighten file permissions for vm.args

5 months agoDon't allow 'monster' as cookie value in debconf
Robert Newson [Thu, 24 Feb 2022 14:01:36 +0000 (14:01 +0000)] 
Don't allow 'monster' as cookie value in debconf

5 months agoBind epmd and distribution port to loopback interface only for standalone
Robert Newson [Tue, 8 Feb 2022 16:19:40 +0000 (16:19 +0000)] 
Bind epmd and distribution port to loopback interface only for standalone

5 months agoMerge pull request #91 from lostnet/dropstretch
Will Young [Mon, 25 Apr 2022 19:42:04 +0000 (19:42 +0000)] 
Merge pull request #91 from lostnet/dropstretch

Drop support for Debian 9 (stretch)

5 months agoDrop support for Debian 9 (stretch) 91/head
Will Young [Mon, 25 Apr 2022 18:03:04 +0000 (20:03 +0200)] 
Drop support for Debian 9 (stretch)

7 months agoUse --platform to select container arch at runtime
Adam Kocoloski [Mon, 7 Feb 2022 14:32:49 +0000 (09:32 -0500)] 
Use --platform to select container arch at runtime

The bugs seem to have been worked out here, so we can use multi-platform
container images like the ones we've generated for CI and still select
the runtime architecture we want if we need to build packages via QEMU.

7 months agoDefault to Erlang 23 + Debian 11
Adam Kocoloski [Sun, 6 Feb 2022 20:46:10 +0000 (15:46 -0500)] 
Default to Erlang 23 + Debian 11

7 months agochore: create rpm subfolder for js68
mokou [Wed, 2 Feb 2022 14:22:08 +0000 (15:22 +0100)] 
chore: create rpm subfolder for js68

7 months agofeat: add aarch64-rhel build support
mokou [Wed, 12 Jan 2022 13:12:47 +0000 (14:12 +0100)] 
feat: add aarch64-rhel build support

7 months agofeat: initial js68 support
mokou [Wed, 12 Jan 2022 10:59:55 +0000 (11:59 +0100)] 
feat: initial js68 support

7 months agoAdd bullseye to distributions
Adam Kocoloski [Sat, 5 Feb 2022 16:36:29 +0000 (11:36 -0500)] 
Add bullseye to distributions

8 months agoDrop support for Ubuntu 16.04
Adam Kocoloski [Sat, 15 Jan 2022 12:56:43 +0000 (07:56 -0500)] 
Drop support for Ubuntu 16.04

11 months agoMinor bugfixes encountered in the 3.2.0 release (#85)
Joan Touzet [Fri, 8 Oct 2021 22:55:28 +0000 (22:55 +0000)] 
Minor bugfixes encountered in the 3.2.0 release (#85)

12 months agoSwitch from bintray to artifactory; remove build.sh support for SM (#84)
Joan Touzet [Thu, 30 Sep 2021 22:57:24 +0000 (18:57 -0400)] 
Switch from bintray to artifactory; remove build.sh support for SM (#84)

13 months agoprotect main branch with .asf.yaml config (#75)
Glynn Bird [Thu, 26 Aug 2021 13:23:11 +0000 (14:23 +0100)] 
protect main branch with .asf.yaml config (#75)

17 months agoFixes for bullseye
Joan Touzet [Wed, 21 Apr 2021 18:02:13 +0000 (11:02 -0700)] 
Fixes for bullseye

17 months agobump detect-os for centos 8 (from couchdb-ci)
Joan Touzet [Wed, 14 Apr 2021 02:01:43 +0000 (19:01 -0700)] 
bump detect-os for centos 8 (from couchdb-ci)

17 months agoUpdate for new apache hosted containers, drop CentOS 6
Joan Touzet [Tue, 13 Apr 2021 22:39:25 +0000 (15:39 -0700)] 
Update for new apache hosted containers, drop CentOS 6

20 months agoMerge pull request #76 from big-r81/patch-1
Nick Vatamaniuc [Mon, 25 Jan 2021 20:09:12 +0000 (15:09 -0500)] 
Merge pull request #76 from big-r81/patch-1

Update README.md

20 months agoUpdate README.md 76/head
Ronny [Mon, 25 Jan 2021 19:52:25 +0000 (20:52 +0100)] 
Update README.md

fix link after branch rename (master -> main)

22 months ago[snap] bump to 3.1.1 (#74)
Joan Touzet [Wed, 25 Nov 2020 20:09:42 +0000 (20:09 +0000)] 
[snap] bump to 3.1.1 (#74)

23 months agoRemove unrecognized -c option to configure
Joan Touzet [Fri, 30 Oct 2020 15:01:56 +0000 (11:01 -0400)] 
Remove unrecognized -c option to configure

2 years agoMerge pull request #70 from apache/bump-file-limit
Jan Lehnardt [Thu, 9 Jul 2020 11:03:50 +0000 (13:03 +0200)] 
Merge pull request #70 from apache/bump-file-limit

Bump default service fd limit to erlang +Q default of 65536

2 years agochore: bump CouchDB version 70/head
Jan Lehnardt [Thu, 9 Jul 2020 08:21:17 +0000 (10:21 +0200)] 
chore: bump CouchDB version

2 years agoBump fd limit to erlang +Q default of 65536
Joan Touzet [Thu, 9 Jul 2020 00:24:51 +0000 (20:24 -0400)] 
Bump fd limit to erlang +Q default of 65536

2 years agoAuto-build focal, script cleanup
Joan Touzet [Mon, 4 May 2020 02:33:21 +0000 (19:33 -0700)] 
Auto-build focal, script cleanup

2 years agoAdd focal to distributions
Joan Touzet [Thu, 30 Apr 2020 05:03:02 +0000 (22:03 -0700)] 
Add focal to distributions

2 years agoAdd automagic `make all` target for CI
Joan Touzet [Wed, 29 Apr 2020 19:30:26 +0000 (12:30 -0700)] 
Add automagic `make all` target for CI

2 years agoSupport Ubuntu 20.04; drop erlang-os-mon dep
Joan Touzet [Tue, 28 Apr 2020 19:21:54 +0000 (12:21 -0700)] 
Support Ubuntu 20.04; drop erlang-os-mon dep

2 years agofix(rpm): tag vm.args as config (#67)
Joan Touzet [Mon, 6 Apr 2020 15:58:26 +0000 (11:58 -0400)] 
fix(rpm): tag vm.args as config (#67)

2 years ago[snap] smaller snap, improve cluster examples (#64)
Simon Klassen [Thu, 26 Mar 2020 18:19:56 +0000 (02:19 +0800)] 
[snap] smaller snap, improve cluster examples (#64)

* Added configure hook 'snap set couchdb admin=[password]'
* Added port to the list of snap configured parameters
* Split packages into build and stage to reduce snap size
* Some formatting cleanups
* Rewrote cluster HOWTO with new snap functionality without using LXC

Co-authored-by: Joan Touzet <wohali@apache.org>
Co-authored-by: Simon Klassen <>
2 years agoAdded configure hook 'snap set couchdb admin=[password]' (#63)
Simon Klassen [Tue, 10 Mar 2020 02:03:04 +0000 (10:03 +0800)] 
Added configure hook 'snap set couchdb admin=[password]' (#63)

Co-authored-by: Joan Touzet <wohali@apache.org>
2 years agofixes for snapcraft
Joan Touzet [Fri, 28 Feb 2020 05:22:30 +0000 (21:22 -0800)] 
fixes for snapcraft

2 years agobump to couchdb 3.0.0 for travis
Joan Touzet [Thu, 27 Feb 2020 18:51:13 +0000 (10:51 -0800)] 
bump to couchdb 3.0.0 for travis

2 years agoEnsure correct SM version substitution
Joan Touzet [Thu, 27 Feb 2020 17:15:05 +0000 (09:15 -0800)] 
Ensure correct SM version substitution

2 years agofix wrongly committed version
Joan Touzet [Thu, 13 Feb 2020 23:19:34 +0000 (15:19 -0800)] 
fix wrongly committed version

2 years agofix CI package builds for centos
Joan Touzet [Thu, 13 Feb 2020 22:05:50 +0000 (14:05 -0800)] 
fix CI package builds for centos

2 years agoSwitch to SM60 for CentOS 8
Joan Touzet [Thu, 13 Feb 2020 18:46:06 +0000 (10:46 -0800)] 
Switch to SM60 for CentOS 8

2 years agoParametrise SM ver for dpkg builds
Joan Touzet [Fri, 31 Jan 2020 07:47:44 +0000 (23:47 -0800)] 
Parametrise SM ver for dpkg builds

Now picks SM60 for debian-buster (except on arm64)
Still uses SM 1.8.5 for all other dpkg + rpm builds

2 years ago[deb] remove couchup, update references
Joan Touzet [Thu, 30 Jan 2020 23:26:31 +0000 (15:26 -0800)] 
[deb] remove couchup, update references

2 years agoBump Erlang ver dep, drop nodejs dep [deb]
Joan Touzet [Thu, 30 Jan 2020 22:49:36 +0000 (14:49 -0800)] 
Bump Erlang ver dep, drop nodejs dep [deb]

2 years agoRemove python dep for 3.0.0
Joan Touzet [Tue, 28 Jan 2020 19:44:37 +0000 (11:44 -0800)] 
Remove python dep for 3.0.0

2 years agoppc64el apparently, not ppc64le (repo, deb
Joan Touzet [Sat, 25 Jan 2020 07:18:51 +0000 (23:18 -0800)] 
ppc64el apparently, not ppc64le (repo, deb

2 years agodeb: add buster, arch defs to repo def
Joan Touzet [Thu, 16 Jan 2020 16:58:08 +0000 (08:58 -0800)] 
deb: add buster, arch defs to repo def

2 years agodisable arm on Travis, too slow
Joan Touzet [Mon, 16 Dec 2019 16:00:03 +0000 (08:00 -0800)] 
disable arm on Travis, too slow

2 years agoone more try for xplat travis
Joan Touzet [Fri, 13 Dec 2019 20:21:44 +0000 (12:21 -0800)] 
one more try for xplat travis

2 years agolintian will no longer break a build; travis fix
Joan Touzet [Fri, 13 Dec 2019 19:42:24 +0000 (11:42 -0800)] 
lintian will no longer break a build; travis fix

2 years agoBUmp Erlang version in .travis.yml
Joan Touzet [Fri, 13 Dec 2019 18:48:07 +0000 (10:48 -0800)] 
BUmp Erlang version in .travis.yml

2 years agoRework Travis matrix (for now)
Joan Touzet [Fri, 13 Dec 2019 18:28:04 +0000 (10:28 -0800)] 
Rework Travis matrix (for now)

2 years agoWhitelist ppc64le in the CouchDB rpm (#59)
Will Holley [Fri, 13 Dec 2019 18:26:11 +0000 (18:26 +0000)] 
Whitelist ppc64le in the CouchDB rpm (#59)

The Couchdb rpm builds correctly on/for ppc64le. This change adds
ppc64le to the whitelisted architectures in the rpm spec.

2 years agoAdd a couple more documentation links (#58)
Joan Touzet [Wed, 23 Oct 2019 07:04:34 +0000 (03:04 -0400)] 
Add a couple more documentation links (#58)

2 years agoMinor cleanup for better multiarch support (#57)
Joan Touzet [Fri, 11 Oct 2019 03:08:08 +0000 (03:08 +0000)] 
Minor cleanup for better multiarch support (#57)

2 years agoImprove multi-platform package building (#56)
Joan Touzet [Thu, 10 Oct 2019 16:22:47 +0000 (16:22 +0000)] 
Improve multi-platform package building (#56)

2 years agoMerge pull request #52 from apache/postrm_remove_databases
Robert Newson [Thu, 3 Oct 2019 18:16:48 +0000 (19:16 +0100)] 
Merge pull request #52 from apache/postrm_remove_databases

Add extra protection to databases during package purge

3 years agoAdd extra protection to databases during package purge 52/head
Robert Newson [Tue, 3 Sep 2019 13:44:09 +0000 (14:44 +0100)] 
Add extra protection to databases during package purge

3 years agorpm: Support Fedora 31+ and CentOS 8+ (#55)
Adrien Vergé [Tue, 1 Oct 2019 16:48:23 +0000 (18:48 +0200)] 
rpm: Support Fedora 31+ and CentOS 8+ (#55)

3 years agoSnap improvements
Simon Klassen [Tue, 24 Sep 2019 05:09:03 +0000 (13:09 +0800)] 
Snap improvements

* Added warning on snap remove
* data now points to SNAP_COMMON with pre-refresh hook to migrate users

3 years agofix etc/default.d/* ownership (#51)
Joan Touzet [Mon, 26 Aug 2019 05:41:50 +0000 (01:41 -0400)] 
fix etc/default.d/* ownership (#51)

3 years agoUpdate snap for 2.3.1 + core18 (#50)
Joan Touzet [Sat, 24 Aug 2019 04:27:58 +0000 (00:27 -0400)] 
Update snap for 2.3.1 + core18 (#50)

3 years agoAdd debian buster, drop debian jessie, lintian fixes (#49)
Joan Touzet [Thu, 22 Aug 2019 22:20:24 +0000 (18:20 -0400)] 
Add debian buster, drop debian jessie, lintian fixes (#49)

3 years agoAdd aarch64-debian-stretch platform (#45)
Joan Touzet [Fri, 3 May 2019 17:44:36 +0000 (13:44 -0400)] 
Add aarch64-debian-stretch platform (#45)

3 years agoDetect Arch Support (#40)
lag-linaro [Fri, 21 Dec 2018 22:27:06 +0000 (22:27 +0000)] 
Detect Arch Support (#40)

* Provide helper to detect the current architecture
* Use new 'detect-arch' helper when building JS
* build.sh: Ensure package directories are writable to user 'jenkins'
* Makefile: Trivial: Correct DIST name for ubuntu-bionic

3 years agoRefactor pkg build process to not rely on couchdb-ci (#39)
Joan Touzet [Thu, 6 Dec 2018 07:47:58 +0000 (02:47 -0500)] 
Refactor pkg build process to not rely on couchdb-ci (#39)

3 years agoModifications for openSUSE support (#36)
Rolf Niepraschk [Fri, 30 Nov 2018 09:21:59 +0000 (10:21 +0100)] 
Modifications for openSUSE support (#36)

* Modifications for openSUSE support

3 years agoImprove snap creation (#38)
Simon Klassen [Fri, 30 Nov 2018 07:29:55 +0000 (15:29 +0800)] 
Improve snap creation (#38)

* Added --edge to installation
* Changed couchdb.ini from local.d to default.d
* Switched config order to standard: default.ini, default.d, local.ini, local.d
* couchdb.ini has been moved from local.d to default.d
* Re-wrote configuration section to reflect standard order.
* Added a 90-override.ini file to ensure HTTP changes go in the last file
* Pared back the list of settable options to bare min
* Emphasized the q=1 parameter
* On fresh installation, copy the local.ini from the rel directory
* Add sequence number to couchdb.ini
* snap set now only configures vm.args; updated HOWTO to use HTTP configure

3 years ago[debian] python2 -> python3
Joan Touzet [Wed, 28 Nov 2018 08:20:44 +0000 (03:20 -0500)] 
[debian] python2 -> python3

3 years agosnap file rework by @sklassen (#27)
Simon Klassen [Fri, 2 Nov 2018 19:41:19 +0000 (03:41 +0800)] 
snap file rework by @sklassen (#27)

snap improvements;

* Split the DATA directory into log and etc; added vm.args; coded snap configuration hook for name and setcookie; bumped version number to 2.2; and added a description how to install and set options

* Moved snap.ini into local.d; configure now can manage both vm.args and (small subset of) local.d/*.ini; snap does not touch local.ini, so as not to interfer with web configuration interface; Reverted root README.md and added snap/README.md

* Removed the log directory as default writer=stderr is best

* Removed unrequired home plug in for hooks

* Empty rather than Nil plug-ins

* Renamed common subdirectory 2.x

* Removed hooks from snacraft.yaml: no special plugs needed

* Update README.md

* Single data directory suffices

* Unified data and index directory

* Removed user name from snap name

* Expanded the Snap Configuration

* Removed erlang from snapcraft; snap now 70M smaller

* prepare and build have been replaced by single override-build

* Added back explicit essential packages; excluded share/doc

* Added a HOWTO file

* Tidy up the md

* Added new line

3 years agodebian: Relax Erlang dependencies when building Debian packages on ARM (#34)
lag-linaro [Fri, 2 Nov 2018 19:36:48 +0000 (19:36 +0000)] 
debian: Relax Erlang dependencies when building Debian packages on ARM (#34)

Erlang is built and installed from source on ARM based platforms.

3 years agoDon't use dh_python, static declare 2x python deps
Joan Touzet [Tue, 23 Oct 2018 02:59:31 +0000 (19:59 -0700)] 
Don't use dh_python, static declare 2x python deps

3 years agoExplicitly depend on both python2 and python3
Joan Touzet [Mon, 22 Oct 2018 17:14:55 +0000 (10:14 -0700)] 
Explicitly depend on both python2 and python3

3 years agoExplicitly depend on both python2 and python3
Joan Touzet [Mon, 22 Oct 2018 17:14:55 +0000 (10:14 -0700)] 
Explicitly depend on both python2 and python3

3 years agoUpdate to Erlang 19.3.6 across the board
Joan Touzet [Fri, 19 Oct 2018 17:10:19 +0000 (10:10 -0700)] 
Update to Erlang 19.3.6 across the board

3 years agoFix init script exit code #28
Sébastien Prud'homme [Sun, 7 Oct 2018 09:04:23 +0000 (11:04 +0200)] 
Fix init script exit code #28

4 years agoFix non-armv7l builds
Joan Touzet [Sun, 5 Aug 2018 15:52:46 +0000 (11:52 -0400)] 
Fix non-armv7l builds

4 years agoSkip symbol check on armv7l
Joan Touzet [Sat, 4 Aug 2018 20:59:04 +0000 (16:59 -0400)] 
Skip symbol check on armv7l

4 years agorpm: Add missing build requirement libffi-devel
Adrien Vergé [Mon, 16 Jul 2018 12:20:30 +0000 (14:20 +0200)] 
rpm: Add missing build requirement libffi-devel

The libffi files are needed to compile js on CentOS 7.

4 years agorpm: Add missing build requirement perl
Adrien Vergé [Mon, 16 Jul 2018 13:00:39 +0000 (15:00 +0200)] 
rpm: Add missing build requirement perl

The perl interpreter is needed to compile js on Fedora 26 / 27 / 28.

4 years agofix logrotate for deb, change retention policy to 1w, closes #12
Joan Touzet [Mon, 11 Jun 2018 23:31:34 +0000 (16:31 -0700)] 
fix logrotate for deb, change retention policy to 1w, closes #12

4 years ago[deb] Fix unattended node name configuration, closes #21
Joan Touzet [Mon, 11 Jun 2018 22:34:34 +0000 (15:34 -0700)] 
[deb] Fix unattended node name configuration, closes #21

4 years agoFix init.d script, closes #22
Joan Touzet [Mon, 11 Jun 2018 21:48:12 +0000 (14:48 -0700)] 
Fix init.d script, closes #22

4 years ago[deb] Set n=1 on singlenode, closes #15
Joan Touzet [Mon, 11 Jun 2018 17:38:02 +0000 (10:38 -0700)] 
[deb] Set n=1 on singlenode, closes #15

4 years agoAdd more Makefile alias targets
Joan Touzet [Tue, 29 May 2018 07:18:34 +0000 (00:18 -0700)] 
Add more Makefile alias targets

4 years agodebian: fix pkg x2
Joan Touzet [Tue, 29 May 2018 05:17:30 +0000 (05:17 +0000)] 
debian: fix pkg x2

1. Do not fail postinst script if installing standalone and CouchDB
   fails to start (e.g., in Docker, where there is no init). Print
   a warning about being unable to create _users/_replicator instead.

2. Do not double-depend on libmozjs185-1.0 (was preventing successful
   installation.)

4 years agorpm: don't fail preun if can't stop epmd
Joan Touzet [Tue, 29 May 2018 02:00:47 +0000 (19:00 -0700)] 
rpm: don't fail preun if can't stop epmd

4 years agodeb: Add bionic repo definition
Joan Touzet [Mon, 28 May 2018 22:31:39 +0000 (15:31 -0700)] 
deb: Add bionic repo definition

4 years agoStop removing js pkgs for centos7
Joan Touzet [Mon, 28 May 2018 21:28:37 +0000 (14:28 -0700)] 
Stop removing js pkgs for centos7

4 years agorpm: remove erlang version pinning
Joan Touzet [Mon, 28 May 2018 20:55:19 +0000 (13:55 -0700)] 
rpm: remove erlang version pinning

4 years agoRemove shunit2 dependency, add bionic
Joan Touzet [Mon, 28 May 2018 15:22:01 +0000 (08:22 -0700)] 
Remove shunit2 dependency, add bionic

4 years agoUse our own couch-js/couch-libmozjs185 pkgs
Joan Touzet [Mon, 28 May 2018 06:33:34 +0000 (23:33 -0700)] 
Use our own couch-js/couch-libmozjs185 pkgs