freebsd-ports/sysutils/smartmontools
Dmitry Marakasov ff08090776 - Fix update-smart-drivedb when curl is installed
update-smart-drivedb is an utility bundled with smartmontools which
downloads fresh version of smartctl device database from the web.
It is a shell script which tries to use different http file retrieving
programs such as wget, curl, lynx, ftp and fetch. If curl is
installed, it is usually used, however it does't handle HTTP redirect
which database download url causes (arguments needed to handle it
not specified?) and downloads redirection page HTML instead of
actual database. No breakage occurs as the database is verified
before being installed, so it's just not updated, with error:

/usr/local/share/smartmontools/drivedb.h.error: rejected by /usr/local/sbin/smartctl, probably no longer compatible

Patch update-smart-drivedb to only use fetch(1), which is always
available on FreeBSD. The change provides consistent behavior, and
fetch(1) handles redirects correctly out of box, so actual database
is downloaded and successfully installed.

- While here, fix LICENSE and silence mkdir

PR:		207737
Reported by:	everytrash@gmail.com
Approved by:	maintainer timeout (samm@os2.kiev.ua, 3 weeks)
2016-03-29 20:52:11 +00:00
..
files
distinfo
Makefile
pkg-descr
pkg-plist