Date: Sun, 31 Jan 2016 15:46:30 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Did pkg drop ftp support? Message-ID: <56AE2C56.4000407@FreeBSD.org> In-Reply-To: <xn0k1ny6cg7ywjt000@news.gmane.org> References: <xn0k1ny6cg7ywjt000@news.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 31/01/2016 14:46, Helmut Schneider wrote: > Hi, >=20 > url: "pkg+ftp://ftp.mysite/pub/FreeBSD/ports/${ABI}" >=20 > worked fine until ~2 weeks ago. Now I get an error message when running= > pkg: >=20 > [helmut@BSDHelmut1064 ~]$ sudo pkg update > pkg: invalid scheme pkg+ftp > pkg: Cannot parse configuration file! > [helmut@BSDHelmut1064 ~]$ >=20 > Was ftp support dropped? No, this has not officially changed that recently. There was a change last November that limited the valid URL schemes in a repo.conf only to the ones originally intended[+]. There never should been a 'pkg+ftp://' URL scheme officially -- if it ever worked, that was a bug. FTP support is still available, but you need URLs of the form: url: "ftp://ftp.mysite/pub/FreeBSD/ports/${ABI}" This implies mirror_type =3D none, ie. that the listed FTP site simply contains the repository with all the various packages available. The 'pkg+http' or 'pkg+https' URL forms are special for when SRV records are used for mirroring, which is a consequence of the requirement in RFC 2616 that only simple hostnames are used for http:// or https:// URLs. If you're using a pkg+http:// or pkg+https:// URL then you must have mirror_type =3D srv. Cheers, Matthew [+] Introduced here: https://github.com/freebsd/pkg/commit/9c2896737d2a5c2505cfb0c568a955c2188= 1bf50 Bug fixed here: https://github.com/freebsd/pkg/commit/833b65e043fa92a3fd6eda8372c70464a44= d8d51 --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWrixcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATVGcP/1Dqma502lvx46P/Ri5VEH0l 0I4S3HsnFj5s2dqz0knPfMsahvBWyKRAkP36nNrA7wno8pvds83KXYvav647wAdB 1qtT4Y1+yDVgf5g31uGmrQDGSYYxA6ECfaFuxPkMg3ZZIPcqOu/wUpCIBcHDSyv5 ktL5tsW1ulA7d1JdQXPp6P1i0WvDiCs+sXsnaUDx7cADfSes517MNAbRV2lQfPNP J0OW7SiR0JO/8LPlXdcQBYgKG/28mNztBnPYLIVi7EA/RoPKsRW8YT9xFIwE1lv4 J12ZpnxiQxeI850W5PcGncsREYJ6HRswbT0iF7mk2GLpMqiwB0bX34Gq2ownysgR LBeXD3Q+jM39prr4Vh7HEWsKhnSE1Rj9ZPO+Zwqzo2AsAo3YBy5KTH/dVQOqcq47 ZRM0UqHp8WOSgeQ/dB0PRjKWOED4P3Ru4C4vUGE3E4mRTvsitXFvYORrMD7XCAo9 jD+4vjyJndXqq3FsiF4uW0vnI+1dn4Yv6Y+CowKtjuOAGs1+LduZIzNXJR4XSmcC gWTk364l5EwFZMpThoy21QxBcPJwWGQwfPX97jcYJ7thF8Lq5S9V7trp6Dk7Niok JooLH0If5IjhXo/0qbhZdywOllWpKNqVX9xNj/MsjoFXpXilSxYeIyhVw2UfoGM0 lFjucZ5punc6Bkzec0QQ =9tXJ -----END PGP SIGNATURE----- --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56AE2C56.4000407>