aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-06-06 05:56:53 +0800
committerbarner <barner@FreeBSD.org>2005-06-06 05:56:53 +0800
commite0e2bebc7c13da0edd24514e4f8b514cdee50199 (patch)
treea55ce3254eaca03a8878e13e3ca1cfda6fa13211 /net
parent0a959f352d13409f4b156e54428576d326d21de2 (diff)
downloadfreebsd-ports-gnome-e0e2bebc7c13da0edd24514e4f8b514cdee50199.tar.gz
freebsd-ports-gnome-e0e2bebc7c13da0edd24514e4f8b514cdee50199.tar.zst
freebsd-ports-gnome-e0e2bebc7c13da0edd24514e4f8b514cdee50199.zip
Add quoted 1.0,
easily configured QOTD daemon with over 130 good quality quotes. PR: 74615 Submitted by: Bob Frazier
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/quoted/Makefile28
-rw-r--r--net/quoted/distinfo2
-rw-r--r--net/quoted/files/patch-quoted.sh.rc.freebsd20
-rw-r--r--net/quoted/pkg-descr11
-rw-r--r--net/quoted/pkg-plist5
6 files changed, 67 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index c70242eee457..7d22040b6c9e 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -672,6 +672,7 @@
SUBDIR += qtorrent
SUBDIR += quagga
SUBDIR += queso
+ SUBDIR += quoted
SUBDIR += raddump
SUBDIR += radiator
SUBDIR += radiusclient
diff --git a/net/quoted/Makefile b/net/quoted/Makefile
new file mode 100644
index 000000000000..a8445c53d8c9
--- /dev/null
+++ b/net/quoted/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: quoted
+# Date created: 1 December 2004
+# Whom: Bob Frazier
+#
+# $FreeBSD$
+#
+
+PORTNAME= quoted
+PORTVERSION= 1.0
+CATEGORIES= net
+MASTER_SITES= http://www.mrp3.com/webutil/
+
+MAINTAINER= bobf@mrp3.com
+COMMENT= Easily configured QOTD daemon with over 130 good quality quotes
+
+MAN1= quoted.1
+MANCOMPRESSED= no
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+USE_RC_SUBR= yes
+RC_SUFX= .sh
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g; s,/etc/rc.subr,${RC_SUBR},g;" ${WRKSRC}/quoted.sh.rc.freebsd
+
+.include <bsd.port.mk>
diff --git a/net/quoted/distinfo b/net/quoted/distinfo
new file mode 100644
index 000000000000..2e2af88e4f23
--- /dev/null
+++ b/net/quoted/distinfo
@@ -0,0 +1,2 @@
+MD5 (quoted-1.0.tar.gz) = 75d0a97140786a1b19587589e6782528
+SIZE (quoted-1.0.tar.gz) = 121047
diff --git a/net/quoted/files/patch-quoted.sh.rc.freebsd b/net/quoted/files/patch-quoted.sh.rc.freebsd
new file mode 100644
index 000000000000..662491ea6b37
--- /dev/null
+++ b/net/quoted/files/patch-quoted.sh.rc.freebsd
@@ -0,0 +1,20 @@
+--- quoted.sh.rc.freebsd.orig Thu Dec 2 02:20:30 2004
++++ quoted.sh.rc.freebsd Wed Jun 1 14:34:54 2005
+@@ -16,7 +16,7 @@
+ name="quoted"
+ rcvar=`set_rcvar`
+ command="${dir}/${name}"
+-command_args="-d"
++command_args="-d -p:17"
+ command_plus_args="${command} ${command_args}"
+ pidfile="/var/run/${name}.pid"
+ required_files="${etc}/quotes"
+@@ -31,7 +31,7 @@
+ if [ -e ${required_files} ] ; then
+ ${command_plus_args}
+ sleep 1
+- pid=`ps -aewx -o "pid,command" | grep -- "${command_plus_args}" | grep -v "grep" | awk '{ print \$1; }'`
++ pid=`ps ax | awk '{if (match($5, ".*/quoted$") || $5 == "quoted") print $1}`
+ if [ -z ${pid} ]; then
+ echo "${name} failed to start"
+ return 1
diff --git a/net/quoted/pkg-descr b/net/quoted/pkg-descr
new file mode 100644
index 000000000000..53e02a7481db
--- /dev/null
+++ b/net/quoted/pkg-descr
@@ -0,0 +1,11 @@
+quoted - QOTD Daemon
+
+The QOTD Daemon 'quoted' listens on the qotd port (17) and responds with
+a randomly selected 'quote of the day' from a 'quotes' text file, which
+you can update with quotes of your own. It will operate either as a
+stand-alone daemon, or can also be invoked via inetd.
+
+If you want, you can also have it listen on a different port, other than
+the default 'qotd' port (17).
+
+WWW: http://www.mrp3.com/webutil/quoted.html
diff --git a/net/quoted/pkg-plist b/net/quoted/pkg-plist
new file mode 100644
index 000000000000..8219cfea32c5
--- /dev/null
+++ b/net/quoted/pkg-plist
@@ -0,0 +1,5 @@
+@unexec %D/etc/rc.d/quoted.sh stop 2>/dev/null > /dev/null || true
+@unexec rm -f /var/run/quoted.pid
+bin/quoted
+etc/quotes
+etc/rc.d/quoted.sh