Skip to content

Commit

Permalink
Integrated Tun/Tap OSX in the installer - approval still in progres (f…
Browse files Browse the repository at this point in the history
…ixes #30)
  • Loading branch information
ereOn committed Apr 18, 2015
1 parent d580d3d commit 11af1db
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packaging/osx/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')
16 changes: 13 additions & 3 deletions packaging/osx/distribution.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,32 @@
<title>FreeLAN {version}</title>
<organization>org.freelan</organization>
<domains enable_localSystem="true"/>
<options customize="never" require-scripts="true" rootVolumeOnly="true" />
<options customize="always" require-scripts="true" rootVolumeOnly="true" />

<!-- Define documents displayed at various steps -->
<license file="license.html" mime-type="text/html" />
<conclusion file="conclusion.html" mime-type="text/html" />

<!-- List all component packages -->
<pkg-ref id="org.freelan.freelan" version="1" auth="root">org.freelan.freelan.pkg</pkg-ref>
<pkg-ref id="org.freelan.freelan" auth="root">org.freelan.freelan.pkg</pkg-ref>
<pkg-ref id="tap" auth="root">tap.pkg</pkg-ref>
<pkg-ref id="tun" auth="root">tun.pkg</pkg-ref>

<!-- List them again here. They can now be organized as a hierarchy if you want. -->
<choices-outline>
<line choice="org.freelan.freelan"/>
<line choice="tap"/>
<line choice="tun"/>
</choices-outline>

<!-- Define each choice above -->
<choice id="org.freelan.freelan" visible="false" title="FreeLAN" description="The FreeLAN binary" start_selected="true">
<choice id="org.freelan.freelan" enabled="false" title="FreeLAN" description="The FreeLAN binary" start_selected="true">
<pkg-ref id="org.freelan.freelan"/>
</choice>
<choice id="tap" visible="true" title="TAP kernel driver" description="Install the TAP kernel driver for OS X by Mattias Nissler - TunTap OS X" start_selected="true">
<pkg-ref id="tap"/>
</choice>
<choice id="tun" visible="true" title="TUN kernel driver" description="Install the TUN kernel driver for OS X by Mattias Nissler - TunTap OS X" start_selected="true">
<pkg-ref id="tun"/>
</choice>
</installer-gui-script>
6 changes: 4 additions & 2 deletions packaging/osx/productbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions packaging/osx/third-party/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!*.pkg
Binary file added packaging/osx/third-party/tap.pkg
Binary file not shown.
Binary file added packaging/osx/third-party/tun.pkg
Binary file not shown.
Binary file added packaging/osx/third-party/tuntap_20150118.pkg
Binary file not shown.
Binary file removed packaging/osx/tuntap/tuntap_20150118.tar.gz
Binary file not shown.

0 comments on commit 11af1db

Please sign in to comment.