Luckily there is a way to stop OS X from adding these files.
This is the kind of thing that I was seeing when testing an archive:
Terminal output
> tar -tvzf update.tgz
-rw-r--r-- ikromin/staff 463 2015-02-05 22:47 fp-interface/themes/ik/._entry-default.tpl
-rw-r--r-- ikromin/staff 1831 2015-02-05 22:47 fp-interface/themes/ik/entry-default.tpl
To stop tar from including these hidden files, set the COPYFILE_DISABLE variable to 1 before running tar, like this:
export COPYFILE_DISABLE=1; tar -cvzf update.tgz fp-interface/themes/ik/entry-default.tpl
To go a step further, just add an alias to your ~/.profile:
~/.profile
alias tar='export COPYFILE_DISABLE=1; tar'
-i