utempter/utempter.eal3.diff

65 lines
2.3 KiB
Diff
Raw Permalink Normal View History

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,6 +78,7 @@ 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; \
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 add \fIhost\fR
+.sp
+\fButempter\fR del\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 "\fBadd \fIhost\fR"
+add an entry to the utmp/wtmp file
+.IP "\fBdel\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)