I’ve no idea why it has taken so long to find it, but have a look at esp package manager. It’s simple and it works. An example configuration file to show you what I mean:

## Metadata

%product Foo
%copyright 2000-2007 by Foowhizzer.
%vendor Foocom
%license COPYING
%readme README
%description Foo server.
%version 2.2.2 1

## Filelist

$prefix=/usr/local

f 755 root sys ${prefix}/bin/foo foo
i 755 root sys fooinit fooinit

## Scripts

%preinstall << EOF
echo “doing pre install, enter your name:”
read name
echo “oh hai, $$name, thx for installing”
EOF

%postinstall << END_OF_POSTINSTALL
echo “doing postinstall”
END_OF_POSTINSTALL

And thats it. Run epm and get a deb, rpm, tgz, pkg or whatever.