If a leaning gate post is set in dirt or gravel ... some self-tapping metal screws and some railing brackets. The rails on a split-rail fence fit into holes in the posts. When a rail rots ...