summaryrefslogtreecommitdiff
path: root/net/sendfile/files/patch-ab
blob: 3a80e29aa2b46fb2a8478ed13d52856b3903b524 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
--- 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
 
-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
-echo 'If you are satisfied with these defaults, then type "ok" now:'
-read answer
-if [ "$answer" != ok ]; then
-  echo
-  echo "You can install sendfile manually, too. Please type: more doc/README"
-  echo
-  exit
-fi
-
 umask 022
 
 echo "checking for directories"
@@ -234,33 +209,9 @@
   fi
   RESTART=true
   echo "configuring $INETDCONF"
-  echo "#" >>$INETDCONF
-  echo "# simple asynchronous file transfer" >>$INETDCONF
   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
-  echo
-  echo "please restart now your inetd ( or simply reboot :-) )"
-  echo
-fi