forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,014 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
include $(srcdir)/%D%/macos/Makefile.am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
sbin_PROGRAMS += InvariantDisks | ||
CPPCHECKTARGETS += InvariantDisks | ||
|
||
AM_LIBTOOLFLAGS += --tag=CXX | ||
|
||
InvariantDisks_SOURCES = \ | ||
%D%/IDLogUtils.cpp \ | ||
%D%/IDLogUtils.hpp \ | ||
%D%/IDBaseLinker.cpp \ | ||
%D%/IDBaseLinker.hpp \ | ||
%D%/IDCLI.cpp \ | ||
%D%/IDCLI.hpp \ | ||
%D%/IDDAHandlerIdle.cpp \ | ||
%D%/IDDAHandlerIdle.hpp \ | ||
%D%/IDDiskArbitrationDispatcher.cpp \ | ||
%D%/IDDiskArbitrationDispatcher.hpp \ | ||
%D%/IDDiskArbitrationHandler.hpp \ | ||
%D%/IDDiskArbitrationUtils.cpp \ | ||
%D%/IDDiskArbitrationUtils.hpp \ | ||
%D%/IDDiskInfoLogger.cpp \ | ||
%D%/IDDiskInfoLogger.hpp \ | ||
%D%/IDDispatchUtils.cpp \ | ||
%D%/IDDispatchUtils.hpp \ | ||
%D%/IDException.cpp \ | ||
%D%/IDException.hpp \ | ||
%D%/IDFileUtils.mm \ | ||
%D%/IDFileUtils.hpp \ | ||
%D%/IDImagePathLinker.cpp \ | ||
%D%/IDImagePathLinker.hpp \ | ||
%D%/IDMediaPathLinker.cpp \ | ||
%D%/IDMediaPathLinker.hpp \ | ||
%D%/IDSerialLinker.cpp \ | ||
%D%/IDSerialLinker.hpp \ | ||
%D%/IDSymlinkHandle.cpp \ | ||
%D%/IDSymlinkHandle.hpp \ | ||
%D%/IDUUIDLinker.cpp \ | ||
%D%/IDUUIDLinker.hpp \ | ||
%D%/git-version.h \ | ||
%D%/main.cpp | ||
|
||
InvariantDisks_CXXFLAGS = -std=c++11 -stdlib=libc++ | ||
InvariantDisks_OBJCXXFLAGS = -std=c++11 -stdlib=libc++ | ||
InvariantDisks_LDFLAGS = -static -framework IOKit -framework DiskArbitration -framework CoreFoundation -framework Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(srcdir)/%D%/InvariantDisks/Makefile.am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FS_BUNDLEPREFIX = /Library/Filesystems | ||
FS_BUNDLEDIR = $(DESTDIR)$(FS_BUNDLEPREFIX)/zfs.fs | ||
|
||
include $(srcdir)/%D%/InvariantDisks/Makefile.am | ||
include $(srcdir)/%D%/zconfigd/Makefile.am | ||
include $(srcdir)/%D%/zfs_util/Makefile.am | ||
include $(srcdir)/%D%/zsysctl/Makefile.am | ||
include $(srcdir)/%D%/mount_zfs/Makefile.am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Linux steals the "mount_zfs" name first, and since it's one | ||
# giant Makefile you can no longer have two tools with the same name. | ||
# | ||
bin_PROGRAMS += macos_mount_zfs | ||
CPPCHECKTARGETS += macos_mount_zfs | ||
|
||
AM_CPPFLAGS += -I$(top_srcdir)/lib/libzfs | ||
|
||
macos_mount_zfs_SOURCES = \ | ||
%D%/mount_zfs.c | ||
|
||
macos_mount_zfs_LDADD = \ | ||
libzfs.la \ | ||
libzfs_core.la \ | ||
libnvpair.la | ||
|
||
macos_mount_zfs_LDADD += $(LTLIBINTL) | ||
|
||
|
||
mount_zfs: macos_mount_zfs | ||
cp "$^" "$@" | ||
|
||
INSTALL_DATA_HOOKS += mount_zfs-install-exec-hook | ||
mount_zfs-install-exec-hook: | ||
mkdir -p $(FS_BUNDLEDIR)/Contents/Resources | ||
cp -f $(DESTDIR)/$(sbindir)/macos_mount_zfs $(DESTDIR)/$(sbindir)/mount_zfs | ||
cp -f $(DESTDIR)/$(sbindir)/mount_zfs $(FS_BUNDLEDIR)/Contents/Resources/mount_zfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
sbin_PROGRAMS += zconfigd | ||
CPPCHECKTARGETS += zconfigd | ||
|
||
zconfigd_SOURCES = \ | ||
%D%/zconfigd.c \ | ||
%D%/zconfigd.h | ||
|
||
zconfigd_LDFLAGS = -framework IOKit -framework Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
sbin_PROGRAMS += zfs_util | ||
CPPCHECKTARGETS += zfs_util | ||
|
||
INFO_PLIST = %D%/Info.plist | ||
INFOPLIST_STRINGS = %D%/English.lproj/InfoPlist.strings | ||
PKGINFO = %D%/PkgInfo | ||
|
||
zfs_util_SOURCES = \ | ||
%D%/zfs_util.c | ||
|
||
zfs_util_LDADD = \ | ||
libzfs.la | ||
|
||
zfs_util_LDFLAGS = -static -framework IOKit | ||
|
||
# build the /Library/Filesystems/zfs.fs/ bundle | ||
|
||
noinst_zfs_fs_SOURCES = | ||
|
||
bin_PROGRAMS += noinst_zfs.fs | ||
|
||
dist_noinst_DATA += $(INFO_PLIST) $(INFOPLIST_STRINGS) $(PKGINFO) | ||
|
||
noinst_zfs.fs$(EXEEXT): zfs_util | ||
mkdir -p zfs.fs/Contents/Resources/English.lproj | ||
cp -f $(PKGINFO) zfs.fs/Contents/ | ||
cp -f $(INFO_PLIST) zfs.fs/Contents/ | ||
cp -f zfs_util zfs.fs/Contents/Resources/ | ||
cp -f $(INFOPLIST_STRINGS) zfs.fs/Contents/Resources/English.lproj/ | ||
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(ZFS_META_VERSION)" zfs.fs/Contents/Info.plist | ||
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $(ZFS_META_VERSION)" zfs.fs/Contents/Info.plist | ||
plutil -convert binary1 zfs.fs/Contents/Resources/English.lproj/InfoPlist.strings | ||
|
||
INSTALL_DATA_HOOKS += fs-install-exec-local | ||
fs-install-exec-local: noinst_zfs.fs | ||
rm -f $(FS_BUNDLEDIR)/Contents/$(PKGINFO) | ||
rm -f $(FS_BUNDLEDIR)/Contents/$(INFO_PLIST) | ||
rm -f $(FS_BUNDLEDIR)/Contents/Resources/English.lproj/$(INFOPLIST_STRINGS) | ||
mkdir -p $(FS_BUNDLEDIR) | ||
rsync -aH zfs.fs/ $(FS_BUNDLEDIR)/ | ||
ln -fs /usr/bin/true $(FS_BUNDLEDIR)/Contents/Resources/fsck_zfs | ||
ln -fs /usr/bin/true $(FS_BUNDLEDIR)/Contents/Resources/newfs_zfs | ||
chown -R root:wheel $(FS_BUNDLEDIR) || echo "Unable to chown root:wheel in $(FS_BUNDLEDIR)" | ||
|
||
|
||
CLEANFILES += zfs.fs/Contents/Resources/English.lproj/InfoPlist.strings \ | ||
zfs.fs/Contents/Resources/zfs_util \ | ||
zfs.fs/Contents/Info.plist \ | ||
zfs.fs/Contents/PkgInfo \ | ||
zfs.fs/Contents/Resources/English.lproj/InfoPlist.strings \ | ||
zfs.fs/Contents/Resources/fsck_zfs \ | ||
zfs.fs/Contents/Resources/newfs_zfs | ||
|
||
CLEAN_LOCAL += zfsutil_clean_local | ||
zfsutil_clean_local: | ||
@rmdir zfs.fs/Contents/Resources/English.lproj \ | ||
zfs.fs/Contents/Resources \ | ||
zfs.fs/Contents \ | ||
zfs.fs || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sbin_PROGRAMS += zsysctl | ||
CPPCHECKTARGETS += zsysctl | ||
|
||
zsysctl_SOURCES = \ | ||
%D%/zsysctl.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
noinst_launch_d_DATA = \ | ||
%D%/zpool-import-all.sh.in | ||
noinst_launch_ddir = \ | ||
$(launchdscriptdir)/ | ||
|
||
do_subst = -$(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' | ||
|
||
CLEANFILES += %D%/zpool-import-all.sh | ||
|
||
INSTALL_DATA_HOOKS += install-zpool-import | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
launchddaemondir = /Library/LaunchDaemons | ||
launchdscriptdir = ${libexecdir}/zfs/launchd.d | ||
|
||
include $(srcdir)/%D%/daemons/Makefile.am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
CLEANFILES += $(launchddaemon_DATA) | ||
|
||
launchddaemon_DATA = \ | ||
$(top_srcdir)/etc/launchd/daemons/org.openzfsonosx.zconfigd.plist \ | ||
$(top_srcdir)/etc/launchd/daemons/org.openzfsonosx.zed.plist \ | ||
$(top_srcdir)/etc/launchd/daemons/org.openzfsonosx.zpool-import.plist \ | ||
$(top_srcdir)/etc/launchd/daemons/org.openzfsonosx.zpool-import-all.plist \ | ||
$(top_srcdir)/etc/launchd/daemons/org.openzfsonosx.InvariantDisks.plist | ||
|
||
dist_launchddaemon_DATA = \ | ||
%D%/org.openzfsonosx.zconfigd.plist.in \ | ||
%D%/org.openzfsonosx.zed.plist.in \ | ||
%D%/org.openzfsonosx.zpool-import.plist.in \ | ||
%D%/org.openzfsonosx.zpool-import-all.plist.in \ | ||
%D%/org.openzfsonosx.InvariantDisks.plist.in | ||
|
||
%D%/org.openzfsonosx.zconfigd.plist: %D%/org.openzfsonosx.zconfigd.plist.in | ||
%D%/org.openzfsonosx.zed.plist: %D%/org.openzfsonosx.zed.plist.in | ||
%D%/org.openzfsonosx.zpool-import.plist: %D%/org.openzfsonosx.zpool-import.plist.in | ||
%D%/org.openzfsonosx.zpool-import-all.plist: %D%/org.openzfsonosx.zpool-import-all.plist.in | ||
%D%/org.openzfsonosx.InvariantDisks.plist: %D%/org.openzfsonosx.InvariantDisks.plist.in | ||
|
||
$(launchddaemon_DATA): | ||
-$(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' \ | ||
'[email protected]' >'$@' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pathsddir = $(sysconfdir)/paths.d | ||
pathsd_DATA = %D%/zfs-path | ||
|
||
paths_ddir = $(sysconfdir)/paths.d/ | ||
dist_paths_d_DATA = \ | ||
%D%/zfs-path | ||
|
||
zfs-path: %D%/zfs-path.in | ||
|
||
CLEANFILES += $(pathsd_DATA) | ||
CLEANFILES += %D%/zfs-path | ||
INSTALL_DATA_HOOKS += pathsd-data-hook | ||
pathsd-data-hook: %D%/zfs-path.in | ||
-$(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' \ | ||
%D%/zfs-path.in > $(DESTDIR)/$(sysconfdir)/paths.d/zfs-path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = spl zfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = sys rpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
KERNEL_H = \ | ||
$(top_srcdir)/include/os/macos/spl/rpc/types.h \ | ||
$(top_srcdir)/include/os/macos/spl/rpc/xdr.h |
Oops, something went wrong.