SHA256
1
0
forked from pool/utempter
utempter/utempter.eal3.diff
Marcus Meissner a05bac28ee Accepting request 180096 from home:msmeissn:branches:Base:System
- updated to 1.1.6 upstream (bnc#823302)
  - new apis (old are staying)
- utempter-ppc64.patch: is upstream, removed
- utempter-0.5.5-pie.diff: done differently, removed
- utempter-no-staticlib.patch: no static library wanted
- gpg source tarball checking
- hooked up permissions framework correctly

OBS-URL: https://build.opensuse.org/request/show/180096
OBS-URL: https://build.opensuse.org/package/show/Base:System/utempter?expand=0&rev=20
2013-06-20 09:49:51 +00:00

69 lines
2.4 KiB
Diff

Index: libutempter-1.1.6/Makefile
===================================================================
--- libutempter-1.1.6.orig/Makefile
+++ libutempter-1.1.6/Makefile
@@ -35,6 +35,7 @@ libexecdir = /usr/lib
includedir = /usr/include
mandir = /usr/share/man
man3dir = $(mandir)/man3
+man8dir = $(mandir)/man8
DESTDIR =
WARNINGS = -W -Wall -Waggregate-return -Wcast-align -Wconversion \
@@ -68,6 +69,8 @@ iface.o: iface.c utempter.h
install:
mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/$(PROJECT) \
$(DESTDIR)$(includedir) $(DESTDIR)$(man3dir)
+ mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/$(PROJECT) \
+ $(DESTDIR)$(includedir) $(DESTDIR)$(man8dir)
$(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
$(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
$(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
@@ -75,9 +78,11 @@ install:
ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
$(INSTALL) -p -m644 $(PROJECT).3 $(DESTDIR)$(man3dir)/
+ $(INSTALL) -p -m644 $(PROJECT).8 $(DESTDIR)$(man8dir)/
for n in lib$(PROJECT) utempter_add_record utempter_remove_record \
utempter_remove_added_record utempter_set_helper; do \
ln -s $(PROJECT).3 $(DESTDIR)$(man3dir)/$$n.3; \
+ ln -s $(PROJECT).8 $(DESTDIR)$(man8dir)/$$n.8; \
done
clean:
Index: libutempter-1.1.6/utempter.8
===================================================================
--- /dev/null
+++ libutempter-1.1.6/utempter.8
@@ -0,0 +1,30 @@
+.\" Copyright (C) 2003 International Business Machines Corporation
+.\" Author: Emily Ratliff <ratliff@austin.ibm.com>
+.\" This file is distributed according to the GNU General Public License.
+.\"
+.TH "UTEMPTER" 8 "2003-03-21" "" "Linux System Administrator's Manual"
+.SH NAME
+utempter \- privileged helper program for utmp/wtmp updates
+.SH "SYNOPSIS"
+\fButempter\fR \-a \fIslave-device-name\fR \fIhost\fR
+.sp
+\fButempter\fR \-d \fIslave-device-name\fR
+.SH "DESCRIPTION"
+.B utempter
+is a privileged helper program that writes utmp/wtmp entries for unprivileged
+programs.
+
+.SH "OPTIONS"
+The following options are supported:
+.IP "\fB-a \fIslave-device-name host\fR
+add an entry to the utmp/wtmp file
+.IP "\fB\-d \fIslave-device-name\fR
+delete an entry from the utmp file
+
+.SH "RETURN VALUE"
+On success, 0 is returned.
+On error, 1 is returned.
+
+.SH "SEE ALSO"
+.BR utmp (5),
+.BR utmpname (3)