Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sjcundy:Configuration
ubco-snmp
ubco-snmp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ubco-snmp.spec of Package ubco-snmp
Name: ubco-snmp Version: 1.0 Release: 1 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Source: %{name}-%{version}.tar.bz2 Requires: net-snmp Group: System/Base Packager: Steve Cundy <steve.cundy@ubc.ca> Vendor: UBC Okanagan Summary: UBCO SNMP Configuration # # Define some variables # %define patchdir /opt/UBCO/patches/%{name} # %define confdir /etc/snmp %description UBCO SNMP COnfiguration %prep %setup %build %install mkdir -p $RPM_BUILD_ROOT/%patchdir mkdir -p $RPM_BUILD_ROOT/%confdir cp -a files/snmpd.conf.ubco $RPM_BUILD_ROOT/%confdir echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%patchdir/VERSION %post # $1 = 0 - delete # $1 = 1 - new install # $1 = 2 - upgrade # Order: pre/post 2, preun/postun 1 if [ "$1" = "1" ] ; then # first install mv %confdir/snmpd.conf %confdir/snmpd.conf.dist cp %confdir/snmpd.conf.ubco %confdir/snmpd.conf chkconfig snmpd on rcsnmpd start fi %preun if [ "$1" = "0" ] ; then # delete rcsnmpd stop chkconfig snmpd off rm %confdir/snmpd.conf cp %confdir/snmpd.conf.dist %confdir/snmpd.conf fi %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %patchdir %confdir/snmpd.conf.ubco %changelog * Thu May 29 2008 Steve Cundy <steve.cundy@ubc.ca> - Initial build using OBS
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor