Skip to content

Commit

Permalink
make install would fail to mkdir first.
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
  • Loading branch information
lundman committed Dec 6, 2023
1 parent 42aff72 commit 7307b68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions etc/launchd.d/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ do_subst = -$(SED) -e 's,@bindir\@,$(bindir),g' \

CLEANFILES += %D%/zpool-import-all.sh

INSTALL_DATA_HOOKS += install-zpool-import
INSTALL_DATA_HOOKS += zpool-import-all.sh

install-zpool-import: %D%/zpool-import-all.sh.in
$(do_subst) < %D%/zpool-import-all.sh.in > $(DESTDIR)/$(launchdscriptdir)/zpool-import-all.sh
chmod +x $(DESTDIR)/$(launchdscriptdir)/zpool-import-all.sh
zpool-import-all.sh: %D%/zpool-import-all.sh.in
-$(AM_V_at)$(MKDIR_P) $(DESTDIR)/$(launchdscriptdir)/
-$(AM_V_GEN)$(SED) -e 's,@bindir\@,$(bindir),g' \
-e 's,@runstatedir\@,$(runstatedir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
-e 's,@launchdscriptdir\@,$(launchdscriptdir),g' \
'$<' > $(DESTDIR)/$(launchdscriptdir)/'$@'
chmod +x $(DESTDIR)/$(launchdscriptdir)/'$@'
5 changes: 3 additions & 2 deletions etc/launchd/daemons/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ launchddaemon_DATA = \
%D%/org.openzfsonosx.InvariantDisks.plist: %D%/org.openzfsonosx.InvariantDisks.plist.in

$(launchddaemon_DATA):
-$(SED) -e 's,@bindir\@,$(bindir),g' \
-$(AM_V_at)$(MKDIR_P) $(@D)
-$(AM_V_GEN)$(SED) -e 's,@bindir\@,$(bindir),g' \
-e 's,@runstatedir\@,$(runstatedir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
-e 's,@launchddaemondir\@,$(launchddaemondir),g' \
-e 's,@launchdscriptdir\@,$(launchdscriptdir),g' \
'$@.in' >'$@'
'$<' >'$@'

0 comments on commit 7307b68

Please sign in to comment.