Skip to content

Commit

Permalink
Move SERVER_DIR to /var/lib in rpm
Browse files Browse the repository at this point in the history
Fixes #1619.
  • Loading branch information
Martin Sander committed Aug 9, 2024
1 parent 1e639fe commit 4a17ef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions distro/pkg/rpm/netopeer2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ a single established NETCONF session.
%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
-DSYSREPO_SETUP=OFF \
-DPIDFILE_PREFIX=/run \
-DSERVER_DIR=%{_libdir}/netopeer2-server
-DSERVER_DIR=%{_sharedstatedir}/netopeer2-server
%cmake_build

%install
%cmake_install
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/netopeer2-server.service
mkdir -p -m=700 %{buildroot}%{_libdir}/netopeer2-server
mkdir -p -m=700 %{buildroot}%{_sharedstatedir}/netopeer2-server

%post server
set -e
Expand Down Expand Up @@ -102,7 +102,7 @@ set -e
%{_sysconfdir}/pam.d/netopeer2.conf
%dir %{_datadir}/yang/modules/netopeer2/
%dir %{_datadir}/netopeer2/
%dir %{_libdir}/netopeer2-server/
%dir %{_sharedstatedir}/netopeer2-server/

%files cli
%license LICENSE
Expand Down

0 comments on commit 4a17ef8

Please sign in to comment.