Script that compiles and builds a debian package for percona-server sphinx-se plugin "ha_sphinx.so" with fpm.
scripts/postinst
- script for debian package that is used after installing the new package to register the plugin.scripts/prerm
- script for debian package that is used before purging package that removes the plugin.build.sh
- main script: downloads sources, compiles with sphinx, and packs to .deb.
Automatic detection of your percona / sphinx / debian|ubuntu|mint|etc versions:
-a
- true or false
Entering your versions manually:
-s
- version of sphinxsearch-p
- version of percona server-d
- version of percona server in Debian repo-o
- optional. Used to mark the iteration of the package (example: wheezy1, myorg2, etc)
- apt-get install bundler (required to run bundle command)
bundle install
build.sh -s 2.1.9 -p 5.6.19-67.0 -d 5.6.19-67.0-618.trusty -o trusty
The above paramaters work well for Ubuntu 14.04 LTS 'Trusty' and the most up-to-date Percona Server 5.6 from the Percona APT repository.
You'll find your .deb in the _pkg directory.