summaryrefslogtreecommitdiffstats
path: root/systemd/Makefile.am
AgeCommit message (Collapse)AuthorFilesLines
21 hoursbuild: improve portability and auto-detect udev/systemdGravatar Masatake Daimon1-5/+5
- Use POSIX `=` instead of `==` in test expressions - Always recurse into udev/ and systemd/ via SUBDIRS and guard their contents with the WANT_UDEV/WANT_SYSTEMD automake conditionals, so that make dist keeps shipping the .in files (EXTRA_DIST is kept outside the guards) - Add --with-udev[=yes|no|auto] (default: auto). Auto enables udev on non-Windows/non-macOS hosts if udev.pc is found, a udev rules directory exists (native builds), or when cross-compiling for Linux - Disable systemd support if no systemd unit directory can be found, so the udev rule and HAVE_SYSTEMD no longer claim systemd activation when no unit is installed - Do not call pkg-config for udevdir/systemdsystemunitdir if it is unavailable - Report the actual activation method (systemd, udev or manual) in the configure summary Co-authored-by: Nikias Bassen <nikias@gmx.li>
2023-09-18systemd: use runstatedirGravatar Patrick Williams1-1/+1
On newer versions of systemd, there is an expectation that `/run` is used instead of `/var/run`. The current service file template can result in the following error message in the service: ``` systemd[1]: /lib/systemd/system/usbmuxd.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/usbmuxd.pid → /run/usbmuxd.pid; please update the unit file accordingly. ``` Prefer the `@runstatedir@` over `@localstatedir/run@` pattern as suggested by [1]. [1]: https://www.gnu.org/prep/standards/html_node/Directory-Variables.html Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2014-10-16Rename HAVE_SYSTEMD conditional into WANT_SYSTEMDGravatar Martin Szulecki1-1/+1
2014-09-19Add systemd activation autofoo with fallback for udev and manual activationGravatar Martin Szulecki1-0/+21