Commit Graph

27 Commits

Author SHA1 Message Date
Florian Eckert
5237ebf95e atftp: bump PKG_RELEASE
Bump PKG_RELEASE by one.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-09-08 09:20:43 +02:00
Florian Eckert
8132457ddd atftp: add patch to fix build error
This patch fixes the following compilation build error for gcc14:

tftpd_pcre.c:109:37: error: passing argument 1 of 'pcre2_substring_list_free_8' from incompatible p
  109 |           pcre2_substring_list_free((const PCRE2_UCHAR **)substrlist);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     const PCRE2_UCHAR8 ** {aka const unsigned char **}
In file included from tftpd_pcre.h:24,
                 from tftpd_pcre.c:35:

I have also submitted the change to the upstream project:
https://github.com/madmartin/atftp/pull/2

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-09-08 09:20:43 +02:00
Florian Eckert
62dfcf026f atftp: add patch to fix build warning
This patch fixes the following compilation build warning:

logger.c:117:47: warning: format '%li' expects argument of type 'long int', but argument 7 has type
  117 |                fprintf(log_fp, "%s %s %s[%d.%li]: %s\n", time_buf, hostname,
      |                                             ~~^
      |                                               |
      |                                               long int
  118 |                        log_ident, getpid(), pthread_self(), message);
      |                                             ~~~~~~~~~~~~~~
      |                                             |
      |                                             pthread_t {aka struct __pthread *}
logger.c:124:47: warning: format '%li' expects argument of type 'long int', but argument 7 has type
  124 |                fprintf(stderr, "%s %s %s[%d.%li]: %s\n", time_buf, hostname,
      |                                             ~~^
      |                                               |
      |                                               long int
  125 |                        log_ident, getpid(), pthread_self(), message);
      |                                             ~~~~~~~~~~~~~~
      |                                             |
      |                                             pthread_t {aka struct __pthread *}

I have also submitted the change to the upstream project:
https://github.com/madmartin/atftp/pull/2

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-09-08 09:20:43 +02:00
Mohd Husaam Mehdi
4695e2c10f atftpd: update init script to publish tftp service
update init script to announce tftp service over mdns

Signed-off-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>
2024-11-28 09:59:13 +01:00
Mohd Husaam Mehdi
6afd740a89 atftpd: update init script to use procd
* update init script to use procd

Signed-off-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>
2024-11-28 09:59:13 +01:00
Sergey Ponomarev
4c4a7bd31d treewide: use config_get_bool instead of config_get enabled
The config_get_bool function parses not just the 1 but on/yes, true/false or enabled/disabled.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-05-26 03:00:50 +08:00
Fabrice Fontaine
154fda5933 net/atftp: assign PKG_CPE_ID
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:atftp_project:atftp

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-01-29 15:57:13 -08:00
Jakub Raczynski
eeea8f4c6f atftpd: Add 'enable' config option
Current version of atftpd daemon does automatically start when installed.
This commit adds 'enable' option to config file to
have control over atftpd daemon.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
2023-11-10 19:11:37 +00:00
Jakub Raczynski
240ea8803f atftpd: Add missing field to default configuration
Although init script did consist of default value for missing 'port' field,
add it to configuration file for consistency.

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
2023-11-10 19:11:31 +00:00
Jakub Raczynski
db48e79406 atftpd: Refactor init script
- Add local variables for read configuration
- Convert uppercase  to lowercase for local variables

Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
2023-11-10 19:11:07 +00:00
Christian Marangi
f81a1a1212 atftp: move to PCRE2
Move atftp to PCRE2 as PCRE is flagged as EOL and won't receive security
updates anymore.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-09-27 19:11:57 +02:00
Christian Marangi
364fe00b17 atftp: bump to release 0.8.0
Bump to release 0.8.0. Autorecong is now needed to correctly compile the
package.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-09-27 19:11:56 +02:00
Paul Fertser
0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Rosen Penev
0ad6384b5f atftp: update to 0.7.5
Remove upstreamed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-12-17 14:09:50 -08:00
Huangbin Zhan
3d66be4203 atftpd: fix conffiles
Add missing conffiles
Fix conffile permission

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2021-10-27 23:18:42 -07:00
Rosen Penev
50e664e2e0 atftp: update to 0.7.4
Remove upstreamed patches. Refresh others.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-14 21:58:00 -08:00
Rosen Penev
9ac737ac80 atftp: fix compilation with glibc
It's defining two functions twice for some reason.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-30 16:37:57 -08:00
Russell Senior
885c054d57 CI: add runtime test for atftp and atftpd
Signed-off-by: Russell Senior <russell@personaltelco.net>
2020-09-18 21:18:30 -07:00
Russell Senior
6258b32d7c atftp: add init script and config file
Signed-off-by: Russell Senior <russell@personaltelco.net>
2020-09-18 10:22:56 -07:00
Rosen Penev
f3fdcb4288 atftp: completely remove cdefs usage
sys/cdefs.h is not provided by musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-10 15:35:09 -07:00
Rosen Penev
89ddb6baca atftp: fix compilation with newer musl
Added missing header for __THROW.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-29 21:33:17 -07:00
Rosen Penev
946dfed856 atftp: Update to 0.7.2
Fixes issue where CFLAGS were not being passed. This was breaking ASLR
builds.

Added PKG_BUILD_PARALLEL for faster compilation.

Added PKG_INSTALL. Changed install paths based on PKG_INSTALL paths.

Added --disable-debug to make sure debug code is disabled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-08-27 15:37:27 -07:00
Matthias Schiffer
00fce347a5 treewide: fix incorrect *_BUILD_DEPENDS
Build depends refer to source package names, not binary package names.

In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of
a source package's binary packages; as the corresponding source packages
are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be
dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to
refer to the correct source package name.

Dependency of mysql-server is adjusted from libncursesw to libncurses
(as libncursesw is a virtual package provided by libncurses), so the build
dependency on ncurses is emitted unconditionally.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-09 16:36:02 +01:00
Paul Wassi
5ccf34c94c net/atftp: update source URL and checksum
Update package source to use '@SF' (SourceForge) instead of URL
Replace md5sum by new hash

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-04-01 09:56:11 +02:00
Daniel Danzberger
8bc1404ff5 atftp: Fix "undefined reference" linker errors.
These errors were caused by using "inline" functions in a non-static context.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2015-12-11 11:52:20 +01:00
Daniel Danzberger
8159bf7990 atftp: fix invalid read in tftp_send_request.
This invalid read of 1 byte caused a segfault
on some arm platforms.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2015-11-04 16:28:50 +01:00
Daniel Danzberger
46f94304d3 atftp: add new package
TODO:
	- add init script for atftpd
	- merge '120-retry-option.patch' from old atftp packages.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2015-09-09 11:48:09 +02:00