Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New packages: sing geoip & geosite
@ 2024-07-18 15:35 hesam-init
  2024-07-18 23:57 ` [PR REVIEW] " sgn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hesam-init @ 2024-07-18 15:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

There is a new pull request by hesam-init against master on the void-packages repository

https://github.com/void-land/void-packages master
https://github.com/void-linux/void-packages/pull/51326

New packages: sing geoip & geosite
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/51326.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-51326.patch --]
[-- Type: text/x-diff, Size: 2912 bytes --]

From e356800e28feac85c5c14fcbdb3b0492a574a006 Mon Sep 17 00:00:00 2001
From: hesam-init <hesam.init@gmail.com>
Date: Thu, 18 Jul 2024 19:03:38 +0330
Subject: [PATCH] New packages: sing geoip & geosite

---
 srcpkgs/sing-geoip/template   | 35 +++++++++++++++++++++++++++++++++++
 srcpkgs/sing-geosite/template | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/sing-geoip/template
 create mode 100644 srcpkgs/sing-geosite/template

diff --git a/srcpkgs/sing-geoip/template b/srcpkgs/sing-geoip/template
new file mode 100644
index 00000000000000..7fc1c28cb613fe
--- /dev/null
+++ b/srcpkgs/sing-geoip/template
@@ -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
+}
diff --git a/srcpkgs/sing-geosite/template b/srcpkgs/sing-geosite/template
new file mode 100644
index 00000000000000..120b6629eb5372
--- /dev/null
+++ b/srcpkgs/sing-geosite/template
@@ -0,0 +1,35 @@
+# Template file for 'sing-geosite'
+pkgname=sing-geosite
+version=20240713050854
+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
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-29 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-18 15:35 [PR PATCH] New packages: sing geoip & geosite hesam-init
2024-07-18 23:57 ` [PR REVIEW] " sgn
2024-07-19 11:13 ` [PR PATCH] [Updated] " hesam-init
2024-07-19 11:18 ` [PR REVIEW] " hesam-init
2024-09-09 10:24 ` hesam-init
2024-10-29 15:04 ` [PR PATCH] [Updated] " hesam-init
2024-10-29 15:05 ` [PR PATCH] [Closed]: " void-land
2024-10-29 15:07 ` hesam-init

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).