summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* contrib/rpm: fix builds without ovs supportBeniamino Galvani2017-11-021-0/+5
| | | | | | | | | | | | Don't compile ovs support when the RPM is built --without=ovs, to fix the following error: error: Installed (but unpackaged) file(s) found: /usr/lib/systemd/system/NetworkManager.service.d/NetworkManager-ovs.conf /usr/lib64/NetworkManager/libnm-device-plugin-ovs.so /usr/share/man/man7/nm-openvswitch.7.gz Fixes: 830a5a14cb29ca00b73a9623c1ea7c5cd92f4d00
* man: add OpenVSwitch overviewlr/ovsLubomir Rintel2017-10-301-1/+2
|
* device: add support for OpenVSwitch devicesLubomir Rintel2017-10-301-0/+20
|
* contrib/fedora: Add mockbuild.shMurilo Opsfelder Araujo2017-10-302-0/+24
| | | | | | | | This script comes handy to build from git tree without having to install build dependencies on the system, the actual build happens inside mock environment. https://github.com/NetworkManager/NetworkManager/pull/34
* dhcp: add support for dhcpcanon clientjuga02017-10-301-1/+1
| | | | https://github.com/NetworkManager/NetworkManager/pull/31
* contrib/fedora: Update required packagesMurilo Opsfelder Araujo2017-10-251-0/+2
| | | | | | | | | | | | | | Add dhclient and iptables packages to build dependencies to satisfy rpmbuild complaints: ``` error: Failed build dependencies: dhclient is needed by NetworkManager-1:1.9.2-18653.43dba57439.fc28.x86_64 iptables is needed by NetworkManager-1:1.9.2-18653.43dba57439.fc28.x86_64 ERROR: rpmbuild FAILED ``` https://github.com/NetworkManager/NetworkManager/pull/33
* contrib/rpm: explicitly set default dhcp configurationThomas Haller2017-10-121-0/+1
| | | | It will also be autodetected, but be explicit about it.
* contrib/scripts: fix coloring for platform messages in NM-log for old logsThomas Haller2017-10-031-1/+1
| | | | | | | | Older logfiles contain platform: route: adding or updating IPv4 route: 10.1.0 Hightlight that too.
* contrib/rpm: enable "NetworkManager-wait-online.service" on package upgradeThomas Haller2017-09-271-0/+10
| | | | | | | | | | | | | | | | | | Since commit d61eaf2545c819cab17c29c4c13a3a3bd94b38a6 ("service: don't install dependency for "NetworkManager-wait-online.service" to "network-online.target.wants") we no longer install NM-w-o.service in "network-online.target.wants" directory. Obviously, for previous RPM versions NM-w-o.service was always enabled. For current versions, it depends now on the preset. Most importantly, this allows the user to disable the service, without masking it. Previously NM-w-o.service was always implicitly enabled. But presets are not applied during package upgrade, so it means that after upgrade the service will be disabled. Hack around that via an RPM scriptlet. https://bugzilla.redhat.com/show_bug.cgi?id=1455704
* contrib/scripts: update coloring for platform messages in NM-log (2)Thomas Haller2017-09-251-1/+1
| | | | Fixes: 9344013977bee9d17413a4ab18ad13a4b2244ac3
* contrib/scripts: update coloring for platform messages in NM-logThomas Haller2017-09-251-1/+1
|
* contrib/rpm: update spec file with upstream source URLThomas Haller2017-09-201-0/+3
| | | | | | | | This isn't useful for contrib/fedora/rpm itself because here the __SOURCE__ gets set by the build scripts. But this spec file is copied to Fedora downstream where the SOURCE URL is used.
* contrib/rpm: allow building RPM without fatal warningsThomas Haller2017-09-111-0/+4
| | | | | | | | | A newer compiler version might emit some warnings and break the build of the RPM. Of course, such warnings must be fixed. But it is still very inconvenient to break the build of an old RPM version without easy workaround. When building without "test" (which is on by default), don't use fatal warnings for compilation.
* contrib/NM-log: don't use exec in bash functionsThomas Haller2017-09-081-2/+2
| | | | | When sourcing the file, using exec inside NM-show-journal is a bad idea, because it replaces the calling shell.
* contrib/NM-log: don't run less with --quit-on-intr argumentThomas Haller2017-09-071-1/+1
| | | | | I find it annoying when ^C exits less and it prompts me to often do `NM-log | less -R` instead.
* contrib/NM-log: colorize warnings and errors in red (fix)Thomas Haller2017-09-071-3/+3
| | | | | Must not colorize the trailing space, otherwise the following " device" will no longer match.
* contrib/NM-log: colorize warnings and errors in redThomas Haller2017-09-071-1/+3
| | | | | | | | - remove "\r\n" line endings - colorize <warn> and <error> in red - extend matching the info levels to include the timestamp. This (intentionally) will no longer highlight messages from ModemManager, which don't include a timestamp.
* contrib/NM-log: improve script and make it sourceableThomas Haller2017-09-071-22/+36
| | | | | | | | | | - use "grep -a" so that grep doesn't refuse to work in binary input. - make the script source-able to only define the NM-colorize and NM-show-journal - In case the script is sourced, it also defines a NM-log function, which does the same as the script itself. - rename internal functions so that they have names starting with "NM" in case of sourcing.
* contrib/scripts: add NM-log helperThomas Haller2017-08-241-0/+52
| | | | To pretty print and colorize NetworkManager logfiles.
* contrib/rpm: skip tests for -Q build optionThomas Haller2017-07-252-2/+8
| | | | | | | | | | | Previously, the --quick option only mattered when creating the source tarball, to run `make dist` instead of the slower `make distcheck`. Extend its meaning to also skip unit tests while building the RPM. You still can enable them with $ ./contrib/fedora/rpm/build_clean.sh -Q -w test
* contrib/rpm: provide NetworkManager-develLubomir Rintel2017-07-211-2/+2
| | | | | | The package no longer exists. Fixes: 03586743f09c8c70b43025bce47d5b064bf8999f
* contrib/rpm: fix Requires/Provides on subpackagesStephen Gallagher2017-07-201-3/+3
| | | | | | | NetworkManager-wifi and NetworkManager-glib-devel should require NetworkManager, not provide it. https://bugzilla.redhat.com/show_bug.cgi?id=1454505
* service: don't install dependency for "NetworkManager-wait-online.service" ↵Thomas Haller2017-07-171-2/+0
| | | | | | | | | | | | | | | | | to "network-online.target.wants" If we install "NetworkManager-wait-online.service" in the "network-online.target.wants" directory, network-online.target always pulls in NetworkManager-wait-online.service. As it was, it could only be disabled by masking the service. Instead, we should enable NetworkManager-wait-online.sevice via systemd's preset. That is already done for Fedora 26 and newer. Note that NetworkManager-wait-online.sevice already has Install.WantedBy. This way, the dependency is created automatically when enabling the service. https://bugzilla.redhat.com/show_bug.cgi?id=1455704
* contrib/rpm: allow building devel RPMs without debug enabledThomas Haller2017-05-231-1/+10
| | | | | | | | | | | | | | Since commit 1afbf948a0825300ce395adc5706e1ffdca94d24, "build: use different defaults for snapshot builds", configure would enable debugging options if the version number is odd. Hence, on the master branch it was no longer possible to build an RPM without debugging enabled. Especially, ./contrib/fedora/rpm/build_clean.sh -g -W debug would not work as one would expect.
* contrib/rpm: add option to build package with sanitizerThomas Haller2017-05-231-4/+12
|
* contrib/rpm: drop explicit dependency on libnl3 packageThomas Haller2017-05-181-1/+0
| | | | | | | | | | | | We already get a library dependency on libnl-3.so.200()(64bit) libnl-3.so.200(libnl_3)(64bit) Drop the explicit package dependency, leaving only the BuildRequires. Also, all recent versions of libnl3 implement library versioning.
* contrib: update fedora's REQUIRED_PACKAGES listThomas Haller2017-05-151-25/+26
|
* contrib/rpm: fix specifying build with/without libpslThomas Haller2017-05-101-2/+2
| | | | Fixes: faad17f9e8e804e89ffd5a779ed22871a77755e0
* contrib/rpm: reorder variables in spec fileThomas Haller2017-05-101-4/+3
|
* travis: don't check for setting-docs.c fileThomas Haller2017-04-051-0/+4
| | | | Fixes: b3e2808c322c7fcccf16e81baf258febe688c29e
* build: configure explicit paths for dist tarball during "build_clean.sh"Thomas Haller2017-03-241-0/+16
| | | | | | | | | | | | | | "build_clean.sh" is used to generate a distribution tarball. The tarball contains pregenerated man pages with default values for paths, which in turn depend on the configure options when creating the tarball. Previously, the man page would have paths like "usr/local/etc/NetworkManager/...", which doesn't seem the best choice for a default man page. Explicitly set the installation paths. Also, --disable-dependency-tracking in this mode. It may speed up the build.
* contrib/rpm: enable libpsl on Fedora onlyLubomir Rintel2017-03-221-0/+7
|
* udev: drop libgudev in favor of libudevThomas Haller2017-03-223-3/+1
| | | | | | libgudev is just a wrapper around libudev. We can use libudev directly and drop the dependency for libgudev.
* connectivity: switch connectivity checking to libcurllr/fg/libcurl_bgo752642Francesco Giudici2017-03-222-2/+2
| | | | | | | [lkundrak@v3.sk: removed libsoup altogether, implemented TODOs and fixed the poll condition handling] Co-authored-by: Lubomir Rintel <lkundrak@v3.sk>
* dns-manager: use libpsl directlyLubomir Rintel2017-03-222-0/+2
| | | | | ...instead of via libsoup. This makes it possible to do gTLD suffix checking even if we're building without libsoup support.
* contrib/rpm: reorder spec file and move bcond definitions togetherThomas Haller2017-03-061-9/+8
|
* contrib/rpm: remove unused default_with_* variablesThomas Haller2017-03-061-19/+0
| | | | They are unused since commit d2fd1b9fb7ef73f3bdeb5c68f1e382c1244a5012.
* contrib/rpm: add explicit libxslt build dependencyThomas Haller2017-03-061-0/+2
| | | | | | | | We configurably use --enable-gtk-doc/--disable-gtk-doc, but we always require --enable-introspection (due to --enable-vala). Add the missing build requirement to the "xsltproc" binary, which is in libxslt package.
* contrib/rpm: drop EOL versions of FedoraLubomir Rintel2017-03-021-16/+5
| | | | | These are history and noone should be using them; special casing them is essentially line noise.
* contrib/rpm: install D-Bus service files to /usr if we canLubomir Rintel2017-03-021-4/+12
| | | | | This is in fact the correct location, but dbus in RHEL 7 is still too old to be able to use that.
* contrit/rpm: create source tarball from git immidiately in SOURCES directoryThomas Haller2017-02-161-2/+5
| | | | | Instead of first creating it as "$TEMP/NetworkManager-${VERSION}.tar.xz" and then copy it to "$TEMP/SOURCES".
* contrit/rpm: print the used "$SOURCE" tarball in the summary output of build.shThomas Haller2017-02-161-3/+13
|
* contrib/rpm: add explict configure options for building NetworkManager in ↵Thomas Haller2017-02-151-1/+14
| | | | | | | | | | | | | | | | | | "build_clean.sh" When we create a source tarball, documentation and other generated files are disted. Those files depend on the configure options when creating the tarball. For example, the generated man pages contain the compile time configurable default values. For that reason, it is generally better to regenerate the documentation when building NetworkManager. However, let's set explict configure options to have a more reproducible way to generate the tarball. When doing a release, you should not just call `make dist`. Instead, the proper way of creating an official source tarball is: $ ./contrib/fedora/rpm/build_clean.sh --srpm
* contrib/rpm: no longer package the Changelog with the libnm-devel/glib-devel ↵Thomas Haller2017-02-141-2/+2
| | | | packages
* contrib/rpm: don't recreate files that make install installsLubomir Rintel2017-01-291-19/+0
|
* contrib/rpm: don't own the legacy VPN directoryLubomir Rintel2017-01-291-4/+0
| | | | The plugins should own it instead.
* contrib/rpm: let NetworkManager-libnm and NetworkManager-glib of differing ↵Thomas Haller2017-01-201-0/+2
| | | | | | | | | | | | | | | | | | version conflict Since commit "c920909 contrib/rpm: put translations in NetworkManager-libnm and NetworkManager-glib packages", both subpackages install the same translation files without a direct dependency between the two packages. Thus, if a user tries to update only one of the two subpackages, it will fail during the installation due to conflicting files. Fix that by having the subpackages conflict (per version). This way, the conflict is detected before starting the installation. https://bugzilla.redhat.com/show_bug.cgi?id=1406454 (cherry picked from commit b85b8ed6fa6c664fc3cf0472234a5fe9384011e0)
* contrib/rpm: fix code comment in default "NetworkManager.conf"Thomas Haller2017-01-171-2/+3
|
* contrib: add macsec test scriptBeniamino Galvani2017-01-161-0/+102
|
* contrib/rpm: fix obsoletes_ppp_plugin versionThomas Haller2016-12-161-1/+3
| | | | | | | The ppp package split was introduced during 1.5.3 development. Thus, we obsolete packages < 1:1.5.3. Also, add conditionals around ppp-devel build-requirement.