freebsd-ports/security/termlog/Makefile
Christian S.J. Peron de9a1cf4dc Fix a couple of problems on 64 bit platforms by importing 2.5:
Summary:

o Call va_start/va_end for each call to va_arg(). I have no idea why this
  works on i386 but it shouldn't. This un-busts termlog on 64 bit
  platforms.

o When allocating snp descriptors, allocate the proper size. Currently we
  are allocating sizeof(struct utmp) when we really should be allocating
  sizeof(struct snp_d). I can only imagine how this happen, but I am going
  to guess it was a cut-and-paste-o. This helps un-busts termlog on 64 bit
  architectures.

Fixes Submitted by:	Eirik ?verby

While we are here:

o Open tty line with O_NONBLOCK
o Close the line fd after we attach to it as we dont need it. This closes
  an fd leak.
o Remove comment about fd leak

Approved by:	kris
2005-10-12 03:37:55 +00:00

26 lines
655 B
Makefile

# New ports collection makefile for: termlog
# Date created: 20 August 2002
# Whom: C.S. Peron <bugs@sqrt.ca>
#
# $FreeBSD$
#
PORTNAME= termlog
PORTVERSION= 2.5
CATEGORIES= security sysutils
MASTER_SITES= http://www.seccuris.com/documents/downloads/
MASTER_SITE_SUBDIR= termlog
MAINTAINER= csjp@FreeBSD.org
COMMENT= Monitor or log multiple system terminals synchronously
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= termlog.1
PLIST_FILES= bin/termlog
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/termlog ${PREFIX}/bin/termlog
${INSTALL_MAN} ${WRKSRC}/termlog.1 ${MANPREFIX}/man/man1/termlog.1
.include <bsd.port.mk>