diff --git a/packaging/osx/SConscript b/packaging/osx/SConscript index f2b712a5..2f0223d5 100644 --- a/packaging/osx/SConscript +++ b/packaging/osx/SConscript @@ -63,10 +63,10 @@ env.Install( root.Dir(relative(etc_freelan_path)), configurations, ) -env.GenerateScript( +env.AddPostAction(env.GenerateScript( root.File(relative(uninstall_script)), uninstall_script_source, -) +), Action("chmod 0755 $TARGET")) env.Plist( root.File(relative(launch_daemon_script)), launch_daemon_script_source, @@ -98,7 +98,7 @@ final_package = env.ProductBuild( 'version': env.defines.version_str, }), PRODUCTBUILD_RESOURCES=resources, - PRODUCTBUILD_PACKAGE_PATH=[env.Dir('.')], + PRODUCTBUILD_PACKAGE_PATH=[env.Dir('.'), env.Dir('third-party')], ) Return('final_package') diff --git a/packaging/osx/distribution.xml.in b/packaging/osx/distribution.xml.in index 4a1a289c..5529fad8 100644 --- a/packaging/osx/distribution.xml.in +++ b/packaging/osx/distribution.xml.in @@ -3,22 +3,32 @@ FreeLAN {version} org.freelan - + - org.freelan.freelan.pkg + org.freelan.freelan.pkg + tap.pkg + tun.pkg + + - + + + + + + + diff --git a/packaging/osx/productbuild.py b/packaging/osx/productbuild.py index fda5b884..98156e7d 100644 --- a/packaging/osx/productbuild.py +++ b/packaging/osx/productbuild.py @@ -44,8 +44,10 @@ def productbuild_scanner(node, env, paths): for package in packages: for path in paths: package_file = env.Dir(path).File(package) - result.append(package_file) - break + + if package_file.exists() or package_file.has_builder(): + result.append(package_file) + break return result diff --git a/packaging/osx/third-party/.gitignore b/packaging/osx/third-party/.gitignore new file mode 100644 index 00000000..1bb09658 --- /dev/null +++ b/packaging/osx/third-party/.gitignore @@ -0,0 +1 @@ +!*.pkg diff --git a/packaging/osx/third-party/tap.pkg b/packaging/osx/third-party/tap.pkg new file mode 100644 index 00000000..020c5ce6 Binary files /dev/null and b/packaging/osx/third-party/tap.pkg differ diff --git a/packaging/osx/third-party/tun.pkg b/packaging/osx/third-party/tun.pkg new file mode 100644 index 00000000..8fddd6cb Binary files /dev/null and b/packaging/osx/third-party/tun.pkg differ diff --git a/packaging/osx/third-party/tuntap_20150118.pkg b/packaging/osx/third-party/tuntap_20150118.pkg new file mode 100644 index 00000000..8f1434b9 Binary files /dev/null and b/packaging/osx/third-party/tuntap_20150118.pkg differ diff --git a/packaging/osx/tuntap/tuntap_20150118.tar.gz b/packaging/osx/tuntap/tuntap_20150118.tar.gz deleted file mode 100644 index 3dbbd0e7..00000000 Binary files a/packaging/osx/tuntap/tuntap_20150118.tar.gz and /dev/null differ