need instructions on package building
I'm asked to build some packages(mysqld php-for-apache) for a customized Linux system, which is something like a Linux From Scratch. It's aimed at stability and simplicity, it is used to construct a server system(there're apache, ftpd, pie, webadmin interface, etc. on it).
But I don't have much knowledge on mysqld and php, neither do the other server software on that system, except some basic components like kernel, supporting libraries(because I have built a small system from scratch for tv capturing).
I guess I should take some time to learn the basic things about the two packages I'm working on, only then can I build the packages for a 'stable' system, and to reduce the size of the executable files. But I don't have much time to do this, so I'd like to take a shortcut to have my work done. I think there must be someone who has done what I'm doing, and perhaps they left some invaluable instruction on doing it. But I can't find it with some googling. So I post here hoping someone help me out.
If you know anything relating to build such a system or information about building a package 'rapidly', please tell me, thanks!