diff --git a/sysutils/libutempter/Makefile b/sysutils/libutempter/Makefile index df6657803082..8469457f8aed 100644 --- a/sysutils/libutempter/Makefile +++ b/sysutils/libutempter/Makefile @@ -10,14 +10,14 @@ MASTER_SITES= ftp://ftp.altlinux.org/pub/people/ldv/utempter/ MAINTAINER= ports@FreeBSD.org COMMENT= Interface to record user sessions to utmp and wtmp files +USES= gmake USE_BZIP2= yes -USE_GMAKE= yes USE_LDCONFIG= yes NO_STAGE= yes .include -.if ${OSVERSION} >= 900004 +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 900004 IGNORE= is now contained in the base system .endif diff --git a/sysutils/libutempter/files/patch-utempter.c b/sysutils/libutempter/files/patch-utempter.c new file mode 100644 index 000000000000..4de9d2f14a25 --- /dev/null +++ b/sysutils/libutempter/files/patch-utempter.c @@ -0,0 +1,20 @@ +--- utempter.c.orig 2007-02-19 12:14:08.000000000 +0000 ++++ utempter.c +@@ -36,7 +36,7 @@ + + #ifdef __GLIBC__ + # include +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + # include + #else + # error Unsupported platform +@@ -157,7 +157,7 @@ write_uwtmp_record(const char *user, con + + (void) updwtmp(_PATH_WTMP, &ut); + +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + + ut.ut_time = tv.tv_sec; +