$NetBSD: patch-Makefile,v 1.14 2024/12/26 11:04:35 wiz Exp $ Use more portable find options. Use BSD_INSTALL. --- Makefile.orig 2024-12-17 12:22:07.000000000 +0000 +++ Makefile @@ -223,44 +223,44 @@ clean-wayland-protocols: install: install-dunst install-dunstctl install-dunstrc install-service install-dunst: dunst doc - install -Dm755 dunst ${DESTDIR}${BINDIR}/dunst - install -Dm644 docs/dunst.1 ${DESTDIR}${MANPREFIX}/man1/dunst.1 - install -Dm644 docs/dunst.5 ${DESTDIR}${MANPREFIX}/man5/dunst.5 - install -Dm644 docs/dunstctl.1 ${DESTDIR}${MANPREFIX}/man1/dunstctl.1 - install -Dm644 docs/dunstify.1 ${DESTDIR}${MANPREFIX}/man1/dunstify.1 + ${BSD_INSTALL_PROGRAM} dunst ${DESTDIR}${BINDIR}/dunst + ${BSD_INSTALL_DATA} docs/dunst.1 ${DESTDIR}${MANPREFIX}/man1/dunst.1 + ${BSD_INSTALL_DATA} docs/dunst.5 ${DESTDIR}${MANPREFIX}/man5/dunst.5 + ${BSD_INSTALL_DATA} docs/dunstctl.1 ${DESTDIR}${MANPREFIX}/man1/dunstctl.1 + ${BSD_INSTALL_DATA} docs/dunstify.1 ${DESTDIR}${MANPREFIX}/man1/dunstify.1 install-dunstctl: dunstctl - install -Dm755 dunstctl ${DESTDIR}${BINDIR}/dunstctl + ${BSD_INSTALL_SCRIPT} dunstctl ${DESTDIR}${BINDIR}/dunstctl ifeq (1,${SYSCONF_FORCE_NEW}) install-dunstrc: - install -Dm644 dunstrc ${DESTDIR}${SYSCONFFILE} + ${BSD_INSTALL_DATA} dunstrc ${DESTDIR}${SYSCONFFILE} endif install-service: install-service-dbus install-service-dbus: service-dbus - install -Dm644 org.knopwob.dunst.service ${DESTDIR}${SERVICEDIR_DBUS}/org.knopwob.dunst.service + ${BSD_INSTALL_DATA} org.knopwob.dunst.service ${DESTDIR}${SERVICEDIR_DBUS}/org.knopwob.dunst.service ifneq (0,${SYSTEMD}) install-service: install-service-systemd install-service-systemd: service-systemd - install -Dm644 dunst.systemd.service ${DESTDIR}${SERVICEDIR_SYSTEMD}/dunst.service + ${BSD_INSTALL_DATA} dunst.systemd.service ${DESTDIR}${SERVICEDIR_SYSTEMD}/dunst.service endif ifneq (0,${DUNSTIFY}) install: install-dunstify install-dunstify: dunstify - install -Dm755 dunstify ${DESTDIR}${BINDIR}/dunstify + ${BSD_INSTALL_PROGRAM} dunstify ${DESTDIR}${BINDIR}/dunstify endif ifneq (0,${COMPLETIONS}) install: install-completions install-completions: - install -Dm644 completions/dunst.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunst - install -Dm644 completions/dunstctl.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunstctl - install -Dm644 completions/_dunst.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunst - install -Dm644 completions/_dunstctl.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunstctl - install -Dm644 completions/dunst.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunst.fish - install -Dm644 completions/dunstctl.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstctl.fish + ${BSD_INSTALL_DATA} completions/dunst.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunst + ${BSD_INSTALL_DATA} completions/dunstctl.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunstctl + ${BSD_INSTALL_DATA} completions/_dunst.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunst + ${BSD_INSTALL_DATA} completions/_dunstctl.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunstctl + ${BSD_INSTALL_DATA} completions/dunst.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunst.fish + ${BSD_INSTALL_DATA} completions/dunstctl.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstctl.fish ifneq (0,${DUNSTIFY}) install: install-completions-dunstify