I have a python app with its setup.py
that's working just fine to install it through setuptools. I am then packaging it up in DEB and PKGNG using the excellent Effing package management. I've also made some quick tests with setuptools-pkg and that seems to work too.
Now I have a need to distribute the packages including init scripts to start/stop/manage the service. I have my init scripts in the source repo and, according to what seems to be best practice, I'm not doing anything with them in setuptools and I'm handling them in the os-specific packaging: for debian-based systems I use the --deb-init
, --deb-upstart
and --deb-systemd
FPM options as needed.
How can I build a FreeBSD package that includes the correct rc.d
script, using FPM or through any other means?
All the examples I've seen are adding the rc.d
script when building a package through the ports collection but this is an internal app and is not going to be published to the Ports or on PyPi. I want to be able to check out the repository on a FreeBSD system, launch a command that gives me a package, distribute it to other FreeBSD systems, install it using pkg
and have my init script correctly deployed to /usr/local/etc/rc.d/<myappname>
. There's no need to keep using FPM for that, anything works as long as it gives me a well-formed package.