Release Instructions
From Net-SNMP Wiki
This page documents varios aspects of creating releases and binary builds suitable for distribution of the project products:
Contents
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/SPECSand copy the spec file there - Create
$HOME/rpmbuild/SOURCESand copy the tarball there - Ensure
Versionin the spec file matches the version of the tarball - Append a suitable vendor identifier to the
Releasein 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
- git clone ssh://YOURUSERID@pkgs.fedoraproject.org/net-snmp
- cd net-snmp
- vi net-snmp.spec
- fedpkg local
Linux DEBs
Solaris
- SYSV packages
- see dist/net-snmp-solaris-build
- tar balls
- to be unpacked beneath /usr/local