Don't use sed unless needed and don't chmod +x files as install will override the mode properly
Move all common definitions here
Remove all common variables and definitions
Merge branch 'master' of github.com:yaneurabeya/freebsd