2013-06-20 11:49:51 +02:00
|
|
|
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 =
|
2006-12-19 00:18:07 +01:00
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
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)
|
2020-09-29 07:52:20 +02:00
|
|
|
@@ -75,6 +78,7 @@ install:
|
2013-06-20 11:49:51 +02:00
|
|
|
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
|
2006-12-19 00:18:07 +01:00
|
|
|
@@ -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"
|
2020-09-29 07:52:20 +02:00
|
|
|
+\fButempter\fR add \fIhost\fR
|
2006-12-19 00:18:07 +01:00
|
|
|
+.sp
|
2020-09-29 07:52:20 +02:00
|
|
|
+\fButempter\fR del\fR
|
2006-12-19 00:18:07 +01:00
|
|
|
+.SH "DESCRIPTION"
|
|
|
|
+.B utempter
|
|
|
|
+is a privileged helper program that writes utmp/wtmp entries for unprivileged
|
|
|
|
+programs.
|
|
|
|
+
|
|
|
|
+.SH "OPTIONS"
|
|
|
|
+The following options are supported:
|
2020-09-29 07:52:20 +02:00
|
|
|
+.IP "\fBadd \fIhost\fR"
|
2006-12-19 00:18:07 +01:00
|
|
|
+add an entry to the utmp/wtmp file
|
2020-09-29 07:52:20 +02:00
|
|
|
+.IP "\fBdel\fR"
|
2006-12-19 00:18:07 +01:00
|
|
|
+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)
|