autotools improvements for packaging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
For a long time we've been installing everything in /openils. But we don't need to! Running through an install today, I successfully installed all of OpenSRF and Evergreen under /usr/local, like the FHS intended. And this is also required if we ever want to get Evergreen packaged. So...
Please see the attached patch series which does the following:
1) Makes eg.conf / eg_vhost.conf / startup.pl configured files, rather than using hardcoded /openils/-ish paths. It also defaults them to using syslog instead of writing to a log file, to better support running Apache as a www-data user instead of opensrf. It also renames "startup.pl" to "eg_startup" to be less generic, and also installs the files under the $docdir directory.
2) Removes the default of /openils as the installation prefix.
3) Removes unused configuration options for Apache headers and Apache libraries. apxs gives us all that we need.
4) Removes hardcoded defaults for the OpenSRF headers and libraries and replaces them with a call to osrf_config to get the value.
5) Replaces the hack of a test for libopensrf with a real test for the OpenSRF library.
6) Removes the ".pl" suffix from eg_db_config, and installs it in the bin dir. (It can't be used from that directory, yet, until we install eg_config and also make the SQL schema creation scripts installed and available). TODO!
7) Installs eg_config in the bin dir.
I'm on the road at the moment without access to my normal SSH key, so patches will have to do for the time being...
Changed in evergreen: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Changed in evergreen: | |
status: | Triaged → In Progress |
assignee: | nobody → Jason Stephenson (jstephenson) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Ah, thanks to Thomas I have the ability to push again: thus see user/dbs/ packaging_ portably in working repository.