summaryrefslogtreecommitdiffstats
path: root/net/sendfile/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-03-01 21:51:04 +0000
committersteve <steve@FreeBSD.org>1998-03-01 21:51:04 +0000
commit28bf96240cae26aaa745edfac504e7531760aaee (patch)
tree62cfd14bff5476b449c5065a3004b93f855a2519 /net/sendfile/files
parent6ec48bd62af3b31360da58b06da70f61010d1931 (diff)
downloadFreeBSD-ports-28bf96240cae26aaa745edfac504e7531760aaee.zip
FreeBSD-ports-28bf96240cae26aaa745edfac504e7531760aaee.tar.gz
Update to use sendfile-19980228
PR: 5887 Submitted by: Stefan 'Sec' Zehl <sec@42.org>
Diffstat (limited to 'net/sendfile/files')
-rw-r--r--net/sendfile/files/patch-aa12
-rw-r--r--net/sendfile/files/patch-ab107
2 files changed, 56 insertions, 63 deletions
diff --git a/net/sendfile/files/patch-aa b/net/sendfile/files/patch-aa
index d04e6de..50ecc25 100644
--- a/net/sendfile/files/patch-aa
+++ b/net/sendfile/files/patch-aa
@@ -1,11 +1,10 @@
---- makeconfig.org Tue Sep 30 21:54:25 1997
-+++ makeconfig Tue Sep 30 21:55:50 1997
-@@ -11,15 +11,15 @@
+--- makeconfig.orig Sat Feb 28 13:21:59 1998
++++ makeconfig Sun Mar 1 19:45:58 1998
+@@ -11,15 +11,14 @@
# default compiling settings
CC=gcc
-CFLAGS=-O2
-+#CFLAGS=-O2
LDFLAGS=-s
# default installation settings
@@ -21,11 +20,10 @@
INETDCONF=/etc/inetd.conf
SERVICES=/etc/services
-@@ -33,7 +33,7 @@
- #PGP=/usr/local/bin/pgp
+@@ -35,6 +34,7 @@
#RECODE=/usr/local/bin/recode
#METAMAIL=/usr/local/bin/metamail
--#SENDMAIL=/usr/lib/sendmail
+ #SENDMAIL=/usr/lib/sendmail
+SENDMAIL=/usr/sbin/sendmail
######################### END OF USER CONFIGURATION ##########################
diff --git a/net/sendfile/files/patch-ab b/net/sendfile/files/patch-ab
index 3a80e29..fd4f1f3 100644
--- a/net/sendfile/files/patch-ab
+++ b/net/sendfile/files/patch-ab
@@ -1,25 +1,9 @@
---- develop/install.orig Tue Feb 24 14:06:09 1998
-+++ develop/install Tue Feb 24 14:09:09 1998
-@@ -98,31 +98,6 @@
- if [ "$INETDCONF" = "" ]; then INETDCONF=/etc/inetd.conf; fi
- if [ "$SERVICES" = "" ]; then SERVICES=/etc/services; fi
+--- develop/install.orig Fri Feb 27 08:29:16 1998
++++ develop/install Sun Mar 1 15:34:53 1998
+@@ -133,14 +133,6 @@
+ To deinstall the sendfile-daemon, simply type: rm $SERVERDIR/sendfiled
--cat <<EOD
--WARNING: this sendfile install script will create or write to:
--
-- spool directory = $SPOOL
-- binary directory = $BINDIR
-- manual directory = $MANDIR
-- sendfiled directory = $SERVERDIR
-- configuration files = $CONFIG
-- $DENY
--
--In /etc/services and /etc/inetd.conf apropriate ads will be inserted.
--In /etc/profile and /etc/csh.login a call to sendfile_check will be added.
--
--To deinstall the sendfile-daemon, simply type: rm $SERVERDIR/sendfiled
--
--EOD
+ EOD
-echo 'If you are satisfied with these defaults, then type "ok" now:'
-read answer
-if [ "$answer" != ok ]; then
@@ -28,11 +12,26 @@
- echo
- exit
-fi
--
+
umask 022
- echo "checking for directories"
-@@ -234,33 +209,9 @@
+@@ -195,6 +187,7 @@
+ echo " there is $SERVERDIR/sendfiled in makeconfig! Check it!"
+ fi
+ echo "installing the sendfile-daemon in $SERVERDIR"
++[ -x $SERVERDIR/sendfiled ] && mv $SERVERDIR/sendfiled $SERVERDIR/sendfiled.old
+ cp src/sendfiled $SERVERDIR || exit 1
+
+ NOSENDFILE=`dirname $DENY 2>/dev/null`/nosendfile
+@@ -240,7 +233,6 @@
+ echo "saft 487/tcp # simple asynchronous file transfer" | niload services .
+ else
+ echo "configuring $SERVICES"
+- echo "#" >>$SERVICES
+ echo "saft 487/tcp # simple asynchronous file transfer" >>$SERVICES
+ fi
+ fi
+@@ -253,8 +245,6 @@
fi
RESTART=true
echo "configuring $INETDCONF"
@@ -41,38 +40,34 @@
echo "saft stream tcp nowait root $SFD" >>$INETDCONF
fi
--if [ -f /etc/inetd.sec ]; then
-- if [ "`grep '^saft' /etc/inetd.sec`" = "" ]; then
-- echo >> /etc/inetd.sec
-- echo "saft allow" >> /etc/inetd.sec
-- fi
--fi
--
--if [ -f /etc/profile ]; then
-- if [ "`grep check_sendfile /etc/profile`" = "" ]; then
-- echo "adding check_sendfile to /etc/profile"
-- echo >>/etc/profile
-- echo test -x $BINDIR/check_sendfile && $BINDIR/check_sendfile >>/etc/profile
-- fi
--fi
--if [ -f /etc/csh.login ]; then
-- if [ "`grep check_sendfile /etc/csh.login`" = "" ]; then
-- echo "adding check_sendfile to /etc/csh.login"
-- echo >>/etc/csh.login
-- echo test -x $BINDIR/check_sendfile && $BINDIR/check_sendfile >>/etc/profile
-- fi
--fi
--
- if [ ! -d "$SPOOL/OUTGOING" ]; then
- echo "creating $SPOOL"
- mkdir_recursive $SPOOL/OUTGOING
-@@ -303,9 +254,3 @@
- echo "This will start an outgoing spooling sendfile daemon on boot time"
- echo "which processes any old files in the outgoing spool."
- echo
--
--if [ "$RESTART" = true ]; then
+@@ -278,7 +268,7 @@
+ echo "adding check_sendfile to /etc/csh.login"
+ echo >>/etc/csh.login
+ echo "test -x $BINDIR/check_sendfile && $BINDIR/check_sendfile" \
+- >>/etc/profile
++ >>/etc/csh.login
+ fi
+ fi
+
+@@ -318,15 +308,11 @@
+ EOD
+ fi
+
+-echo
+-echo "You may want to add the following line to your system bootup script:"
+-echo " $SERVERDIR/sendfiled -Q"
+-echo "This will start an outgoing spooling sendfile daemon on boot time"
+-echo "which processes any old files in the outgoing spool."
+-echo
++echo "[ -x $SERVERDIR/sendfiled ] && $SERVERDIR/sendfiled -Q && echo -n ' sendfiled'">${PREFIX}/etc/rc.d/sendfiled.sh
++chmod a+x ${PREFIX}/etc/rc.d/sendfiled.sh
+
+ if [ "$RESTART" = true ]; then
- echo
- echo "please restart now your inetd ( or simply reboot :-) )"
- echo
--fi
++ kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '`
++ [ -f $SERVERDIR/sendfiled.old ] && rm -f $SERVERDIR/sendfiled.old
+ fi
++true
+\ No newline at end of file
OpenPOWER on IntegriCloud