SUMMARY="Host file based adblocker with automatic update functionality" DESCRIPTION="This POSIX-compliant shell script, designed for Unix-like \ systems, gets a list of domains that serve ads, trhblocking scripts and malware \ from multiple sources and creates a hosts file (alternative formats are also \ supported) that prevents your system from connecting to them." HOMEPAGE="https://github.com/hectorm/hblock" COPYRIGHT="2020 Héctor Molinero Fernández" LICENSE="MIT" REVISION="1" SOURCE_URI="https://github.com/hectorm/hblock/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="47fb10ac91b54ec41d1880184eb683c7bfc62f74b19c45ec2044745f8c58f139" ARCHITECTURES="any" PROVIDES=" hblock = $portVersion cmd:hblock " REQUIRES=" haiku " PATCH() { # Replacing hardcoded path for the hosts file hostsfile="`finddir B_SYSTEM_SETTINGS_DIRECTORY`/network/hosts" sed -i 's,/etc/hosts',$hostsfile, hblock } INSTALL() { mkdir -p $binDir cp hblock $binDir }