NetworkManager/contrib/fedora/rpm
Beniamino Galvani 63639f338f contrib/rpm: fix mode of ghost ifup/ifdown files
Set the execution bit on /usr/sbin/{ifup,ifdown} ghost files to match
the mode of same files installed by initscripts.

Otherwise, they will appear as changed according to rpm verify:

 .M.......  g /usr/sbin/ifdown
 .M.......  g /usr/sbin/ifup

when the alternatives mechanism is not in place.

 # ll /usr/sbin/if{up,down}
 -rwxr-xr-x. 1 root root 1651 Aug 24 06:23 /usr/sbin/ifdown
 -rwxr-xr-x. 1 root root 5010 Aug 24 06:23 /usr/sbin/ifup

https://bugzilla.redhat.com/show_bug.cgi?id=1626517
(cherry picked from commit d8a972c575)
2018-09-14 14:56:09 +02:00
..
.gitignore contrib/rpm: add spec file and script to build a RPM package 2014-05-07 17:14:36 +02:00
00-server.conf contrib/rpm: update comment in 00-server.conf 2016-02-03 16:25:19 +01:00
20-connectivity-fedora.conf config/rpm: use plain HTTP URI for connectivity checking 2015-07-16 16:44:49 +02:00
20-connectivity-redhat.conf contrib/rpm: add RHEL connectivity checking package 2018-07-23 12:30:25 +02:00
build.sh contrib/rpm: add RHEL connectivity checking package 2018-07-23 12:30:25 +02:00
build_clean.sh contrib/rpm: fix handling of --with test default 2018-09-14 14:55:43 +02:00
mockbuild.sh contrib/fedora: Add mockbuild.sh 2017-10-30 11:04:20 +01:00
NetworkManager.conf contrib/rpm: fix code comment in default "NetworkManager.conf" 2017-01-17 14:26:30 +01:00
NetworkManager.spec contrib/rpm: fix mode of ghost ifup/ifdown files 2018-09-14 14:56:09 +02:00
README all: point git references to the GitLab instance 2018-08-27 11:36:56 +02:00

# To build RPM packages for Fedora derivates directly from git, just do:


#
# preparation:
#
git clone https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
cd NetworkManager
git checkout $WHATEVER
sudo sh ./contrib/fedora/REQUIRED_PACKAGES


#
# build the packages. Pass --help for usage help.
#
./contrib/fedora/rpm/build_clean.sh


#
# install
#
sudo dnf install ./contrib/fedora/rpm/latest/RPMS/x86_64/*rpm



# To generate a clean build from git using mock, run:
./contrib/fedora/rpm/mockbuild.sh