I can't really help you with Nexenta, but I can give you the debian folder I use for my Debian Sarge packages. Since Nexenta is basically Debian it shouldn't be too different ^^
The "rules" file make heavy use of the package debhelper (that's what all those dh_something calls are). They aren't really up to Debian standards, but they work and it was a PITA to get them there XD If you need any help with it you can find me on our IRC channel #amule on irc.freenode.org