Date: Sun, 1 Mar 1998 18:16:06 +0100 (CET) From: Stefan `Sec` Zehl <sec@42.org> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/5887: Update of sendfile-2.1 port Message-ID: <199803011716.SAA16936@matrix.42.org>
next in thread | raw e-mail | index | archive | help
>Number: 5887 >Category: ports >Synopsis: Update of sendfile-2.1 port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 1 09:20:01 PST 1998 >Last-Modified: >Originator: Stefan `Sec` Zehl >Organization: >Release: FreeBSD 2.2.5-STABLE i386 >Environment: n.a. >Description: This is an update to the net/sendfile port. The author released a updated version under the same name, leading to a "Checksum mismatch" and a patch rejection. For updates to a port, should i submit the whole port again, or only the files that differ, or even just diffs to the old version ? (this time, i append the whole port again.) >How-To-Repeat: >Fix: # 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: # # sendfile # sendfile/Makefile # sendfile/files # sendfile/files/md5 # sendfile/patches # sendfile/patches/patch-aa # sendfile/patches/patch-ac # sendfile/pkg # sendfile/pkg/COMMENT # sendfile/pkg/DESCR # sendfile/pkg/PLIST # echo c - sendfile mkdir -p sendfile > /dev/null 2>&1 echo x - sendfile/Makefile sed 's/^X//' >sendfile/Makefile << 'END-of-sendfile/Makefile' X# New ports collection makefile for: sendfile X# Version required: 2.1 X# Date created: 30 Oct 1997 X# Whom: sec@42.org X# X# $Id$ X# X XDISTNAME= sendfile-19980228 XPKGNAME= sendfile-2.1 XCATEGORIES= net XMASTER_SITES= ftp://ftp.uni-stuttgart.de/pub/unix/comm/sendfile/current/ X XMAINTAINER= sec@42.org XWRKSRC= ${WRKDIR}/${PKGNAME} X XHAS_CONFIGURE= yes XCONFIGURE_SCRIPT=makeconfig XCONFIGURE_ENV= PREFIX="${PREFIX}" X XMAN1= sendfile.1 sendmsg.1 receive.1 fetchfile.1 XMAN7= fetchfile.7 XMAN8= sendfiled.8 X X X.include <bsd.port.mk> END-of-sendfile/Makefile echo c - sendfile/files mkdir -p sendfile/files > /dev/null 2>&1 echo x - sendfile/files/md5 sed 's/^X//' >sendfile/files/md5 << 'END-of-sendfile/files/md5' XMD5 (sendfile-19980228.tar.gz) = bb2a3e8c4906b37237fa958a8bf8bb1a END-of-sendfile/files/md5 echo c - sendfile/patches mkdir -p sendfile/patches > /dev/null 2>&1 echo x - sendfile/patches/patch-aa sed 's/^X//' >sendfile/patches/patch-aa << 'END-of-sendfile/patches/patch-aa' X--- makeconfig.org Tue Sep 30 21:54:25 1997 X+++ makeconfig Tue Sep 30 21:55:50 1997 X@@ -11,15 +11,15 @@ X X # default compiling settings X CC=gcc X-CFLAGS=-O2 X+#CFLAGS=-O2 X LDFLAGS=-s X X # default installation settings X SPOOL=/var/spool/sendfile X-BINDIR=/usr/local/bin X-MANDIR=/usr/local/man X-CONFIG=/usr/local/etc X-SERVERDIR=/usr/local/sbin X+BINDIR=${PREFIX}/bin X+MANDIR=${PREFIX}/man X+CONFIG=${PREFIX}/etc X+SERVERDIR=${PREFIX}/sbin X INETDCONF=/etc/inetd.conf X SERVICES=/etc/services X X@@ -33,7 +33,7 @@ X #PGP=/usr/local/bin/pgp X #RECODE=/usr/local/bin/recode X #METAMAIL=/usr/local/bin/metamail X-#SENDMAIL=/usr/lib/sendmail X+SENDMAIL=/usr/sbin/sendmail X X ######################### END OF USER CONFIGURATION ########################## X END-of-sendfile/patches/patch-aa echo x - sendfile/patches/patch-ac sed 's/^X//' >sendfile/patches/patch-ac << 'END-of-sendfile/patches/patch-ac' X--- develop/install.orig Fri Feb 27 15:29:16 1998 X+++ develop/install Sun Mar 1 17:37:37 1998 X@@ -105,6 +105,7 @@ X umask 022 X cd src || exit 1 X cp sendfile sendmsg receive utf7encode fetchfile wlock $BINDIR/ X+ [ -x $SERVERDIR/sendfiled ] && mv $SERVERDIR/sendfiled $SERVERDIR/sendfiled.old X cp sendfiled $SERVERDIR X cd .. X make_man sendfile.1 man1 X@@ -133,14 +134,14 @@ X To deinstall the sendfile-daemon, simply type: rm $SERVERDIR/sendfiled X X EOD X-echo 'If you are satisfied with these defaults, then type "ok" now:' X-read answer X-if [ "$answer" != ok ]; then X- echo X- echo "You can install sendfile manually, too. Please type: more doc/README" X- echo X- exit X-fi X+#echo 'If you are satisfied with these defaults, then type "ok" now:' X+#read answer X+#if [ "$answer" != ok ]; then X+# echo X+# echo "You can install sendfile manually, too. Please type: more doc/README" X+# echo X+# exit X+#fi X X umask 022 X X@@ -195,6 +196,7 @@ X echo " there is $SERVERDIR/sendfiled in makeconfig! Check it!" X fi X echo "installing the sendfile-daemon in $SERVERDIR" X+[ -x $SERVERDIR/sendfiled ] && mv $SERVERDIR/sendfiled $SERVERDIR/sendfiled.old X cp src/sendfiled $SERVERDIR || exit 1 X X NOSENDFILE=`dirname $DENY 2>/dev/null`/nosendfile X@@ -240,7 +242,7 @@ X echo "saft 487/tcp # simple asynchronous file transfer" | niload services . X else X echo "configuring $SERVICES" X- echo "#" >>$SERVICES X+# echo "#" >>$SERVICES X echo "saft 487/tcp # simple asynchronous file transfer" >>$SERVICES X fi X fi X@@ -253,8 +255,8 @@ X fi X RESTART=true X echo "configuring $INETDCONF" X- echo "#" >>$INETDCONF X- echo "# simple asynchronous file transfer" >>$INETDCONF X+# echo "#" >>$INETDCONF X+# echo "# simple asynchronous file transfer" >>$INETDCONF X echo "saft stream tcp nowait root $SFD" >>$INETDCONF X fi X X@@ -318,15 +320,19 @@ X EOD X fi X X-echo X-echo "You may want to add the following line to your system bootup script:" X-echo " $SERVERDIR/sendfiled -Q" X-echo "This will start an outgoing spooling sendfile daemon on boot time" X-echo "which processes any old files in the outgoing spool." X-echo X+#echo X+#echo "You may want to add the following line to your system bootup script:" X+#echo " $SERVERDIR/sendfiled -Q" X+#echo "This will start an outgoing spooling sendfile daemon on boot time" X+#echo "which processes any old files in the outgoing spool." X+#echo X+ X+echo "[ -x $SERVERDIR/sendfiled ] && $SERVERDIR/sendfiled -Q && echo -n ' sendfiled'">/usr/local/etc/rc.d/sendfiled.sh X X if [ "$RESTART" = true ]; then X- echo X- echo "please restart now your inetd ( or simply reboot :-) )" X- echo X+# echo X+# echo "please restart now your inetd ( or simply reboot :-) )" X+# echo X+ kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '` X+ [ -f $SERVERDIR/sendfiled.old ] && rm $SERVERDIR/sendfiled.old X fi END-of-sendfile/patches/patch-ac echo c - sendfile/pkg mkdir -p sendfile/pkg > /dev/null 2>&1 echo x - sendfile/pkg/COMMENT sed 's/^X//' >sendfile/pkg/COMMENT << 'END-of-sendfile/pkg/COMMENT' XSimple Asynchronous File Transfer Reference Implementation. END-of-sendfile/pkg/COMMENT echo x - sendfile/pkg/DESCR sed 's/^X//' >sendfile/pkg/DESCR << 'END-of-sendfile/pkg/DESCR' XSAFT (Simple Asynchronous File Transfer) is a new Internet protocol for Xsending files and messages asynchronously. This is useful, because you don't Xhave to log on to the receiving site to do it. You simply tell the Xsendfile program a file name and where to send it: X"sendfile your_file user@somedomain" (Of course there are options). X XThe package includes: A sendfile client (which sends files), a sendmsg Xclient (which sends messages), a receive client (which copies files from Xthe local sendfile spool to the recipient's current directory) and a Xsendfiled server (which receives files and messages and stores them in the Xlocal sendfile spool). END-of-sendfile/pkg/DESCR echo x - sendfile/pkg/PLIST sed 's/^X//' >sendfile/pkg/PLIST << 'END-of-sendfile/pkg/PLIST' Xbin/sendfile Xbin/sf_cleanup Xbin/check_sendfile Xbin/utf7encode Xbin/receive Xbin/sendmsg Xbin/utf7decode Xbin/fetchfile Xbin/wlock Xbin/sf_cleanup Xbin/sfconf Xbin/sfdconf Xetc/nosendfile Xetc/sendfile.cf Xsbin/sendfiled Xman/man1/sendfile.1.gz Xman/man1/sendmsg.1.gz Xman/man1/receive.1.gz Xman/man1/fetchfile.1.gz Xman/man1/fetchfile.7.gz Xman/man1/sendfiled.8.gz X X@exec mkdir -p /var/spool/sendfile/OUTGOING /var/spool/sendfile/LOG X@exec chmod 755 /var/spool/sendfile X@exec chmod 1777 /var/spool/sendfile/OUTGOING X@exec chmod 700 /var/spool/sendfile/LOG X@exec touch /var/spool/sendfile/LOG/in /var/spool/sendfile/LOG/out X@exec chmod 600 /var/spool/sendfile/LOG/in /var/spool/sendfile/LOG/out X@exec echo -e 'saft\tstream\ttcp\tnowait\troot\t/usr/local/sbin/sendfiled sendfiled' >> /etc/inetd.conf X@exec echo -e 'saft\t\t487/tcp\t# simple asynchronous file transfer'>>/etc/services X@exec kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '` X X@unexec perl -pi.bak -e '/^saft/ && ($_="")' /etc/inetd.conf X@unexec kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '` X@unexec rm -R /var/spool/sendfile X END-of-sendfile/pkg/PLIST exit >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803011716.SAA16936>