Re: [HEADSUP] Deprecation of the ftp support in pkg

From: Stefan Esser <>
Date: Sun, 23 Jan 2022 20:08:30 UTC
Am 23.01.22 um 18:12 schrieb Jose Quinteiro:
> On 1/23/22 09:06, tech-lists wrote:
>> On Sun, Jan 23, 2022 at 08:55:09AM -0800, Jose Quinteiro wrote:
>>> You can run HTTP on a non-standard port. For example, 8080 is commonly
>>> used. As an added bonus, this means that the HTTP server need not run as
>>> root.
>> Unless I'm mistaken, there is no web server in base. There is though, an
>> ftp server.
> Touche. I wouldn't mind having Thttpd in base.

An interesting idea, we have it as a port in www/thttpd.

While we generally rather move base components that are not
generally required to ports, this might be a case where it
makes sense to replace one base system component by another
one currently only available as a port ...

The thttpd binary is smaller than the ftpd currently in base,
and it might make sense to replace ftpd by this simple httpd:

$ size /usr/libexec/ftpd
   text	   data	    bss	    dec	    hex	filename
 105901	   4276	   5984	 116161	  1c5c1	/usr/libexec/ftpd

$ size work/stage/usr/local/sbin/*
   text	   data	    bss	    dec	    hex	filename
   5469	    656	    112	   6237	   185d	work/stage/usr/local/sbin/makeweb
   7453	    760	    120	   8333	   208d	work/stage/usr/local/sbin/thtpasswd
  81184	   8336	   2280	  91800	  16698	work/stage/usr/local/sbin/thttpd

The sources are distributed under a 2 clause BSD copyright.

Maybe having a HTTP server in base is more useful than a FTP
server, today ...

Regards, STefan