Modernize the port:

* Build using of the available CPUs
	* Use PLIST_FILES -- there are only two
	* Add a service script for easier stopping/starting

Bump PORTREVISION because of the last item.
This commit is contained in:
Mikhail Teterin 2013-04-23 22:12:41 +00:00
parent be029966f1
commit cf1e464d49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316396
4 changed files with 20 additions and 3 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= rmsg
PORTVERSION= 1.64
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.funet.fi/pub/unix/tcpip/
@ -16,5 +17,8 @@ COMMENT= A network messaging system
WRKSRC= ${WRKDIR}/rmsg
MAN1= rmsg.1
MAN8= rmsgd.8
MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/rmsg sbin/rmsgd
USE_RC_SUBR= rmsgd
.include <bsd.port.mk>

View file

@ -66,7 +66,7 @@
else {
- (void) fprintf (stderr, "Starting from inetd not yet supported, rename me ase rmsgd and start\nfrom /etc/rc\n");
+ (void) fprintf (stderr, "Starting from inetd not yet supported, rename me as rmsgd and start\nfrom /etc/rc.local\n");
+ (void) fprintf (stderr, "Starting from inetd not yet supported. Start via the rc.d script\n");
}
if (argc > 1)

15
net/rmsg/files/rmsgd.in Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# PROVIDE: rmsg
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="rmsgd"
rcvar="rmsgd_enable"
command="%%PREFIX%%/sbin/${name}"
load_rc_config $name
run_rc_command "$1"

View file

@ -1,2 +0,0 @@
bin/rmsg
sbin/rmsgd