]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/tftpd
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / tftpd
index e0cd93bdae08ddc73a3e28d6864081e6cceedf64..8a3e7bd3122a2a200d20a6ef6d1ef1d94ab59c4b 100644 (file)
--- a/lfs/tftpd
+++ b/lfs/tftpd
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,9 @@
 
 include Config
 
-VER        = 0.48
+SUMMARY    = A conglomerate of a number of versions of the BSD TFTP code
+
+VER        = 5.2
 
 THISAPP    = tftp-hpa-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -32,9 +34,13 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tftpd
-PAK_VER    = 1
+PAK_VER    = 4
+
+DEPS       =
+
+SERVICES   = tftpd
 
-DEPS       = ""
+CFLAGS    += -fcommon
 
 ###############################################################################
 # Top-level Rules
@@ -44,7 +50,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = f2e0a1ca0c49ae46ecad26a54df3e887
+$(DL_FILE)_BLAKE2 = bdf996717a6ad8f6c3e16954ce2d06b2ae561682a226f35ca57b75f93869a7df73ccd2c214dfd90ba8979ae916bf07463ec6df874e0f1729080234300865451c
 
 install : $(TARGET)
 
@@ -52,13 +58,13 @@ check : $(patsubst %,$(DIR_CHK)/%,$(objects))
 
 download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
-md5 : $(subst %,%_MD5,$(objects))
+b2 : $(subst %,%_BLAKE2,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
-# Downloading, checking, md5sum
+# Downloading, checking, b2sum
 ###############################################################################
 
 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
@@ -67,8 +73,8 @@ $(patsubst %,$(DIR_CHK)/%,$(objects)) :
 $(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)
 
-$(subst %,%_MD5,$(objects)) :
-       @$(MD5)
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
 
 ###############################################################################
 # Installation Details
@@ -81,7 +87,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        mv -fv /usr/sbin/in.tftpd /usr/sbin/tftpd
+       mkdir -pv /var/tftpboot
        #install initscripts
-       $(call INSTALL_INITSCRIPT,tftpd)
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)