FreeBSD Bugzilla – Attachment 144266 Details for
Bug 191492
staging support for net/quoted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar file for quoted port
quoted.shar (text/plain), 4.03 KB, created by
Bob Frazier
on 2014-06-29 19:18:53 UTC
(
hide
)
Description:
shar file for quoted port
Filename:
MIME Type:
Creator:
Bob Frazier
Created:
2014-06-29 19:18:53 UTC
Size:
4.03 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># quoted ># quoted/Makefile ># quoted/distinfo ># quoted/files ># quoted/files/quoted.in ># quoted/pkg-descr ># quoted/pkg-plist ># >echo c - quoted >mkdir -p quoted > /dev/null 2>&1 >echo x - quoted/Makefile >sed 's/^X//' >quoted/Makefile << '9a8e0c4f3056e49134888ef90cd30fa9' >X# Created by: Bob Frazier >X# $FreeBSD: head/net/quoted/Makefile 340722 2014-01-22 17:00:46Z mat $ >X >XPORTNAME= quoted >XPORTVERSION= 1.01 >XPORTREVISION= 1 >XCATEGORIES= net >XMASTER_SITES= http://www.mrp3.com/webutil/ >X >XMAINTAINER= bobf@mrp3.com >XCOMMENT= Easily configured QOTD daemon with over 130 good quality quotes >X >X#MAN1= quoted.1 >XMANCOMPRESSED= no >XGNU_CONFIGURE= yes >X#USE_GMAKE= yes >XUSES=gmake >X >XUSE_RC_SUBR= ${PORTNAME} >X >X.include <bsd.port.mk> >9a8e0c4f3056e49134888ef90cd30fa9 >echo x - quoted/distinfo >sed 's/^X//' >quoted/distinfo << '567417d4bf111121f3bc3498797e1195' >XSHA256 (quoted-1.01.tar.gz) = d45095339be2d7224b68c951ce588cdfc4af0c160bffcae7c04ecfd527181d45 >XSIZE (quoted-1.01.tar.gz) = 137610 >567417d4bf111121f3bc3498797e1195 >echo c - quoted/files >mkdir -p quoted/files > /dev/null 2>&1 >echo x - quoted/files/quoted.in >sed 's/^X//' >quoted/files/quoted.in << '544ab61b5404db0a8a00d04b74735f47' >X#!/bin/sh >X# >X# $FreeBSD: head/net/quoted/files/quoted.in 340872 2014-01-24 00:14:07Z mat $ >X# >X# PROVIDE: quoted >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# AUTHOR: Bob Frazier >X >Xquoted_enable=${quoted_enable:-"NO"} >X >Xuser="nobody" >X >X. /etc/rc.subr >X >Xname="quoted" >Xrcvar=quoted_enable >Xcommand="%%PREFIX%%/bin/${name}" >Xcommand_args="-d -p:17" >Xcommand_plus_args="${command} ${command_args}" >Xpidfile="/var/run/${name}.pid" >Xrequired_files="%%PREFIX%%/etc/quotes" >X >Xstart_cmd="${name}_start" >Xstop_cmd="${name}_stop" >X >Xquoted_start() >X{ >X pid=$(check_pidfile ${pidfile} ${command}) >X if [ -z ${pid} ]; then >X if [ -e ${required_files} ] ; then >X ${command_plus_args} >X sleep 1 >X pid=`ps ax | awk '{if (match($5, ".*/quoted$") || $5 == "quoted") print $1}` >X if [ -z ${pid} ]; then >X echo "${name} failed to start" >X return 1 >X else >X echo ${pid} >${pidfile} >X echo "${name} started." >X pid=$(check_pidfile ${pidfile} ${command}) >X if [ -z ${pid} ]; then >X echo "Warning: pid file ${pidfile} is corrupt." >X echo "The ${name} daemon may not stop properly via the rc.d script." >X fi >X return 0; >X fi >X else >X echo "Required file(s) ${required_files} missing" >X fi >X else >X echo "${name} is already running" >X return 0 >X # not an error >X fi >X >X# if I get here something went wrong >X return 2 >X} >X >Xquoted_stop() >X{ >X pid=$(check_pidfile ${pidfile} ${command}) >X if [ -z ${pid} ]; then >X echo ${name} not running? Check ${pidfile} >X return 1 >X fi >X echo "Stopping ${name}" >X kill -${sig_stop:-TERM} ${pid} >X [ $? -ne 0 ] && [ -z "$rc_force" ] && return 1 >X wait_for_pids ${pid} >X} >X >Xload_rc_config $name >Xrun_rc_command "$1" >X >544ab61b5404db0a8a00d04b74735f47 >echo x - quoted/pkg-descr >sed 's/^X//' >quoted/pkg-descr << '48c8165d8ffd4ca0fa8bc93e7df8ed7a' >Xquoted - QOTD Daemon >X >XThe QOTD Daemon 'quoted' listens on the qotd port (17) and responds with >Xa randomly selected 'quote of the day' from a 'quotes' text file, which >Xyou can update with quotes of your own. It will operate either as a >Xstand-alone daemon, or can also be invoked via inetd. >X >XIf you want, you can also have it listen on a different port, other than >Xthe default 'qotd' port (17). >X >XWWW: http://www.mrp3.com/webutil/quoted.html >48c8165d8ffd4ca0fa8bc93e7df8ed7a >echo x - quoted/pkg-plist >sed 's/^X//' >quoted/pkg-plist << '72516c32bd0fd8e53c802012e559531c' >X@unexec %D/etc/rc.d/quoted.sh stop 2>/dev/null > /dev/null || true >X@unexec rm -f /var/run/quoted.pid >Xbin/quoted >Xetc/quotes >Xman/man1/quoted.1.gz >X >72516c32bd0fd8e53c802012e559531c >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 191492
: 144266