Skip to content

Package build sources for bulding rsyslog Ubuntu packages

License

Notifications You must be signed in to change notification settings

davidelang/rsyslog-pkg-ubuntu

 
 

Repository files navigation

rsyslog-pkg-ubuntu

This respository contains the sources needed to build Ubuntu rsyslog packages. It is our goal to create the best possible packages for the current releases of this platform.

Packages are available as PPAs. See: http://www.rsyslog.com/ubuntu-repository/

Contributors and co-maintainers are welcome.

Script descriptions are in INSTALL.

Project Goals

  • provide excellent packages via PPAs in a timely manner
  • provide scripts to be used by others who do build on their own
  • learn how to collaborate on package development
  • gain experience

This project is currently kind of a pilot project for other collaboration and packaging efforts. Among others, we would like to build packages for other platforms. We also want to create a better (and easier to manage) extended testbench system. We will consider Buildbot and SuSE OBS at a later stage. But before going into this larger projects, we want to gain experience in this packaging project.

PPA Structure

We intend to maintain two different sets of PPAs:

  1. regular release builds
  2. daily builds

The regular release builds are just that: for each release, we want to create packages for all current Ubuntu platforms very close to the rsyslog release.

In order to facilitate "leading edge users" daily builds shall provide the most current available rsyslog software. They base on the project's git master branch. They will be build automatically once a day if there has been change since the previous build.

Packages Provided

Packages are to be provided for the full rsyslog infrastructure. This includes libraries tightly coupled into the rsyslog infrastructure and essentially maintained by the same team. Examples for these are librelp and liblognorm.

We try to avoid providing unrelated softwares, even if that means we cannot package some of rsyslog's functionality. The main driving force behind this is that by providing packages, we also take responsibility for security issues in them and so we have an additional burden of monitoring this "external" software. As such, we can grant and exception of the general rule if and only if a member of such third-party software is also a member of rsyslog's release team AND commits to keeping the packages current.

File System Structure

 .                 our "home directory"
  scripts          contains all scripts to use
  project          files to build project-specific package
                   (project is rsyslog, librelp, ...)
    common         "base" package build control files
      branch       ... for this specific branch (e.g. master, v8-stable)
    ubuntu-ver     "overrides" of package control files for this
                   specific Ubuntu version (e.g. trusty, precise, ...)
      branch       ... for this specific branch (e.g. master, v8-stable)
                   note that "branch" may not exist if not needed
		   (e.g. common contains everything necessary to build
		   the package)

Overall idea of the build Process

NOTE: as of now, this information is correct for the daily builds process. The legacy manual build process does not currently use this scheme. The legacy process shall be updated ASAP.

This repo contains scripts and control files to build rsyslog and its immediate helpers, like librelp. It may also contain the necessary things to build packages for non-close helpers if they fulful the criteria layed out at the top of the page.

Each package has its own directory in the top directory. Each of them contains a directory named "common" and directories for the specific Ubuntu branches (like trusty or precise). The idea here is that we have a lot of information that is common to all Ubuntu versions. In order to make changes easier, we keep most stuff in "common" and just keep exceptions in the "ubuntu-ver" directories. When building we use a working directory for each package build. The scripts first copy "common" to it, and the copy the correct "ubuntu-ver" over that data. That way, we can keep generic stuff in "common" and override it with Ubuntu version specific additional stuff. This is especially useful when new Ubuntu versions appear, in which case we usually can just use the regular "common" stuff without the need to dig deeper into details. Of course, this depends on the magnitude of changes done in the new Ubuntu versions, but experience tells this used to work rather well.

Note that "common" probably needs to be updated from time to time, and this may lead to it becoming incompatible with older versions of Ubuntu. If this happens, we should update common the match the majority of versions, and especially the newer ones. So we may need to migrate some stuff from "common" to one or more older "ubuntu-ver" (which previously needed no override). This approach will enable us to keep up with Ubuntu development.

From time to time, we should evaluate if the "common"/"ubuntu-ver" override mechanism actually provides benefit over just keeping everything in "ubuntu-ver". If there are no compelling benefits, we may want to go to an "ubuntu-ver", only approach. Note, thought, that pre-2015 we had such an "ubuntu-ver" only approach and it lead to delays when new Ubuntu versions came out. We tried to solve this with the introduction of "common" and the policy layed out here.

The build process currently has the PPA system "in mind". That means all scripts generate the necessary control files and load them up to launchpad. The actual build is then performed by launchpad.

About

Package build sources for bulding rsyslog Ubuntu packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 75.5%
  • Makefile 24.5%