- Unbreak on 9.0

- add rc script
- Pass maintainership to submitter

PR:		ports/165380
Submitted by:	Denis Generalov <gd@ramble.ru> (maintainer)
Approved by:	gabor (mentor, implicit)
This commit is contained in:
Michael Scheidell 2012-02-27 23:07:12 +00:00
parent 74cdb2eb8b
commit c8ff63f09c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292331
4 changed files with 47 additions and 5 deletions

View file

@ -7,23 +7,30 @@
PORTNAME= msend
PORTVERSION= 3.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= markp
MAINTAINER= ports@FreeBSD.org
MAINTAINER= gd@rambler-co.ru
COMMENT= A client and server for the RFC1312 message protocol
USE_RC_SUBR= mesgd
USE_AUTOTOOLS= aclocal autoheader autoconf automake
AUTOMAKE_ARGS+= --add-missing
GNU_CONFIGURE= yes
CFLAGS+= -DUSE_READLINE
CFLAGS+= -DUSE_READLINE -DNO_GETDTABLESIZE -DNEW_HEADERS
MAN1= msend.1
MAN8= mesgd.8
PLIST_FILES= bin/msend \
sbin/mesgd
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
BROKEN= fails to build with new utmpx
CFLAGS+= -DUSE_UTMPX
.endif
.include <bsd.port.post.mk>

27
net/msend/files/mesgd.in Normal file
View file

@ -0,0 +1,27 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mesgd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mesgd:
#
# mesgd_enable=(bool): Set it to "YES" to enable mesgd
#
# and add appropriate mesgd_flags.
#
. /etc/rc.subr
name="mesgd"
rcvar=mesgd_enable
load_rc_config $name
: ${mesgd_enable="NO"}
command=%%PREFIX%%/sbin/${name}
run_rc_command "$1"

View file

@ -0,0 +1,10 @@
--- common.h.orig 1999-05-02 17:00:39.000000000 +0400
+++ common.h 2012-02-22 02:20:34.000000000 +0400
@@ -45,6 +45,7 @@
#ifdef USE_UTMPX
#include <utmpx.h>
+#define ut_name ut_user
#else
#include <utmp.h>
#endif

View file

@ -1,2 +0,0 @@
bin/msend
sbin/mesgd