I'm trying to wrap my head around using fpm and the right way to go about using it to create RPMs through custom compiled packages. My initial thought was to install all sources to a single directory and then try packaging that directory to keep everything in one place, as in the following Google Voice module:
cd /usr/src/freepbx/tarballs wget https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz tar xf iksemel-*.tar.gz cd iksemel-* ./configure --prefix=/usr/src/freepbx/sources/iksemel-1.4 make make install
The problem is I think FreePBX expects certain files to be in specific, hard-coded locations so don't think that's an option, it gets the following error message in the web GUI after fixing up permissions:
uksort() expects parameter 1 to be array, null given
So what's the right way to package everything? Install to default locations, find out what those locations are, and then include them in the fpm command as the last flag? How do you find where files that belong to the package get placed after compiling?
[link][1 comment]