aboutsummaryrefslogtreecommitdiff
path: root/comms/qpage/files
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2015-11-28 23:08:03 +0000
committerRene Ladan <rene@FreeBSD.org>2015-11-28 23:08:03 +0000
commit691f434f549a42a69ac50ff23a1543397490f5c5 (patch)
tree918183cc54e747acc95c0517ca51c4874a7ee860 /comms/qpage/files
parentde9fd54831b4e86ba3482e9bc7479a1ddcc1c364 (diff)
downloadports-691f434f549a42a69ac50ff23a1543397490f5c5.tar.gz
ports-691f434f549a42a69ac50ff23a1543397490f5c5.zip
Notes
Diffstat (limited to 'comms/qpage/files')
-rw-r--r--comms/qpage/files/libwrap_ident_patch-srvrsnpp.c16
-rw-r--r--comms/qpage/files/patch-config.c12
-rw-r--r--comms/qpage/files/patch-config.h.in11
-rw-r--r--comms/qpage/files/patch-config.input38
-rw-r--r--comms/qpage/files/patch-ixo.c10
-rw-r--r--comms/qpage/files/patch-qpage.man11
-rw-r--r--comms/qpage/files/patch-srvrsnpp.c28
-rw-r--r--comms/qpage/files/patch-util.c11
-rw-r--r--comms/qpage/files/qpage.in54
9 files changed, 0 insertions, 191 deletions
diff --git a/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c b/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
deleted file mode 100644
index 8cd51a09b2f7..000000000000
--- a/comms/qpage/files/libwrap_ident_patch-srvrsnpp.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- srvrsnpp.c.orig 2008-10-20 10:30:57.539127452 -0400
-+++ srvrsnpp.c 2008-10-20 10:35:43.096529509 -0400
-@@ -1066,7 +1066,12 @@
-
- fromhost(&request);
-
-- ptr = eval_user(&request);
-+ /*
-+ ** If we aren't doing an ident request, don't ask
-+ ** TCP Wrappers to do it either
-+ */
-+ if (IdentTimeout) ptr = eval_user(&request);
-+ else ptr = NULL;
-
- if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0)
- p->ident = strdup(ptr);
diff --git a/comms/qpage/files/patch-config.c b/comms/qpage/files/patch-config.c
deleted file mode 100644
index 69049371640a..000000000000
--- a/comms/qpage/files/patch-config.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- config.c.orig Fri Jan 1 22:14:50 1999
-+++ config.c Wed May 4 16:28:49 2005
-@@ -1407,7 +1407,6 @@
- my_free(list->name);
- my_free(list->text);
- my_free(list->pagerid);
-- my_free(list->service);
- free(list);
- }
- }
-
-
diff --git a/comms/qpage/files/patch-config.h.in b/comms/qpage/files/patch-config.h.in
deleted file mode 100644
index 8bed5105b2ae..000000000000
--- a/comms/qpage/files/patch-config.h.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- config.h.in.orig Sat Jan 10 00:42:55 2004
-+++ config.h.in Sat Jan 10 00:43:14 2004
-@@ -17,7 +17,7 @@
- #undef SNPP_SERVER_FILE
-
- /* Define as the location of the qpage configuration file. */
--#define QPAGE_CONFIG "/etc/qpage.cf"
-+#define QPAGE_CONFIG "%%PREFIX%%/etc/qpage.conf"
-
- /* Define as the location of the lock directory. */
- #undef DEFAULT_LOCKDIR
diff --git a/comms/qpage/files/patch-config.input b/comms/qpage/files/patch-config.input
deleted file mode 100644
index 706b32f16a5a..000000000000
--- a/comms/qpage/files/patch-config.input
+++ /dev/null
@@ -1,38 +0,0 @@
---- config.input.orig 1998-11-05 01:05:36.000000000 -0500
-+++ config.input 2008-10-19 14:08:35.109933521 -0400
-@@ -20,7 +20,7 @@
- # See the QuickPage documentation for complete details about
- # the syntax of the configuration file.
- #
--QPAGE_CONFIG="/etc/qpage.cf"
-+QPAGE_CONFIG="%%PREFIX%%/etc/qpage.conf"
-
-
- #
-@@ -41,7 +41,7 @@
- # copies of the configuration file. Only one filename
- # may be specified.
- #
--SNPP_SERVER_FILE="/etc/qpage.servers"
-+SNPP_SERVER_FILE="%%PREFIX%%/etc/qpage.servers"
-
-
- #
-@@ -51,7 +51,7 @@
- # for that user, QuickPage will assume all group privileges
- # assigned to that user.
- #
--DAEMON_USER="daemon"
-+DAEMON_USER="%%WITH_QPAGE_USER%%"
-
-
- #
-@@ -59,7 +59,7 @@
- # used by QuickPage to log messages. See the syslog
- # documentation (i.e. "man syslog") for more information.
- #
--SYSLOG_FACILITY=LOG_DAEMON
-+SYSLOG_FACILITY=%%WITH_QPAGE_SYSLOG_FACILITY%%
-
-
- #
diff --git a/comms/qpage/files/patch-ixo.c b/comms/qpage/files/patch-ixo.c
deleted file mode 100644
index 83b48beedcba..000000000000
--- a/comms/qpage/files/patch-ixo.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ixo.c.orig 1999-01-01 20:59:33.000000000 -0500
-+++ ixo.c 2008-10-20 00:10:55.367858145 -0400
-@@ -368,7 +368,6 @@
- if (tcsetattr(fd, TCSANOW, &ti) < 0) {
- qpage_log(LOG_DEBUG, "tcsetattr(): %s", strerror(errno));
- closemodem(fd);
-- return;
- }
-
- /*
diff --git a/comms/qpage/files/patch-qpage.man b/comms/qpage/files/patch-qpage.man
deleted file mode 100644
index 31066fb9dcb2..000000000000
--- a/comms/qpage/files/patch-qpage.man
+++ /dev/null
@@ -1,11 +0,0 @@
---- qpage.man.orig Sat Jan 10 00:44:16 2004
-+++ qpage.man Sat Jan 10 00:44:47 2004
-@@ -867,7 +867,7 @@
- must be able to detect when it's safe to send dial commands to the modem.
- .LP
- .SH FILES
--/etc/qpage.cf
-+%%PREFIX%%/etc/qpage.conf
- .SH SEE ALSO
- .B RFC-1861
- .SH KNOWN BUGS
diff --git a/comms/qpage/files/patch-srvrsnpp.c b/comms/qpage/files/patch-srvrsnpp.c
deleted file mode 100644
index 5e1cfee07a67..000000000000
--- a/comms/qpage/files/patch-srvrsnpp.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- srvrsnpp.c.orig 1998-10-25 14:55:05.000000000 -0500
-+++ srvrsnpp.c 2008-10-24 11:00:36.226381386 -0400
-@@ -523,6 +523,7 @@
- char *errmsg;
- char *a;
- char *b;
-+ char *m;
- int i;
- int badarg;
- int gotpager;
-@@ -701,7 +702,16 @@
-
- p->created = time(NULL);
- (void)sprintf(buff, "%d", pagecount++);
-- (void)strcat(p->messageid, buff);
-+ m = (void *)malloc(sizeof(*m) * (strlen(p->messageid) + strlen(buff) + 1));
-+ if ( m == NULL ) {
-+ message("554 Message failed (out of memory)");
-+ qpage_log(LOG_ERR, "snpp(): cannot allocate memory for p->messageid");
-+ clear_page(p, TRUE);
-+ break;
-+ }
-+ (void)sprintf(m, "%s%s", p->messageid, buff);
-+ my_free(p->messageid);
-+ p->messageid = m;
-
- qpage_log(LOG_ALERT, "page submitted, id=%s, from=%s",
- p->messageid,
diff --git a/comms/qpage/files/patch-util.c b/comms/qpage/files/patch-util.c
deleted file mode 100644
index fd7e6b7ff33c..000000000000
--- a/comms/qpage/files/patch-util.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- util.c.orig Sun Oct 25 20:55:11 1998
-+++ util.c Thu Oct 28 23:58:37 2004
-@@ -537,7 +537,7 @@
- ** Now make sure we didn't chop a word in the middle.
- */
- if (*src && end) {
-- *end++ = '\0';
-+ *++end = '\0';
- src = start;
- }
-
diff --git a/comms/qpage/files/qpage.in b/comms/qpage/files/qpage.in
deleted file mode 100644
index f55223805ff9..000000000000
--- a/comms/qpage/files/qpage.in
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: qpage
-# REQUIRE: NETWORKING
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf to enable/configure this service:
-#
-# qpage_enable (bool): Set to NO by default.
-# Set it to YES to enable qpage.
-# qpage_queue_interval (int): Set to 10 (seconds) by default.
-# qpage_cfg_file (path): Set it to an alternate configuration file path
-# if desired.
-# qpage_flags (str): Set it to a list of additional command-line
-# parameters if desired.
-#
-
-. /etc/rc.subr
-
-name="qpage"
-rcvar=qpage_enable
-
-command=%%PREFIX%%/bin/${name}
-
-load_rc_config $name
-
-: ${qpage_enable="NO"}
-: ${qpage_queue_interval="10"}
-
-stop_cmd=${name}_stop
-extra_commands="reload"
-reload_cmd=${name}_reload
-
-command_args="-q ${qpage_queue_interval} ${qpage_flags}"
-if [ -n "${qpage_cfg_file}" ]; then
- command_args="${command_args} -C ${qpage_cfg_file}"
-fi
-
-qpage_stop() {
- /usr/bin/killall qpage
-}
-
-qpage_reload() {
- # awk pattern matches master daemon process only (PPID 1 in 3rd column)
- pid=`/bin/ps alcxww | /usr/bin/awk "/^ *[0-9]+ +[0-9]+ +1 .* ${name}\$/{print \\\$2}"`
-
- if [ -n "$pid" ]; then
- kill -HUP $pid
- else
- echo "$0: no qpage daemon found" >& 2
- fi
-}
-
-run_rc_command "$1"