mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-27 16:46:32 +00:00
Actually use /usr/libexec/fwupd/fwupd
It appears the enormity of replacing a directory with a file is just too much for package managers in 2017. I guess we might ship other things in /usr/libexec/fwupd/ in the future.
This commit is contained in:
parent
e07a6ddf6e
commit
a9a99bdb48
@ -119,15 +119,6 @@ mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
|
|||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
# /usr/libexec/fwupd used to be a directory, and now it's a file and
|
|
||||||
# rpm seems completely unable to cope with this
|
|
||||||
# see https://bugzilla.redhat.com/show_bug.cgi?id=447156 for details
|
|
||||||
%pretrans -p <lua>
|
|
||||||
st = posix.stat("/usr/libexec/fwupd")
|
|
||||||
if st and st.type == "directory" then
|
|
||||||
os.execute("rm -rf /usr/libexec/fwupd")
|
|
||||||
end
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%systemd_post fwupd.service
|
%systemd_post fwupd.service
|
||||||
@ -146,7 +137,8 @@ end
|
|||||||
%doc README.md AUTHORS NEWS
|
%doc README.md AUTHORS NEWS
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%config(noreplace)%{_sysconfdir}/fwupd.conf
|
%config(noreplace)%{_sysconfdir}/fwupd.conf
|
||||||
%{_libexecdir}/fwupd
|
%dir %{_libexecdir}/fwupd
|
||||||
|
%{_libexecdir}/fwupd/fwupd
|
||||||
%{_bindir}/fwupdmgr
|
%{_bindir}/fwupdmgr
|
||||||
%{_sysconfdir}/pki/fwupd
|
%{_sysconfdir}/pki/fwupd
|
||||||
%{_sysconfdir}/pki/fwupd-metadata
|
%{_sysconfdir}/pki/fwupd-metadata
|
||||||
|
@ -7,7 +7,7 @@ Before=gdm.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=org.freedesktop.fwupd
|
BusName=org.freedesktop.fwupd
|
||||||
ExecStart=@libexecdir@/fwupd
|
ExecStart=@libexecdir@/fwupd/fwupd
|
||||||
MemoryDenyWriteExecute=yes
|
MemoryDenyWriteExecute=yes
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
ProtectControlGroups=yes
|
ProtectControlGroups=yes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[D-BUS Service]
|
[D-BUS Service]
|
||||||
Name=org.freedesktop.fwupd
|
Name=org.freedesktop.fwupd
|
||||||
Documentation=http://www.fwupd.org/
|
Documentation=http://www.fwupd.org/
|
||||||
Exec=@libexecdir@/fwupd
|
Exec=@libexecdir@/fwupd/fwupd
|
||||||
User=root
|
User=root
|
||||||
SystemdService=fwupd.service
|
SystemdService=fwupd.service
|
||||||
|
@ -74,7 +74,7 @@ executable(
|
|||||||
'-DFU_OFFLINE_DESTDIR=""',
|
'-DFU_OFFLINE_DESTDIR=""',
|
||||||
],
|
],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : 'libexec'
|
install_dir : 'libexec/fwupd'
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('enable-tests')
|
if get_option('enable-tests')
|
||||||
|
Loading…
Reference in New Issue
Block a user