diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-10-18 12:49:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-10-18 12:49:28 -0300 |
commit | 9c009f903d06e63bf1987446aa2396b26382bcf3 (patch) | |
tree | 5f35ccdc5353736347a5f1afc173a3528e42afc5 | |
parent | dedf705e16954887f62e511a47f622df3e6a1add (diff) | |
download | debian-9c009f903d06e63bf1987446aa2396b26382bcf3.tar.gz debian-9c009f903d06e63bf1987446aa2396b26382bcf3.tar.bz2 |
More on ruby packaging
-rw-r--r-- | TODO.md | 4 | ||||
-rw-r--r-- | ruby.md | 35 |
2 files changed, 34 insertions, 5 deletions
@@ -22,14 +22,14 @@ Backport -------- * jekyll -* newsbeuter * compton * grub-pc Port ---- -* pond. +* [Pond](https://pond.imperialviolet.org/). +* [Octopress](http://octopress.org/). * [leap-cli](https://leap.se) (check http://deb.leap.se). * [Blingbling](http://awesome.naquadah.org/wiki/Blingbling). * [x2go-server](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465821). @@ -13,19 +13,48 @@ First, in a *fresh* vagrant box: Then we get the dependencies and build all packages: - dependencies="`gem list | cut -d '(' -f 1`" + dependencies=" `gem list | cut -d '(' -f 1` " + +Gem cleanup: + + sudo gem uninstall $dependencies + +Check existing dependencies: + + for item in $dependencies; do + package=ruby-"`echo $item | sed -e 's/_/-/'`" + + if apt-cache search $package &> /dev/null; then + packages="$packages $package" + dependencies=$(echo $dependencies | sed -e "s/ $package //") + sudo apt-get install $package + fi + done + +Build remaining packages: for gem in $dependencies; do gem2deb $gem done -Cleanup: +Report: - sudo gem uninstall $dependencies + echo "Existing debian dependencies: $packages" + echo "New packages : $dependencies" + +Test: + + sudo dpkg -i *deb + +Deb cleanup: + + sudo dpkg -r $dependencies Additional steps: +* Backport existing dependencies if needed. * Fix `debian/control` and other FIXME's on each package. * Put `debian/` folder in a `debian` branch on each source. * [Review the code](https://manual.sarava.org/specs/code/). +* Automate building with pbuilder. * Upstream pull requests. |