Better Ubuntu packaging: Origin, Label (Freight)

This is where we can discuss what we would like to see added or changed in OpenVPN.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
gp12345
OpenVpn Newbie
Posts: 1
Joined: Fri Mar 17, 2017 1:47 pm

Better Ubuntu packaging: Origin, Label (Freight)

Post by gp12345 » Fri Mar 17, 2017 2:34 pm

Hello

this post triggered your antispam police, so I changed all URLS. If you want to follow them you shoud know what to do.

I wanted to setup unattended updates on an Ubuntu 16 box including Openvpn. I had a hard time to find that I needed to add the following line to
/etc/apt/apt.conf.d/50unattended-upgrades:

"Freight:${distro_codename}";

It was equally difficult to track this mysterious 'Freight' to
(http)build.openvpn.net/debian/openvpn/release/2.3/dists/xenial/
where the release file begins with:
Origin: Freight Label: Freight Suite: xenial Codename: xenial Components: main

I have found on the net the following project:
(https)github.com/rcrowley/freight
the code in (https)github.com/rcrowley/freight/blob/master/bin/freight-init#L4 has to say:

/ Usage: freight init -g<email> [--libdir=<libdir>] [--cachedir=<cachedir>] [--archs=<archs>] [--origin=<origin>] [--label=<label>] [-v] [-h] [<dirname>]
#/ -g<email>, --gpg=<email> GPG key to use
#/ -c<conf>, --conf=<conf> config file to create (default etc/freight.conf)
#/ --libdir=<libdir> library directory (default var/lib/freight)
#/ --cachedir=<cachedir> cache directory (default var/cache/freight)
#/ --archs=<archs> architectures to support (default "i386 amd64")
#/ --origin=<origin> Debian archive Origin field (default "Freight")
#/ --label=<label> Debian archive Label field (default "Freight")

the label does not matter in unattended updates, but the Origin does; if it
is not set correctly, the unattended-updates script does not find the openvpn
package.

IMO, the Debian/Ubuntu package could be better if the origin was explicitly set
to 'openvpn' instead of keeping the default value generated by the packaging tool

Post Reply