If you're one of the large crowd of people who have to package JBoss as an RPM you'll probably be interested in checking out this example: https://github.com/rerun-modules/rpm/tree/master/examples/build/jboss ... that uses the Rerun RPM module to wrap the rpmbuild command to support cleanly maintaining customized JBoss installations for CentOS/Redhat.
Rerun is a really simple open source Bash-shell based modular automation system.
I've tried to follow the "natural" convention of for packaging the standalone configuration. Let me know where it needs fixing and improving.
Anthony.