Actual recipe (#5007)

This commit is contained in:
extrowerk
2020-05-25 20:21:03 +02:00
committed by GitHub
parent 88925b78f3
commit ac61d62250

View File

@@ -0,0 +1,34 @@
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
}