docker build -t minimum2scp/ngx_mruby:dev .
override_dh_gencontrol
in debian/rule defines sub package version/revision:
override_dh_gencontrol:
for p in $(PKGS); do \
if [ -e debian/$$p.version ]; then \
dpkg-gencontrol -p$$p -ldebian/changelog -Tdebian/$$p.substvars -Pdebian/$$p -v`cat debian/$$p.version`~`lsb_release -cs`; \
else \
dpkg-gencontrol -p$$p -ldebian/changelog -Tdebian/$$p.substvars -Pdebian/$$p ; \
fi ; \
done
So, nginx and nginx-debug, nginx-module-xxx (except for nginx-module-njs, nginx-module-mruby) will be
${NGINX_VERSION}-${DEB_BASE_REVISION}+local1
But nginx-module-njs and nginx-module-mruby will be
`cat debian/$$p.version`~`lsb_release -cs`
Therefore nginx-module-mruby will be
${NGINX_VERSION}-${NGX_MRUBY_VERSION}~jessie