# Created by: Alexander Zhuravlev <zaa@zaa.pp.ru>
# $FreeBSD: sysutils/p5-Sys-Utmp/Makefile 327772 2013-09-20 23:05:58Z bapt $

PORTNAME=	Sys-Utmp
PORTVERSION=	1.6
CATEGORIES=	sysutils perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	zaa@ulstu.ru
COMMENT=	Perl5 module which provides Object(ish) Interface to UTMP files

USES=		perl5
USE_PERL5=	configure

MAN3=		Sys::Utmp.3 Sys::Utmp::Utent.3

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e '254 s,strcpy,strncpy,' ${WRKSRC}/Utmp.xs

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif

.include <bsd.port.post.mk>
