[jitsi-dev] [jitsi-videobridge] Debian folder and deb packages building support in build.xml (#6)


#1

The 'deb' target invokes the targets 'deb-32' and 'deb-64', which in turn prepare the debian packages, generate them and clean afterwards. It leaves 4 files in 'resources' folder -- 2 deb packages (i386 and amd64) and their .changes files so they can be picked up later by repository updating scripts.
You can merge this Pull Request by running:

  git pull https://github.com/turint/jitsi-videobridge master

Or you can view, comment on it, or merge it online at:

  https://github.com/jitsi/jitsi-videobridge/pull/6

-- Commit Summary --

  * debian package files initial
  * init script actions: fix for stop and templates for reload and status
  * deb-64 build target & /etc/default package file
  * deb-64 build target added
  * deb-64 target changes
  * debian folder and build.xml fixes
  * Fixing the correct version string in include-binaries paths
  * Corrected upstream version in changelog & added windows-type new lines in build.xml where missing

-- File Changes --

    M build.xml (86)
    A resources/install/debian/README.Debian (7)
    A resources/install/debian/README.source (6)
    A resources/install/debian/changelog (11)
    A resources/install/debian/compat (1)
    A resources/install/debian/conffiles (0)
    A resources/install/debian/config (8)
    A resources/install/debian/control (16)
    A resources/install/debian/copyright (8)
    A resources/install/debian/docs (0)
    A resources/install/debian/init.d (66)
    A resources/install/debian/install (2)
    A resources/install/debian/jitsi-videobridge.default (4)
    A resources/install/debian/manpage.1 (40)
    A resources/install/debian/postinst (145)
    A resources/install/debian/postrm (48)
    A resources/install/debian/preinst (24)
    A resources/install/debian/prerm (25)
    A resources/install/debian/rules (13)
    A resources/install/debian/source/format (1)
    A resources/install/debian/source/include-binaries (35)
    A resources/install/debian/templates (14)
    A resources/install/debian/usr/share/doc/jitsi-videobridge/README (2)
    A resources/install/debian/usr/share/doc/jitsi-videobridge/changelog.Debian.gz (0)
    A resources/install/debian/usr/share/doc/jitsi-videobridge/copyright (8)
    A resources/install/debian/usr/share/doc/jitsi-videobridge/prosody.cfg.lua-jvb.example (210)
    A resources/install/debian/usr/share/doc/jitsi-videobridge/sip-communicator.properties (1)

-- Patch Links --

https://github.com/jitsi/jitsi-videobridge/pull/6.patch
https://github.com/jitsi/jitsi-videobridge/pull/6.diff

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/pull/6


#2

Looks great. Just some changes need before integrating.
- For Homepage you can use just https://jitsi.org/videobridge.
- When building packages in jitsi we create and use a release folder, where the binaries will be at the end and where all tmp folders and files are copied and used. This way if for some reason the build process fails there will be no files left in the source controlled folders, as you currently copy files to resource/install/debian folder and then delete the temp files from there. If the build process fails just delete release folder and everything is fine :slight_smile:

The following two are dependent:
- resources/install/debian/source/include-binaries there is version of the package mentioned inside
- Currently packages are in /opt/jitsi-videobridge/ and there is a folder with version in the name. Maybe we need to move the package to the standard folder. Jitsi binaries are currently in /usr/share/jitsi, so it will be /usr/share/jitsi-videobridge. This way we can then easily add building everything from sources and submit the package to debian repositories.

Does this sound ok?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/pull/6#issuecomment-45311588


#3

Now the package is being built in /release/ folder, with the deb files going to the root of the repo.
Homepage is changed to jitsi.org/videobridge
All paths in /opt/ are changed to /usr/share/ and now the script and libraries are in /usr/share/jitsi-videobridge/ (I wasn't sure whether we should use this or /var/lib/packagename, but /usr/share/ made more sense for now)
All version numbers of videobridge are removed from folder names. There is no "current" symlink also, as all the files are right in /usr/share/jitsi-videobridge/ and will be updated with the package.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/pull/6#issuecomment-47593589


#4

Merged #6.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/pull/6#event-136857516


#5

Hi,

committed and acked.

Thanks
damencho

···

On Tue, Jul 1, 2014 at 1:05 AM, Yasen Pramatarov <notifications@github.com> wrote:

Now the package is being built in /release/ folder, with the deb files
going to the root of the repo.
Homepage is changed to jitsi.org/videobridge
All paths in /opt/ are changed to /usr/share/ and now the script and
libraries are in /usr/share/jitsi-videobridge/ (I wasn't sure whether we
should use this or /var/lib/packagename, but /usr/share/ made more sense
for now)
All version numbers of videobridge are removed from folder names. There is
no "current" symlink also, as all the files are right in
/usr/share/jitsi-videobridge/ and will be updated with the package.


Reply to this email directly or view it on GitHub
<https://github.com/jitsi/jitsi-videobridge/pull/6#issuecomment-47593589>.