diff options
author | B. Watson <yalhcru@gmail.com> | 2018-06-29 14:42:06 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-07-07 06:54:20 +0700 |
commit | 9bf0e4750613dc91c62358f58dee1d2792bc8042 (patch) | |
tree | 9cc1e603da2b726908cc7be37c8b165dfc82b7bd /network/atftp | |
parent | 41f7707ae165ff80fa98518199f522ea2dc77265 (diff) |
network/atftp: New maintainer, expand README.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/atftp')
-rw-r--r-- | network/atftp/README | 41 | ||||
-rw-r--r-- | network/atftp/atftp.SlackBuild | 24 | ||||
-rw-r--r-- | network/atftp/atftp.info | 4 |
3 files changed, 57 insertions, 12 deletions
diff --git a/network/atftp/README b/network/atftp/README index 375683bdcb24..537ffbb3599f 100644 --- a/network/atftp/README +++ b/network/atftp/README @@ -1,3 +1,38 @@ -atftp is a client/server implementation of the TFTP protocol that implements -RFCs 1350, 2090, 2347, 2348, and 2349. The server is multi-threaded and the -client presents a friendly interface using libreadline. +atftp (a client/server implementation of the TFTP protocol) + +atftp is a client/server implementation of the TFTP protocol that +implements RFCs 1350, 2090, 2347, 2348, and 2349. The server is +multi-threaded and the client presents a friendly interface using +libreadline. + +The atftpd server supports regular expressions, e.g. to serve the same +files to a group of hosts whose hostnames/IDs match a pattern. Multicast +is also supported (though experimental). + +Slackware-specific info: + +This build doesn't conflict with Slackware's tftp-hpa package. To run an +atftp service via inetd, edit /etc/inetd.conf, find the line for tftp, +make sure it's commented out, and add this line below it: + +tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/atftpd /tftpboot + +You may add other arguments to the above, as needed (see atftpd(8)). +Don't forget to restart inetd after editing its config (killall -HUP +inetd should do). + +Note: The FAQ supplied with atftp says to use /usr/sbin/in.tftpd. With +this build of atftp, that's incorrect: in.tftpd is still the regular +Slackware TFTP daemon. + +Unlike stock in.tftpd, atftp supports tcpwrappers, so you may have to +add lines to /etc/hosts.allow and/or /etc/hosts.deny. The service +name to use is "in.tftpd", *not* "atftpd" + +If you want to run atftpd as a standalone daemon (not via inetd), +the easiest way to do this would be to add a line to /etc/rc.d/rc.local, +like so: + +/usr/sbin/atftpd --daemon /tftpboot + +...with whatever other options seem useful (--pidfile, for instance). diff --git a/network/atftp/atftp.SlackBuild b/network/atftp/atftp.SlackBuild index 0796009f829f..404ec9ba268d 100644 --- a/network/atftp/atftp.SlackBuild +++ b/network/atftp/atftp.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for atftp -# Copyright (c) 2015 Leonard Schmidt <lems@gmx.net> +# Copyright (c) 2015 Leonard Schmidt <email removed> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -21,9 +21,18 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com>. + +# 20180629 bkw: +# - Take over maintenance. +# - Simplify script slightly. +# - Add a couple missing docs to /usr/doc, BUILD=2. +# - Expand README with hopefully useful setup info. Include it in +# the package since it overrides some of the info from upstream's docs. + PRGNAM=atftp VERSION=${VERSION:-0.7.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,9 +73,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CC="gcc -fgnu89-inline $SLKCFLAGS" \ ./configure \ @@ -84,11 +93,12 @@ make install-strip DESTDIR=$PKG rm $PKG/usr/man/man8/in.tftpd.8 rm $PKG/usr/sbin/in.tftpd -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a BUGS Changelog FAQ LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION/ +cp -a BUGS Changelog FAQ LICENSE README* TODO docs/*.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION/ +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.Slackware cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/network/atftp/atftp.info b/network/atftp/atftp.info index 24d4752d1e6a..07b1601db7f1 100644 --- a/network/atftp/atftp.info +++ b/network/atftp/atftp.info @@ -6,5 +6,5 @@ MD5SUM="367bf401965fbed04585b1229c2191a8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Leonard Schmidt" -EMAIL="lems@gmx.net" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" |