SHA256
1
0
forked from pool/rtasdispd
OBS User unknown 2007-11-26 20:01:26 +00:00 committed by Git OBS Bridge
parent 7670b975b2
commit 6507f3fe97
3 changed files with 32 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 26 10:51:34 CET 2007 - olh@suse.de
- add mode argument to open() call
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 7 09:43:13 CET 2006 - olh@suse.de Tue Nov 7 09:43:13 CET 2006 - olh@suse.de

15
rtasdispd.open-mode.patch Normal file
View File

@ -0,0 +1,15 @@
---
rtasdispd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/rtasdispd.c
+++ b/rtasdispd.c
@@ -495,7 +495,7 @@ int write_pid_file(unsigned newpid)
FILE *f;
int fd;
- if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL)) < 0) {
+ if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) {
perror(PIDFILE);
return -1;
}

View File

@ -1,7 +1,7 @@
# #
# spec file for package rtasdispd (Version 0.1) # spec file for package rtasdispd (Version 0.1)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -11,16 +11,17 @@
Name: rtasdispd Name: rtasdispd
Version: 0.1 Version: 0.1
Release: 287 Release: 337
Summary: Shows System Status Messages on pSeries Panel Displays Summary: Shows System Status Messages on pSeries Panel Displays
License: GNU General Public License (GPL) - all versions License: GPL v2 or later
Group: System/Monitoring Group: System/Monitoring
Autoreqprov: on AutoReqProv: on
PreReq: %insserv_prereq %fillup_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: rtasdispd-%{version}.tar.gz Source: rtasdispd-%{version}.tar.gz
Source1: sysconfig.rtasdispd Source1: sysconfig.rtasdispd
Source2: rc.rtasdispd Source2: rc.rtasdispd
PreReq: %insserv_prereq %fillup_prereq Patch1: rtasdispd.open-mode.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
This daemon can show system status information, such as load, uptime, This daemon can show system status information, such as load, uptime,
@ -34,13 +35,13 @@ Authors:
Roman Hodek <roman@hodek.net> Roman Hodek <roman@hodek.net>
%prep %prep
%setup %setup -q
%patch1 -p1
%build %build
make CFLAGS="$RPM_OPT_FLAGS -Wall" make CFLAGS="$RPM_OPT_FLAGS -Wall"
%install %install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mv rtasdispd.1 rtasdispd.8 mv rtasdispd.1 rtasdispd.8
make DESTDIR=$RPM_BUILD_ROOT install MANS=rtasdispd.8 make DESTDIR=$RPM_BUILD_ROOT install MANS=rtasdispd.8
mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/etc/init.d
@ -63,7 +64,9 @@ install -m 644 %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.rtasdis
%{_mandir}/man8/* %{_mandir}/man8/*
/var/adm/fillup-templates/sysconfig.rtasdispd /var/adm/fillup-templates/sysconfig.rtasdispd
%changelog -n rtasdispd %changelog
* Mon Nov 26 2007 - olh@suse.de
- add mode argument to open() call
* Tue Nov 07 2006 - olh@suse.de * Tue Nov 07 2006 - olh@suse.de
- add Should-Start: $remote_fs to runlevel script - add Should-Start: $remote_fs to runlevel script
* Tue Nov 07 2006 - olh@suse.de * Tue Nov 07 2006 - olh@suse.de