summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD3
-rw-r--r--cgproxy.install9
3 files changed, 13 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9d42ef2c2ff..b7ac6305466 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = cgproxy
pkgdesc = A transparent proxy program with cgroup2, like proxychains
pkgver = v3.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/springzfx/cgproxy
+ install = cgproxy.install
arch = x86_64
groups =
license =
diff --git a/PKGBUILD b/PKGBUILD
index 19e1810851c..3128b651dce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fancy Zhang <springzfx@gmail.com>
pkgname=cgproxy
pkgver=v3.7
-pkgrel=1
+pkgrel=2
pkgdesc="A transparent proxy program with cgroup2, like proxychains"
arch=('x86_64')
url="https://github.com/springzfx/cgproxy"
@@ -16,6 +16,7 @@ source=("${pkgname}::git+https://github.com/springzfx/cgproxy#tag=${pkgver}")
md5sums=('SKIP')
backup=('etc/cgproxy.conf')
+install='cgproxy.install'
build(){
cd "$pkgname"
diff --git a/cgproxy.install b/cgproxy.install
new file mode 100644
index 00000000000..ea185a8a591
--- /dev/null
+++ b/cgproxy.install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+post_install(){
+cat <<'DOC'
+ to start service:
+ systemctl enable --now cgproxy.service
+DOC
+}
+