summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfancy2020-04-22 04:21:35 +0800
committerfancy2020-04-22 04:21:35 +0800
commit497006df0208701430741f7d71ef6c3c251953e2 (patch)
tree144e02cfd11f951775ccf156f9da3f888ee5fb00
downloadaur-497006df0208701430741f7d71ef6c3c251953e2.tar.gz
first commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f45d75936cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cgproxy
+ pkgdesc = A transparent proxy program with cgroup2, like proxychains
+ pkgver = 1.0
+ pkgrel = 1
+ arch = x86_64
+ groups =
+ license =
+ makedepends = cmake
+ options = !strip
+ options = !emptydirs
+ backup = etc/cgproxy.conf
+ source_x86_64 = https://github.com/springzfx/cgproxy/archive/v1.0.tar.gz
+ md5sums_x86_64 = 9697f8eab3b441bd7b066f948c2c2bf8
+
+pkgname = cgproxy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1abf84ea8c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Fancy Zhang <springzfx@gmail.com>
+pkgbase=cgproxy
+pkgname=cgproxy
+pkgver=1.0
+pkgrel=1
+pkgdesc="A transparent proxy program with cgroup2, like proxychains"
+arch=('x86_64')
+url=""
+license=('')
+groups=('')
+makedepends=('cmake')
+depends=()
+options=('!strip' '!emptydirs')
+# source_x86_64=("cgproxy.tar.gz")
+source_x86_64=("https://github.com/springzfx/cgproxy/archive/v$pkgver.tar.gz")
+md5sums_x86_64=('9697f8eab3b441bd7b066f948c2c2bf8')
+
+backup=('etc/cgproxy.conf')
+
+build(){
+ cd ${srcdir}/$pkgname-$pkgver
+ mkdir -p build && cd build && cmake .. && make
+}
+package_cgproxy(){
+ cd ${srcdir}/$pkgname-$pkgver/build
+ make DESTDIR=$pkgdir install
+}
+