diff options
author | Rene Ladan <rene@FreeBSD.org> | 2014-07-24 18:36:19 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2014-07-24 18:36:19 +0000 |
commit | 36e34f48e2e5ab984eb31b7cff1ee163494523f0 (patch) | |
tree | 78419497b9b7f06ed2367445df2b7045727c6e0a /net | |
parent | 37f54e0f66813dcddb3659fd7810198377792a1e (diff) | |
download | ports-36e34f48e2e5ab984eb31b7cff1ee163494523f0.tar.gz ports-36e34f48e2e5ab984eb31b7cff1ee163494523f0.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/sendfile/Makefile | 45 | ||||
-rw-r--r-- | net/sendfile/distinfo | 2 | ||||
-rw-r--r-- | net/sendfile/files/patch-aa | 31 | ||||
-rw-r--r-- | net/sendfile/files/patch-ab | 131 | ||||
-rw-r--r-- | net/sendfile/files/patch-ac | 11 | ||||
-rw-r--r-- | net/sendfile/files/patch-ad | 32 | ||||
-rw-r--r-- | net/sendfile/files/sendfiled.in | 31 | ||||
-rw-r--r-- | net/sendfile/pkg-descr | 14 | ||||
-rw-r--r-- | net/sendfile/pkg-plist | 34 |
10 files changed, 0 insertions, 332 deletions
diff --git a/net/Makefile b/net/Makefile index 4d3e9f2d3af4..7da6a7525880 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1080,7 +1080,6 @@ SUBDIR += seda SUBDIR += self-service-password SUBDIR += sendemail - SUBDIR += sendfile SUBDIR += sendsms SUBDIR += sendsnpp SUBDIR += ser diff --git a/net/sendfile/Makefile b/net/sendfile/Makefile deleted file mode 100644 index 90f0e4c8b9c9..000000000000 --- a/net/sendfile/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# Created by: sec@42.org -# $FreeBSD$ - -PORTNAME= sendfile -PORTVERSION= 2.1a -PORTREVISION= 2 -CATEGORIES= net -MASTER_SITES= ftp://ftp.belwue.de/pub/unix/sendfile/current/ -DISTNAME= ${PORTNAME}-20010216 - -MAINTAINER= ports@FreeBSD.org -COMMENT= Simple Asynchronous File Transfer Reference Implementation - -DEPRECATED= Fails to build with new utmpx -EXPIRATION_DATE= 2014-07-23 - -HAS_CONFIGURE= yes -CONFIGURE_SCRIPT= makeconfig -CONFIGURE_ENV= PREFIX="${PREFIX}" -USE_RC_SUBR= sendfiled -MAKE_ARGS+= BATCH=true -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - -MAN1= sendfile.1 sendmsg.1 receive.1 fetchfile.1 utf7encode.1 \ - wlock.1 -MAN7= fetchfile.7 -MAN8= sendfiled.8 -MLINKS= utf7encode.1 utf7decode.1 - -NO_STAGE= yes -post-install: - @if [ ! -f ${PREFIX}/etc/sendfile.cf ]; then \ - ${CP} -p ${PREFIX}/etc/sendfile.cf.sample ${PREFIX}/etc/sendfile.cf ; \ - fi - @if [ ! -f ${PREFIX}/etc/sendfile.deny ]; then \ - ${CP} -p ${PREFIX}/etc/sendfile.deny.sample ${PREFIX}/etc/sendfile.deny ; \ - fi - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx -.endif - -.include <bsd.port.post.mk> diff --git a/net/sendfile/distinfo b/net/sendfile/distinfo deleted file mode 100644 index 3e325f2e0d3e..000000000000 --- a/net/sendfile/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (sendfile-20010216.tar.gz) = d2e2e459e309f6cccfede2502b2f4ab94e02ef3c6b7daa8202da4df955c59bb5 -SIZE (sendfile-20010216.tar.gz) = 292130 diff --git a/net/sendfile/files/patch-aa b/net/sendfile/files/patch-aa deleted file mode 100644 index 03a4c24d4412..000000000000 --- a/net/sendfile/files/patch-aa +++ /dev/null @@ -1,31 +0,0 @@ ---- makeconfig.orig Mon Mar 5 23:06:22 2001 -+++ makeconfig Mon Mar 5 23:07:26 2001 -@@ -11,15 +11,14 @@ - - # default compiling settings - CC=gcc --CFLAGS=-O2 - LDFLAGS=-s - - # default installation settings - SPOOL=/var/spool/sendfile --BINDIR=/usr/local/bin --MANDIR=/usr/local/man --CONFIG=/usr/local/etc --SERVERDIR=/usr/local/sbin -+BINDIR=${PREFIX}/bin -+MANDIR=${PREFIX}/man -+CONFIG=${PREFIX}/etc -+SERVERDIR=${PREFIX}/sbin - INETDCONF=/etc/inetd.conf - SERVICES=/etc/services - -@@ -34,7 +33,7 @@ - #PGP=/usr/local/bin/pgp - #RECODE=/usr/local/bin/recode - #METAMAIL=/usr/local/bin/metamail --#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 deleted file mode 100644 index 5ab752664dd6..000000000000 --- a/net/sendfile/files/patch-ab +++ /dev/null @@ -1,131 +0,0 @@ ---- develop/install.orig 1999-12-07 09:40:11.000000000 +0000 -+++ develop/install 2008-02-07 11:02:26.000000000 +0000 -@@ -82,7 +82,6 @@ - make_man fetchfile 7 $manmisc - make_man sendfiled 8 $manadmin - cp doc/wlock.1 doc/utf7encode.1 $MANDIR/man1 -- (cd $MANDIR/man1; ln -s utf7encode.1 utf7decode.1 2>/dev/null) - } - - SYSTEM=$1 -@@ -165,14 +164,6 @@ - To deinstall the sendfile-daemon, simply type: rm -f $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 - -@@ -233,16 +224,16 @@ - mv $NOSENDFILE $DENY - fi - fi --if [ ! -f $DENY -a ! -f $ALLOW ]; then -+if [ ! -f ${DENY}.sample -a ! -f $ALLOW ]; then - echo "installing the sendfile deny file as $DENY" -- cp etc/sendfile.deny $DENY -- chmod 644 $DENY -+ cp etc/sendfile.deny ${DENY}.sample -+ chmod 644 ${DENY}.sample - fi - --if [ ! -f $CONFIG ]; then -+if [ ! -f ${CONFIG}.sample ]; then - echo "installing the global sendfile config file as $CONFIG" -- cp etc/sendfile.cf $CONFIG -- chmod 644 $CONFIG -+ cp etc/sendfile.cf ${CONFIG}.sample -+ chmod 644 ${CONFIG}.sample - else - if [ "`diff etc/sendfile.cf $CONFIG`" ]; then - echo "Warning: `pwd`/etc/sendfile.cf differs from $CONFIG !" -@@ -250,6 +241,23 @@ - fi - fi - -+if [ -z "$BATCH" ] ; then -+echo '' -+echo 'I would now configure and start your sendfiled.' -+echo 'If you do not like this, enter "no" here' -+read answer -+fi -+if [ "$answer" = no ]; then -+ echo -+ echo "Things left to do if you want to start sendfiled:" -+ echo -+ echo " - Maybe add 'saft 487/tcp' to /etc/services (prior to FreeBSD-4)" -+ echo " - Add sendfiled to /etc/inetd.conf and killall -HUP inetd" -+ echo " - Add 'test -x $BINDIR/check_sendfile && $BINDIR/check_sendfile'" -+ echo " to /etc/profile and /etc/csh.login" -+ echo -+else -+ - if [ "$SYSTEM" = NEXT ]; then - SERVICE="`nidump services . | awk '/[ \t]487\/tcp/'`" - else -@@ -266,7 +274,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 -@@ -279,8 +286,6 @@ - fi - RESTART=true - echo "configuring $INETDCONF" -- echo "#" >>$INETDCONF -- echo "# simple asynchronous file transfer" >>$INETDCONF - echo "saft stream tcp nowait root $SFD" >>$INETDCONF - fi - -@@ -308,6 +313,8 @@ - fi - fi - -+fi -+ - if [ ! -d "$SPOOL/OUTGOING" ]; then - echo "creating $SPOOL" - mkdir_recursive $SPOOL/OUTGOING -@@ -334,7 +341,7 @@ - fi - - free=`$SERVERDIR/sendfiled -f` --minfree=`awk '/minfree =/{print $3}' $CONFIG` -+minfree=`awk '/minfree =/{print $3}' ${CONFIG}.sample` - if [ "$free" -le "$minfree" ]; then - cat <<EOD - ! WARNING ! -@@ -344,15 +351,15 @@ - 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 "### Please add 'sendfiled_enable=YES' to your /etc/rc.conf" - - if [ "$RESTART" = true ]; then -- echo -- echo "please restart now your inetd ( or simply reboot :-) )" -+ if [ ! -f /var/run/inetd.pid ] ; then -+ echo "# Cant restart inetd. Perhaps it isn't running?" -+ else -+ kill -HUP `cat /var/run/inetd.pid` -+ fi - echo - fi -+[ -f $SERVERDIR/sendfiled.old ] && rm -f $SERVERDIR/sendfiled.old -+echo done. diff --git a/net/sendfile/files/patch-ac b/net/sendfile/files/patch-ac deleted file mode 100644 index dc8e40075785..000000000000 --- a/net/sendfile/files/patch-ac +++ /dev/null @@ -1,11 +0,0 @@ ---- src/io.h.orig Mon Mar 5 23:38:04 2001 -+++ src/io.h Mon Mar 5 23:38:04 2001 -@@ -15,6 +15,8 @@ - * This file is covered by the GNU General Public License - */ - -+#include <sys/types.h> -+ - - /* read n bytes from network socket */ - int readn(int, char *, int); diff --git a/net/sendfile/files/patch-ad b/net/sendfile/files/patch-ad deleted file mode 100644 index 3cbb33144599..000000000000 --- a/net/sendfile/files/patch-ad +++ /dev/null @@ -1,32 +0,0 @@ ---- src/sendfiled.c.org Tue Feb 6 00:42:53 2001 -+++ src/sendfiled.c Sun Aug 26 21:21:18 2001 -@@ -10,6 +10,7 @@ - * Chris Foote (chris@senet.com.au) - * Daniel Kobras <kobras@lists.tat.physik.uni-tuebingen.de> - * Colin Phipps <cph@cph.demon.co.uk> -+ * Stefan `Sec` Zehl <sec@42.org> - * - * History: - * -@@ -138,6 +139,7 @@ - * 2001-01-17 Framstag mail2user() now runs in a subprocess - * 2001-02-02 Framstag fixed openlog() bug - * 2001-02-06 Framstag added timeout on waiting response from client -+ * 2001-08-26 sec workaround for sete[ug]id on FreeBSD - * - * - * The sendfile-daemon of the sendfile package. -@@ -4000,11 +4002,13 @@ - * RETURN: nothing, but terminates program on error - */ - void setreugid() { -+ if (rgid != getegid()) - if (rgid && setegid(rgid)<0) { - printf("490 Internal error on setegid(%u): %s\r\n", - (unsigned int)rgid,strerror(errno)); - exit(1); - } -+ if (ruid != geteuid()) - if (ruid && seteuid(ruid)<0) { - printf("490 Internal error on seteuid(%u): %s\r\n", - (unsigned int)ruid,strerror(errno)); diff --git a/net/sendfile/files/sendfiled.in b/net/sendfile/files/sendfiled.in deleted file mode 100644 index d44fd695e9ea..000000000000 --- a/net/sendfile/files/sendfiled.in +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: sendfiled -# REQUIRE: LOGIN -# BEFORE: securelevel -# KEYWORD: shutdown - -# Add the following lines to /etc/rc.conf to enable `sendfiled': -# -# sendfiled_enable="YES" -# sendfiled_flags="<set as needed>" -# -# See sendfiled(8) for sendfiled_flags - -. /etc/rc.subr - -name="sendfiled" -rcvar=sendfiled_enable - -command="%%PREFIX%%/sbin/sendfiled" -command_args="-Q" -required_files="%%PREFIX%%/etc/sendfile.cf" - -# read configuration and set defaults -load_rc_config "$name" -: ${sendfiled_enable="NO"} - -run_rc_command "$1" diff --git a/net/sendfile/pkg-descr b/net/sendfile/pkg-descr deleted file mode 100644 index 80225e5b9dcd..000000000000 --- a/net/sendfile/pkg-descr +++ /dev/null @@ -1,14 +0,0 @@ -SAFT (Simple Asynchronous File Transfer) is a new Internet protocol for -sending files and messages asynchronously. This is useful, because you don't -have to log on to the receiving site to do it. You simply tell the -sendfile program a file name and where to send it: -"sendfile your_file user@somedomain" (Of course there are options). - -The package includes: A sendfile client (which sends files), a sendmsg -client (which sends messages), a receive client (which copies files from -the local sendfile spool to the recipient's current directory) and a -sendfiled server (which receives files and messages and stores them in the -local sendfile spool). - -NOTE: If you wish to use fetchfile (which is an optional extension to - sendfile,) you need to have pgp installed, too. diff --git a/net/sendfile/pkg-plist b/net/sendfile/pkg-plist deleted file mode 100644 index 7ee30b89b02d..000000000000 --- a/net/sendfile/pkg-plist +++ /dev/null @@ -1,34 +0,0 @@ -bin/check_sendfile -bin/ewl -bin/fetchfile -bin/receive -bin/rf -bin/sendfile -bin/sendmsg -bin/sf -bin/sf_cleanup -bin/sfconf -bin/sfdconf -bin/sm -bin/utf7decode -bin/utf7encode -bin/wlock -sbin/sendfiled -@exec mkdir -p /var/spool/sendfile/OUTGOING /var/spool/sendfile/LOG -@exec chmod 755 /var/spool/sendfile -@exec chmod 1777 /var/spool/sendfile/OUTGOING -@exec chmod 700 /var/spool/sendfile/LOG -@exec touch /var/spool/sendfile/LOG/in /var/spool/sendfile/LOG/out -@exec chmod 600 /var/spool/sendfile/LOG/in /var/spool/sendfile/LOG/out -@exec echo -e 'saft\tstream\ttcp\tnowait\troot\t%D/sbin/sendfiled sendfiled' >> /etc/inetd.conf -@exec echo -e 'saft\t\t487/tcp\t# simple asynchronous file transfer'>>/etc/services -@exec kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '` >/dev/null 2>&1 ||true -@unexec perl -pi.bak -e '/^saft/ && ($_="")' /etc/inetd.conf -@unexec kill -HUP `ps auxw|awk '$11 == "inetd" { print $2 } '` >/dev/null 2>&1||true -@unexec rm -R /var/spool/sendfile 2>&1 >/dev/null || true -@unexec if cmp -s %D/etc/sendfile.cf.sample %D/etc/sendfile.cf; then rm -f %D/etc/sendfile.cf; fi -@exec if [ ! -f %D/etc/sendfile.cf ] ; then cp -p %D/etc/sendfile.cf.sample %D/etc/sendfile.cf; fi -@unexec if cmp -s %D/etc/sendfile.deny.sample %D/etc/sendfile.deny; then rm -f %D/etc/sendfile.deny; fi -@exec if [ ! -f %D/etc/sendfile.deny ] ; then cp -p %D/etc/sendfile.deny.sample %D/etc/sendfile.deny; fi -etc/sendfile.cf.sample -etc/sendfile.deny.sample |