You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sp...@apache.org on 2018/06/08 12:36:31 UTC

[2/2] cassandra-builds git commit: README: on updating rpm/deb repositories

README: on updating rpm/deb repositories


Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/fb5df10b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/fb5df10b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/fb5df10b

Branch: refs/heads/master
Commit: fb5df10b6341b82fc887c7b60109b1a25f485334
Parents: a317ef0
Author: Stefan Podkowinski <st...@1und1.de>
Authored: Fri Jun 8 14:34:14 2018 +0200
Committer: Stefan Podkowinski <st...@1und1.de>
Committed: Fri Jun 8 14:34:14 2018 +0200

----------------------------------------------------------------------
 README.md | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/fb5df10b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 8bb85ee..14faed1 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,32 @@ Once the RPM is signed, both the import key and verification steps should take p
 
 See use of `debsign` in `cassandra-release/prepare_release.sh`.
 
+## Updating package repositories
 
-## Publishing packages
+### Prerequisites
 
-TODO
+Artifacts for RPM and Debian package repositories, as well as tar archives, are keept in a single SVN repository. You need to have your own local copy for adding new packages:
+
+```
+svn co --config-option 'config:miscellany:use-commit-times=yes' https://dist.apache.org/repos/dist/release/cassandra
+```
+
+(you may also want to set `use-commit-times = yes` in your local svn config)
+
+We'll further refer to the local directory created by the svn command as `$artifacts_svn_dir`.
+
+Required build tools:
+* [createrepo](https://packages.ubuntu.com/bionic/createrepo) (RPMs)
+* [reprepro](https://packages.ubuntu.com/bionic/reprepro) (Debian)
+
+### RPM
+
+Adding new packages to the official repository starts by copying the RPMs to `$artifacts_svn_dir/redhat/<version>`. Afterwards, recreate the metadata by executing `createrepo -v .` in that directory. Finally, sign the generated meta data files in the `repodata` sub-directory:
+
+```
+for i in `ls *.bz2 *.gz *.xml`; do gpg -sba --local-user MyAlias $i; done;
+```
+
+### Debian
+
+See `finish_release.sh`


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org