haserl: import from packages, update to latest

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>