[Midnightbsd-cvs] mports: mports/sysutils: write wtmp/utmp

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Mar 12 23:10:40 EDT 2009


Log Message:
-----------
write wtmp/utmp

Modified Files:
--------------
    mports/sysutils:
        Makefile (r1.88 -> r1.89)

Added Files:
-----------
    mports/sysutils/libutempter:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/sysutils/libutempter/files:
        patch-Makefile (r1.1)

-------------- next part --------------
--- /dev/null
+++ sysutils/libutempter/pkg-descr
@@ -0,0 +1,12 @@
+The libutempter library provides interface for terminal emulators such as
+screen and xterm to record user sessions to utmp and wtmp files.
+
+The utempter is a privileged helper used by libutempter library to manipulate
+utmp and wtmp files.
+
+This implementation is based on ideas of RedHat's utempter by Erik Troan
+(version 0.5.2 at the moment of writing).
+
+There are two interfaces supported: old and new.
+New API is recommended for new applications, old - for compatibility with
+old software.
--- /dev/null
+++ sysutils/libutempter/pkg-plist
@@ -0,0 +1,7 @@
+include/utempter.h
+lib/libutempter.a
+lib/libutempter.so
+lib/libutempter.so.0
+lib/libutempter.so.1.1.5
+libexec/utempter/utempter
+ at dirrm libexec/utempter
--- /dev/null
+++ sysutils/libutempter/Makefile
@@ -0,0 +1,18 @@
+# $MidnightBSD: mports/sysutils/libutempter/Makefile,v 1.1 2009/03/13 03:10:37 laffer1 Exp $
+
+PORTNAME=	libutempter
+PORTVERSION=	1.1.5
+CATEGORIES=	sysutils
+MASTER_SITES=	ftp://ftp.altlinux.org/pub/people/ldv/utempter/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Interface to record user sessions to utmp and wtmp files
+LICENSE=	lgpl
+
+FAKE_MAKEARGS+= DESTDIR=${FAKE_DESTDIR}${TRUE_PREFIX}
+
+USE_BZIP2=	yes
+USE_GMAKE=	yes
+USE_LDCONFIG=	yes
+
+.include <bsd.port.mk>
--- /dev/null
+++ sysutils/libutempter/distinfo
@@ -0,0 +1,3 @@
+MD5 (libutempter-1.1.5.tar.bz2) = d62a93ba9f3796a91cf03be5ef25a9a1
+SHA256 (libutempter-1.1.5.tar.bz2) = 73d0576b16caeb22874dc80d0ce7a6aeebb3181b117e95c147cd8d29df99e70e
+SIZE (libutempter-1.1.5.tar.bz2) = 14588
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/sysutils/Makefile,v
retrieving revision 1.88
retrieving revision 1.89
diff -L sysutils/Makefile -L sysutils/Makefile -u -r1.88 -r1.89
--- sysutils/Makefile
+++ sysutils/Makefile
@@ -49,6 +49,7 @@
     SUBDIR += less
     SUBDIR += libcdio
     SUBDIR += libchk
+    SUBDIR += libutempter
     SUBDIR += lsof
     SUBDIR += makefs
     SUBDIR += mbmon
--- /dev/null
+++ sysutils/libutempter/files/patch-Makefile
@@ -0,0 +1,55 @@
+--- Makefile.orig	2007-02-19 13:14:08.000000000 +0100
++++ Makefile	2007-07-17 23:42:11.000000000 +0200
+@@ -30,18 +30,18 @@
+ TARGETS = $(PROJECT) $(SHAREDLIB) $(STATICLIB)
+ 
+ INSTALL = install
+-libdir = /usr/lib
+-libexecdir = /usr/lib
+-includedir = /usr/include
+-DESTDIR =
++libdir = /lib
++libexecdir = /libexec
++includedir = /include
++DESTDIR = $(PREFIX)
+ 
+ WARNINGS = -W -Wall -Waggregate-return -Wcast-align -Wconversion \
+ 	-Wdisabled-optimization -Wmissing-declarations \
+ 	-Wmissing-format-attribute -Wmissing-noreturn \
+ 	-Wmissing-prototypes -Wpointer-arith -Wredundant-decls \
+ 	-Wshadow -Wstrict-prototypes -Wwrite-strings
+-CPPFLAGS = -std=gnu99 $(WARNINGS) -DLIBEXECDIR=\"$(libexecdir)\"
+-CFLAGS = $(RPM_OPT_FLAGS)
++CPPFLAGS = -std=gnu99 $(WARNINGS)
++CFLAGS+= -DLIBEXECDIR=\"$(PREFIX)$(libexecdir)\"
+ LDLIBS =
+ 
+ all: $(TARGETS)
+@@ -63,15 +63,20 @@
+ 
+ iface.o: iface.c utempter.h
+ 
++$(PROJECT).o: $(PROJECT).c
++
++$(PROJECT): $(PROJECT).o
++	$(LINK.o) $(PROJECT).o -o $(PROJECT) -lutil
++
+ install:
+ 	mkdir -p $(DESTDIR)$(libexecdir)/$(PROJECT) $(DESTDIR)$(includedir) \
+ 		$(DESTDIR)$(libdir)
+-	$(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
+-	$(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
+-	$(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
+-	$(INSTALL) -p -m644 $(STATICLIB) $(DESTDIR)$(libdir)/
+-	ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
+-	ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
++	$(INSTALL) -m4711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/$(PROJECT)
++	$(INSTALL) -m644 $(PROJECT).h $(DESTDIR)$(includedir)/$(PROJECT).h
++	$(INSTALL) -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
++	$(INSTALL) -m644 $(STATICLIB) $(DESTDIR)$(libdir)/$(STATICLIB)
++	ln -sf $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
++	ln -sf $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
+ 
+ clean:
+-	$(RM) $(TARGETS) iface.o iface.os core *~
++	$(RM) $(TARGETS) $(PROJECT).o iface.o iface.os core *~


More information about the Midnightbsd-cvs mailing list