Release Instructions

From Net-SNMP Wiki
Revision as of 13:49, 13 January 2011 by Dts12 (Talk | contribs) (Installing MakeRelease)

Jump to: navigation, search

This page documents varios aspects of creating releases and binary builds suitable for distribution of the project products:

Releasing Source Code

MakeRelease

The current release procedures are reliant on the MakeRelease system, which is designed to automate (and document) as much of the process as possible.

MakeRelease can be installed as follows:

 svn co https://makerelease.svn.sourceforge.net/svnroot/makerelease/trunk/makerelease makerelease
 cd makerelease
 perl Makefile.PL
 make
 sudo make install

Producing Binaries

Linux RPMs

Creating binaries for SuSE-based and RedHat-based systems (including RHEL, Fedora and CentOS distributions) uses the RPM spec file from dist/net-snmp.spec.

The procedure is as follows:

  • Create $HOME/rpmbuild/SPECS and copy the spec file there
  • Create $HOME/rpmbuild/SOURCES and copy the tarball there
  • Ensure Version in the spec file matches the version of the tarball
  • Append a suitable vendor identifier to the Release in the spec file
  • Run the command rpmbuild -ba $HOME/rpmbuild/SPECS/net-snmp.spec

This produces three binary RPM files (under $HOME/rpmbuild/RPMs) together with a source RPM file (under $HOME/rpmbuild/SRPMs)

Fedora RPMs

  1. git clone ssh://YOURUSERID@pkgs.fedoraproject.org/net-snmp
  2. cd net-snmp
  3. vi net-snmp.spec
  4. fedpkg local

Linux DEBs

Solaris

  • SYSV packages
    • see dist/net-snmp-solaris-build
  • tar balls
    • to be unpacked beneath /usr/local

Windows