Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New packages: sing geoip & geosite #51326

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions srcpkgs/sing-geoip/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Template file for 'sing-geoip'
pkgname=sing-geoip
version=20240712
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/sagernet/sing-geoip"
short_desc="Geoip database and rule sets for sing-box"
maintainer="hesam-init <hesam.init@gmail.com>"
license="GPL-3.0-or-later, LGPL-3.0-or-later"
homepage="https://github.com/SagerNet/sing-geoip"
changelog="https://github.com/SagerNet/sing-geoip/releases"
distfiles="https://github.com/SagerNet/sing-geoip/archive/refs/tags/${version}.tar.gz"
checksum="17545df533aa2f4d577c01eb3c29969e3cf6ea018ffc3dc250ba5c09ae12dc01"

post_build() {
for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
if [ -f "$f" ] && [ -x "$f" ]; then
NO_SKIP=true vtargetrun "$f"
fi
done
}

do_install() {
vmkdir usr/share/${pkgname}
vmkdir usr/share/${pkgname}/rule-set

for file in *.db; do
vinstall $file 644 usr/share/${pkgname}
done

for file in rule-set/*; do
vinstall $file 644 usr/share/${pkgname}/rule-set
done
}
35 changes: 35 additions & 0 deletions srcpkgs/sing-geosite/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Template file for 'sing-geosite'
pkgname=sing-geosite
version=20240713050854

Check failure on line 3 in srcpkgs/sing-geosite/template

View workflow job for this annotation

GitHub Actions / Lint templates

Template Lint

missing reverts= for downgrade to 20240713050854
hesam-init marked this conversation as resolved.
Show resolved Hide resolved
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/sagernet/sing-geosite"
short_desc="Geosite database and rule sets for sing-box"
maintainer="hesam-init <hesam.init@gmail.com>"
license="GPL-3.0-or-later, LGPL-3.0-or-later"
homepage="https://github.com/SagerNet/sing-geosite"
changelog="https://github.com/SagerNet/sing-geosite/releases"
distfiles="https://github.com/SagerNet/sing-geosite/archive/refs/tags/${version}.tar.gz"
checksum="2913b0d12304caf96a7a204b53028e95ff37215518876594a83ff829930aa6e3"

post_build() {
for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
if [ -f "$f" ] && [ -x "$f" ]; then
NO_SKIP=true vtargetrun "$f"
fi
done
}

do_install() {
vmkdir usr/share/${pkgname}
vmkdir usr/share/${pkgname}/rule-set

for file in *.db; do
vinstall $file 644 usr/share/${pkgname}
done

for file in rule-set/*; do
vinstall $file 644 usr/share/${pkgname}/rule-set
done
}
Loading