Commit graph

15 commits

Author SHA1 Message Date
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Thomas Abthorpe
9d89fcf25c - Fix patch from previous commit
- Bump PORTREVISION

PR:		ports/128346
Submitted by:	Jeff Blank <jfb@mr-happy.com> (maintainer)
2008-10-26 05:14:38 +00:00
Stefan Walter
d96072f0de - Added rc.subr integration and removed references to etc/rc.d/qpage.sh
- Added OPTIONS knob for enabling srvrsnpp.c patch from ports/123437 (felt it
  was better to make the patch optional)
- Added more knobs for compile-time options: daemon user, syslog facility
- Changed ${INSTALL_SCRIPT} to ${INSTALL_DATA} in post-install target
- Removed old maintainer e-mail address from pkg-descr

PR:		128318
Submitted by:	maintainer
2008-10-24 10:14:05 +00:00
Stefan Walter
034313dfd8 Fix a potential buffer overflow.
PR:		128216
Submitted by:	maintainer
2008-10-19 08:09:02 +00:00
Stefan Walter
45abddec34 - Fix segmentation faults on SIGHUP.
- Assign maintainership to submitter.

PR:		127075, 127827
Submitted by:	Jeffrey Blank <jfb@mr-happy.com>
2008-10-18 18:45:19 +00:00
Pav Lucistnik
8f15720c84 The qpage port will run words together in long pages. The problem
is in msgcpy in util.c, where the breaks don't preserve word
	boundries.

PR:		ports/73020
Submitted by:	Douglas K. Rand <rand@meridian-enviro.com>
2004-10-28 22:03:28 +00:00
Thierry Thomas
87b19a3625 - make it run by the user uucp;
- since I'm there, create the spool directory for a port installation.

PR:		ports/62617
Submitted by:	Mike Andrews
2004-05-17 22:08:09 +00:00
Edwin Groothuis
ef90f616b0 Nitpicks for the comms/qpage port
The comms/qpage port has a few minor problems.  A default installation gives
	the following errors when the /usr/local/etc/rc.d/qpage.sh script is
	execute:

	    qpage[68438]: cannot open /etc/qpage.cf: No such file or directory
	    qpage[68438]: cannot access LockDir(/var/spool/lock): Permission denied
	    qpage[68438]: cannot access QueueDir(/var/spool/qpage): No such file or directory
	    qpage[68438]: cannot chdir to QueueDir(/var/spool/qpage): No such file or directory

	In short:

	1) qpage looks for its configuration file in /etc instead of /usr/local/etc
	2) It setuid()'s to a user (daemon) without permission to access /var/spool/lock
	but does not document this anywhere outside of the source.
	3) It's queue directory is not created by installing the port.

PR:		ports/48059
Submitted by:	Kirk Strauser <kirk@strauser.com>
2004-01-10 08:48:29 +00:00
Ying-Chieh Liao
598667b8d4 upgrade to 3.3
PR:		39383
Submitted by:	Scott Lambert <lambert@lambertfam.org>
Approved by:	maintainer timeout
2002-09-21 07:09:52 +00:00
Kris Kennaway
6266ce3e4a Use POSIX syntax for chown to fix install on -current
Noticed by:	bento
2002-08-23 03:08:42 +00:00
Thomas Gellekum
546041ba31 As threatened on freebsd-ports: all startup scripts know about the two
options `start' and `stop' now (unless I have forgotten any). This allows
us to call the scripts from /etc/rc.shutdown with the correct option.

The (42 or so) ports that already DTRT before are unchanged.
2000-07-05 12:37:06 +00:00
Vanilla I. Shu
0a52ab20d3 1. Correct the config file path on qpage.1
2. Add a rc file (etc/rc.d/qpage.sh) to start qpage daemon.
1998-06-04 03:54:38 +00:00
Masafumi Max NAKANE
dce4491a9c Re-import of qpage port which used to live in the misc category. Here's
the import message used when it was imported to ports/misc:

New port, qpage:

QuickPage sends messages to a paging terminal using the SNPP and IXO
(also known as TAP) protocols.  It is normally used with no options
other than a recipient and the message text, in which case the message
is sent to the SNPP server where it is submitted to a page queue to be
sent by a separate daemon process.

PR:		4224
Submitted by:	Joe Stein <joes@seaport.net>
1997-10-13 04:39:10 +00:00