From 823df8960428f152ad22545aa106d9913e82d2df Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Tue, 8 Apr 2008 20:59:25 +0000 Subject: [PATCH] capitalize for build? --- Monitor.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Monitor.spec diff --git a/Monitor.spec b/Monitor.spec new file mode 100644 index 0000000..4cfd731 --- /dev/null +++ b/Monitor.spec @@ -0,0 +1,56 @@ +# +# $Id$ +# + +%define url $URL: svn+ssh://svn.planet-lab.org/svn/monitor/trunk/monitor.spec $ + +%define name monitor +%define version 1.0 +%define taglevel 0 + +%define release %{taglevel}%{?date:.%{date}} + +Summary: Monitor account initialization for the root image. +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{version}.tar.bz2 +License: GPL +Group: Applications/System +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) + +%description +Scripts for creating the monitor account in the root filesystem, to enable node access +without using the 'root' account. + +%prep +%setup -q + +%build +echo "There is no build stage. Simply copy files." + +%install +rm -rf $RPM_BUILD_ROOT +install -D -m 755 monitor.init $RPM_BUILD_ROOT/%{_initrddir}/monitor +install -D -m 755 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_initrddir}/monitor +%{_sysconfdir}/cron.d/monitor + +%post +chkconfig --add monitor +chkconfig monitor on + +%changelog +* Mon Apr 07 2008 Stephen Soltesz - monitor-1.0-0 +- initial addition. -- 2.43.0