Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sjcundy:Configuration
ubco-ntp
ubco-ntp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ubco-ntp.spec of Package ubco-ntp
Name: ubco-ntp Version: 1.0 Release: 1 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Source: %{name}-%{version}.tar.bz2 Requires: xntp Group: System/Base Packager: Steve Cundy <steve.cundy@ubc.ca> Vendor: UBC Okanagan Summary: SLE10 UBCO NTPD Configuration # Define some variables %define patchdir /opt/UBCO/patches/%{name} %description Provide SLE10 UBCO machines with UBCO ntp configuration. %prep %setup %build %install mkdir -p $RPM_BUILD_ROOT/%patchdir cp -a patches/* $RPM_BUILD_ROOT/%patchdir echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%patchdir/VERSION %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %patchdir %post # $1 = 0 - delete # $1 = 1 - new install # $1 = 2 - upgrade # Order: pre/post 2, preun/postun 1 insserv ntp if [ "$1" = "1" ] ; then # first install patch /etc/ntp.conf %patchdir/ntp.conf.patch # rcntp start fi if [ "$1" = "2" ] ; then # upgrade patch /etc/ntp.conf %patchdir/ntp.conf.update.patch # rcntp restart fi %preun if [ "$1" = "0" ] ; then # delete install insserv -r ntp # rcntp stop patch -R /etc/ntp.conf %patchdir/ntp.conf.patch fi %changelog * Fri Feb 22 2008 Steve Cundy <steve.cundy@ubc.ca> - Inital build using OBS * Tue Nov 20 2007 Steve Cundy <steve.cundy@ubc.ca> - Changed the ntp sources and options * Wed Jan 31 2007 Steve Cundy <steve.cundy@ubc.ca> - modify ntp to use ntp.ok.ubc.ca and start on boot
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