Release Instructions
From Net-SNMP Wiki
Revision as of 16:12, 7 January 2011 by Wes (Talk | contribs) (→Linux RPMs: add description about the fedora RPM process... needs the public git URL)
This page documents varios aspects of creating releases and binary builds suitable for distribution of the project products:
Contents
Releasing Source Code
The current release procedures are reliant on the makerelease system
...
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
- 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