mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Actual recipe (#5007)
This commit is contained in:
34
net-firewall/hblock/hblock-2.1.6.recipe
Normal file
34
net-firewall/hblock/hblock-2.1.6.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user