mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-23 04:09:43 +00:00
Fix Debian packaging and make setcap respect DESTDIR
Because we now build a single package, DESTDIR is actually `debian/<package-name>` rather than `debian/tmp` (see https://www.debian.org/doc/manuals/debmake-doc/ch05.en.html#rules). This means that we actually don't need to add `usr` to be installed; it's already installed to the staging directory. Additionally, setcap now respects the DESTDIR variable (used when building the Debian package).
This commit is contained in:
parent
09916ea6b2
commit
549fac0475
@ -5,7 +5,7 @@ install(CODE "execute_process(
|
||||
COMMAND
|
||||
${SETCAP_EXECUTABLE}
|
||||
${caps}
|
||||
${CMAKE_INSTALL_PREFIX}/${file}
|
||||
\$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${file}
|
||||
RESULT_VARIABLE
|
||||
_SETCAP_RESULT
|
||||
)
|
||||
|
1
debian/darling.install
vendored
1
debian/darling.install
vendored
@ -1,2 +1 @@
|
||||
usr
|
||||
tools/shutdown-user.sh usr/lib/darling
|
||||
|
Loading…
Reference in New Issue
Block a user