After further testing, I've found some improvements to the script. Here's what's changed:

1. Change the make install command to use INSTALL_PREFIX instead of prefix and exec-prefix. My research shows that the intention of INSTALL_PREFIX is to allow package maintainers to install packages, and that's exactly what we're doing here.) My guess is that the old method would have failed if we had overridden more directories in configure (such as pointing the sysconfdir to /etc). Since that would not have been overridden in the make install, it would have tried to put the files in /etc. That would have probably failed (assuming you're not building as root) and would definitely not make it into the package. If I misunderstand something here, please let me know.

2. Remove some unnecessary chmods.

3. Use default ownership of root:sys vs. bin:bin (and in the process, make sure that we don't make any gratuitous attribute changes to directories.)

4. Cleaned up some blank lines.

Jason


Attachment: build-solaris-package.diff
Description: Binary data



On Nov 5, 2004, at 10:43 AM, Bruce Shaw wrote:

Bruce> We're close to a resolution on making packages for Solaris.
Bruce> That's a little too drastic for 5.2 documentation - right?

Wes>Um, I don't understand that statement...

Right now I'm tweaking README.solaris because of a bad patch number and a
problem I found with crle on Solaris 2.6. It's nothing drastic and only
affects one platform. This is little stuff that should make the cut.

For ages, I've wanted to distribute net-snmp for Solaris using packages
instead of .tar's. It's a New Thing requiring extensive documentation,
possibly some files and a buncha other stuff. I don't see it as a candidate
for 5.2's documentation (even though I would like to ship the binaries that
way).

--

This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to