Bootstrap portion of 'make install'

Alan DeKok aland at deployingradius.com
Wed May 10 03:29:16 CEST 2017


On May 9, 2017, at 8:48 PM, Coy Hile <coy.hile at coyhile.com> wrote:
> In looking at the spec file in 
> 
> https://github.com/FreeRADIUS/freeradius-server/blob/v4.0.x/redhat/freeradius.spec
> 
> one sees an RPM post-install script that calls /etc/raddb/certs/bootstrap if needed.  Clearly, if one were actually running ‘make install’ in production, that work would be necessary as the Makefile does it.  However, if one is building a package, that step in ‘raddb/all.mk’ seems superfluous, and means that one need remove a bunch of ephemeral files from the DESTDIR before packaging.

  Yes.  That's why you can do:

$ PACKAGE=yes make install

  And the various auto-generated certs *won't* be created or installed.

> Rather than having my package build framework let the bootstrap run in the DESTDIR and nuke the artifacts it creates before packaging, is there some setting one can tweak to skip that bootstrap as part of make install?

  See above.  The Linux packages have similar requirements, hence the current solution.

  Alan DeKok.




More information about the Freeradius-Users mailing list