I'd like to package software for easy company-internal deployment, but I'm not sure which version strings to assign. I read this explanation on how it works. However, I'm still not 100% sure. Let's say I want to build my own version of fail2ban 0.10.3.1 for Ubuntu 16.04.1 directly from the source. So my package would not be based on any Debian version. Does that mean I have to set the revision to 0 and add
Y being the Yth revision of my own version)?
Sometimes I see packages with the the Ubuntu version at the end, e.g.
ubuntu16.04.1. When would it make sense to do that?
And one last thing: if I look at Ondřej Surýs PHP PPA, the version numbers look really crazy, e.g.
5.6.37-1+ubuntu16.04.1+deb.sury.org+1. What does all that mean after the plus sign?