Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix pkg build
install /etc/ld.so.conf.d/bpftune.spec
  • Loading branch information
alan-maguire committed Jul 7, 2023
commit 66cd0989accaa453c1b4a22877f1cebb64308a80
1 change: 1 addition & 0 deletions buildrpm/bpftune.spec
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ rm -Rf %{buildroot}

%files
%defattr(-,root,root)
%{_sysconfdir}/ld.so.conf.d/libbpftune.conf
%{_sbindir}/bpftune
%{_unitdir}/bpftune.service
%{_libdir}/libbpftune.so.%{version}.%{rel}
Expand Down
5 changes: 4 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ INSTALLPATH = $(installprefix)
# to where to bisect the full path such that everything prior to
# it is considered to be prefix to config path /etc.
confprefix ?= $(shell echo $(prefix) | awk -F /usr '{ printf $1 "/etc" }')
CONFPATH = $(DESTDIR)/$(confprefix)/ld.so.conf.d
CONF = $(DESTDIR)/$(confprefix)
CONFPATH = $(CONF)/ld.so.conf.d

KERNEL_REL := $(shell uname -r)

Expand Down Expand Up @@ -125,6 +126,8 @@ install: $(OPATH)libbpftune.so $(OPATH)bpftune bpftune.service
$(INSTALL) -m 644 bpftune.service $(installprefix)/lib/systemd/system
$(INSTALL) -m 0755 -d $(INSTALLPATH)/lib64/bpftune
$(INSTALL) $(TUNER_LIBS) $(INSTALLPATH)/lib64/bpftune
$(INSTALL) -m 0755 -d $(CONF)
$(INSTALL) -m 0755 -d $(CONFPATH)
echo $(prefix)/lib64 > $(CONFPATH)/libbpftune.conf
if [ $(DESTDIR) = / ]; then ldconfig; fi

Expand Down