Skip to content

Commit

Permalink
packaging: fix paths when building packages
Browse files Browse the repository at this point in the history
On Ubuntu/debian, it have happenned that some build have inconsistent
paths like /usr/usr/lib. To avoid this, hard-coded most of the paths
like we are doing in Fedora.

Change-Id: I8c1a3567490e02ac11ec57315bc3a7cc38d02ea0
  • Loading branch information
loulou123546 committed Oct 24, 2024
1 parent f39d52f commit ce79ae1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extras/packaging/gnu-linux/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ override_dh_auto_configure:
-DBUILD_SHARED_LIBS=ON \
-DBUILD_DEPS_STATIC=ON \
-DTRIM_PREFIX_PATH=ON \
-DDNC_SYSTEMD=ON
-DDNC_SYSTEMD=ON \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_MANDIR=/usr/share/man \
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/dhtnet \
-DCMAKE_INSTALL_INCLUDEDIR=/usr/include \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DDNC_SYSTEMD_UNIT_FILE_LOCATION=/usr/lib/systemd/system \
-DDNC_SYSTEMD_PRESET_FILE_LOCATION=/usr/lib/systemd/system-preset

0 comments on commit ce79ae1

Please sign in to comment.