mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- 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:
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
|
@ -7,23 +7,30 @@
|
||||||
|
|
||||||
PORTNAME= msend
|
PORTNAME= msend
|
||||||
PORTVERSION= 3.0
|
PORTVERSION= 3.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||||
MASTER_SITE_SUBDIR= markp
|
MASTER_SITE_SUBDIR= markp
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= gd@rambler-co.ru
|
||||||
COMMENT= A client and server for the RFC1312 message protocol
|
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
|
GNU_CONFIGURE= yes
|
||||||
CFLAGS+= -DUSE_READLINE
|
CFLAGS+= -DUSE_READLINE -DNO_GETDTABLESIZE -DNEW_HEADERS
|
||||||
|
|
||||||
MAN1= msend.1
|
MAN1= msend.1
|
||||||
MAN8= mesgd.8
|
MAN8= mesgd.8
|
||||||
|
|
||||||
|
PLIST_FILES= bin/msend \
|
||||||
|
sbin/mesgd
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSVERSION} > 900007
|
.if ${OSVERSION} > 900007
|
||||||
BROKEN= fails to build with new utmpx
|
CFLAGS+= -DUSE_UTMPX
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
27
net/msend/files/mesgd.in
Normal file
27
net/msend/files/mesgd.in
Normal 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"
|
10
net/msend/files/patch-common-h
Normal file
10
net/msend/files/patch-common-h
Normal 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
|
|
@ -1,2 +0,0 @@
|
||||||
bin/msend
|
|
||||||
sbin/mesgd
|
|
Loading…
Add table
Reference in a new issue