OBS User unknown 2006-12-14 16:54:19 +00:00 committed by Git OBS Bridge
commit 24020997d1
8 changed files with 244 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,12 @@
--- examples/testd.c
+++ examples/testd.c
@@ -116,7 +116,8 @@
/* Prepare for select() on the signal fd */
FD_ZERO(&fds);
- FD_SET(fd = daemon_signal_fd(), &fds);
+ fd = daemon_signal_fd();
+ FD_SET(fd, &fds);
while (!quit) {
fd_set fds2 = fds;

3
libdaemon-0.10.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:01768ed6d21d631d2f403a8328bbb89329ba08eaf1966d0507c0b576024c6448
size 240568

View File

@ -0,0 +1,15 @@
--- libdaemon/dexec.h
+++ libdaemon/dexec.h
@@ -46,7 +46,11 @@
* @param ... The arguments to be passed to the program, followed by a (char *) NULL
* @return Nonzero on failure, zero on success
*/
-int daemon_exec(const char *dir, int *ret, const char *prog, ...);
+int daemon_exec(const char *dir, int *ret, const char *prog, ...)
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+__attribute__((__sentinel__(0)))
+#endif
+;
#ifdef __cplusplus
}

50
libdaemon.changes Normal file
View File

@ -0,0 +1,50 @@
-------------------------------------------------------------------
Thu Dec 14 17:24:47 CET 2006 - seife@suse.de
- fix testd build
-------------------------------------------------------------------
Wed Jan 25 21:37:24 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sun Jan 22 00:30:40 CET 2006 - cthiel@suse.de
- update to version 0.10
-------------------------------------------------------------------
Mon Oct 31 11:56:25 CET 2005 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Fri Sep 23 15:09:25 CEST 2005 - sbrabec@suse.cz
- Fixed devel dependencies.
-------------------------------------------------------------------
Tue May 31 01:08:50 CEST 2005 - ro@suse.de
- fix libdir in pkgconfig file
-------------------------------------------------------------------
Sat Feb 5 17:58:47 CET 2005 - meissner@suse.de
- added attributes
-------------------------------------------------------------------
Wed Jan 19 17:36:14 CET 2005 - seife@suse.de
- update to version 0.7
-------------------------------------------------------------------
Thu Aug 12 12:46:40 CEST 2004 - seife@suse.de
- add libpng to neededforbuild (now required by doxygen)
-------------------------------------------------------------------
Mon Jun 21 17:54:21 CEST 2004 - seife@suse.de
- initial package submission

140
libdaemon.spec Normal file
View File

@ -0,0 +1,140 @@
#
# spec file for package libdaemon (Version 0.10)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libdaemon
BuildRequires: doxygen lynx
URL: http://0pointer.de/lennart/projects/libdaemon/
Version: 0.10
Release: 39
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-attributes.patch
Patch1: libdaemon-0.10-testd-fix-FD_SET.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: /usr
%package devel
Summary: libdaemon is a lightweight C library that eases the writing of UNIX daemons.
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description
libdaemon is a lightweight C library that eases the writing of UNIX
daemons. It consists of the following parts:
* A wrapper around fork() that does the correct daemonization
procedure of a process
* A wrapper around syslog() for simpler log output compatible with
syslog or STDERR
* An API for writing PID files
* An API for serializing UNIX signals into a pipe for usage with
select() or poll()
* An API for running subprocesses with STDOUT and STDERR redirected
to syslog
APIs like these are used in most daemon software available. It is not
that simple to get it done right and code duplication is not a goal.
Authors:
--------
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
%description devel
libdaemon is a lightweight C library that eases the writing of UNIX
daemons. It consists of the following parts:
* A wrapper around fork() which does the correct daemonization
procedure of a process
* A wrapper around syslog() for simpler and compatible log output to
Syslog or STDERR
* An API for writing PID files
* An API for serializing UNIX signals into a pipe for usage with
select() or poll()
* An API for running subprocesses with STDOUT and STDERR redirected
to syslog.
APIs like these are used in most daemon software available. It is not
that simple to get it done right and code duplication is not a goal.
Authors:
--------
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
%prep
%setup
%patch
%patch1 -p0
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr --libdir=%{_libdir}
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr (-,root,root)
%{_libdir}/libdaemon.so.*
%files devel
%defattr (-,root,root)
%{_libdir}/libdaemon.so
%{_libdir}/libdaemon.la
%{_libdir}/libdaemon.a
%{_libdir}/pkgconfig/libdaemon.pc
/usr/include/libdaemon
%changelog -n libdaemon
* Thu Dec 14 2006 - seife@suse.de
- fix testd build
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 22 2006 - cthiel@suse.de
- update to version 0.10
* Mon Oct 31 2005 - dmueller@suse.de
- don't build as root
* Fri Sep 23 2005 - sbrabec@suse.cz
- Fixed devel dependencies.
* Tue May 31 2005 - ro@suse.de
- fix libdir in pkgconfig file
* Sat Feb 05 2005 - meissner@suse.de
- added attributes
* Wed Jan 19 2005 - seife@suse.de
- update to version 0.7
* Thu Aug 12 2004 - seife@suse.de
- add libpng to neededforbuild (now required by doxygen)
* Mon Jun 21 2004 - seife@suse.de
- initial package submission

0
ready Normal file
View File