diff --git a/.gitignore b/.gitignore
index 05800dd..138aab1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,8 @@
-.bundle
-coverage
-example/log/*
-man/*.html
-man/*.markdown
-pkg
-tags
+/.bundle
+/coverage
+/example/log/*
+/man/*.html
+/man/*.markdown
+/pkg
+/tags
diff --git a/dist/resources/pkg/Distribution.erb b/dist/resources/pkg/Distribution.erb
new file mode 100644
index 0000000..a584089
--- /dev/null
+++ b/dist/resources/pkg/Distribution.erb
@@ -0,0 +1,23 @@
+
+
+ Foreman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #foreman-<%= version %>.pkg
+
+
diff --git a/dist/resources/pkg/PackageInfo.erb b/dist/resources/pkg/PackageInfo.erb
new file mode 100644
index 0000000..7392615
--- /dev/null
+++ b/dist/resources/pkg/PackageInfo.erb
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/dist/resources/pkg/foreman b/dist/resources/pkg/foreman
new file mode 100644
index 0000000..2a559b5
--- /dev/null
+++ b/dist/resources/pkg/foreman
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+
+require "pathname"
+bin_file = Pathname.new(__FILE__).realpath
+
+gem_dir = File.expand_path("../vendor/gems", bin_file)
+ Dir["#{gem_dir}/**/lib"].each do |libdir|
+ $:.unshift libdir
+end
+
+$:.unshift File.expand_path("../../lib", bin_file)
+
+require "foreman/cli"
+
+Foreman::CLI.start
diff --git a/dist/resources/pkg/postinstall b/dist/resources/pkg/postinstall
new file mode 100644
index 0000000..cada253
--- /dev/null
+++ b/dist/resources/pkg/postinstall
@@ -0,0 +1,2 @@
+#!/bin/sh
+ln -sf /usr/local/foreman/bin/foreman /usr/bin/foreman