Commit 407cab02 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: tftpd-service tftpd-socket
tar xf tftp-hpa-5.2.tar.xz
cd tftp-hpa-5.2 && ./configure --prefix=/usr
$(MAKE) -C tftp-hpa-5.2
$(MAKE) -C tftp-hpa-5.2 install
@echo "$$TFTPD_SERVICE" > /lib/systemd/system/tftpd.service
@echo "$$TFTPD_SOCKET" > /lib/systemd/system/tftpd.socket
ln -s /lib/systemd/system/tftpd.service /etc/systemd/system/multi-user.target.wants/tftpd.service
rm -rf tftp-hpa-5.2
tftpd-service:
define TFTPD_SERVICE
[Unit]
Description = TFTP Server
After = network.target tftpd.socket
Requires = tftpd.socket
[Service]
ExecStart = /usr/sbin/in.tftpd -v -s /tftpboot
StandardInput = socket
StandardError = journal
[Install]
WantedBy = multi-user.target
endef
export TFTPD_SERVICE
tftpd-socket:
define TFTPD_SOCKET
[Unit]
Description = TFTP Socket activation
PartOf = tftpd.service
[Socket]
ListenDatagram = 0.0.0.0:69
[Install]
WantedBy = sockets.target
endef
export TFTPD_SOCKET
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment