Here is the current patch...
Stuff to consider:
- CPAN repo changed to a public accessible one
- JAVA_HOME changed, guessing here...
- In general you'd want to try to detect longer strings UBUNTUx_64 before going for shorter ones UBUNTUx, I haven't done any of that type of clean up (everything is equals this or equals that or equals something else in the shell scripts)
- I assume GNU make is a requirement, though I don't know if that's stated for Solaris/BSD people... "ifeq ($(findstring" is used a couple of times