UmVirt LFS Package info

DB commit: 87572d7cf5c2e4fc6a7d33abc05341175a2c925a
APP commit: e905d50832f25d6e1ea1c062c557c2674e1072f0
[ BASH | XML | JSON ]

tftp-hpa

Official tftp server

Package info

Template:
Codename: tftp-hpa
Source file: tftp-hpa-5.2.tar.xz
Source directory: tftp-hpa-5.2
Package URL: tftp-hpa-5.2.tar.xz
Package md5-checksum URL: tftp-hpa-5.2.tar.xz.md5sum
Dependances: *** NO DEPENDANCES FOUND ***
Dependance of: *** NO PACKAGES FOUND ***
Patches: tftp-hpa-0.49-fortify-strcpy-crash.patch.
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
export CFLAGS+=' -Wno-error=implicit-function-declaration -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin --without-tcpwrappers

Build script:
make 

Install script:
make install

echo TFTPD_ARGS=\"--secure /srv/tftp/\" > /etc/conf.d/tftpd  
  
#install service
cat > /usr/lib/systemd/system/tftpd.service << "EOF"
[Unit]
Description=hpa's original TFTP daemon
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/tftpd
ExecStart=/usr/bin/in.tftpd --listen $TFTPD_ARGS

[Install]
WantedBy=multi-user.target

EOF


#install socket
cat > /usr/lib/systemd/system/tftpd.socket << "EOF"
[Unit]
Description=hpa's original TFTP daemon
Conflicts=tftpd.service

[Socket]
ListenDatagram=69

[Install]
WantedBy=sockets.target

EOF