summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD27
2 files changed, 13 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5d454aa29db..a3d93a63295 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cgproxy
pkgdesc = A transparent proxy program powered by cgroup2 and tproxy
- pkgver = 0.17
- pkgrel = 2
+ pkgver = 0.17.1
+ pkgrel = 1
url = https://github.com/springzfx/cgproxy
install = cgproxy.install
arch = x86_64
@@ -20,7 +20,7 @@ pkgbase = cgproxy
provides = cgproxy
conflicts = cgproxy
backup = etc/cgproxy/config.json
- source = cgproxy::git+https://github.com/springzfx/cgproxy#tag=v0.17
+ source = cgproxy::git+https://github.com/springzfx/cgproxy#tag=v0.17.1
md5sums = SKIP
pkgname = cgproxy
diff --git a/PKGBUILD b/PKGBUILD
index 7b0d5cfd470..dbd49f76311 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fancy Zhang <springzfx@gmail.com>
pkgname=cgproxy
-pkgver=0.17
-pkgrel=2
+pkgver=0.17.1
+pkgrel=1
pkgdesc="A transparent proxy program powered by cgroup2 and tproxy"
arch=('x86_64')
url="https://github.com/springzfx/cgproxy"
@@ -19,24 +19,17 @@ backup=('etc/cgproxy/config.json')
install='cgproxy.install'
build(){
- cd ${srcdir}/${pkgname}
- # init submodule
- # git submodule init
- # git submodule update
-
- # build libexecsnoop.so
- # cd "${srcdir}/${pkgname}/execsnoop-libbpf"
- # make clean
- # make CFLAGS="-O2 -Wall" libexecsnoop.so
-
- # build main binary
- cd "${srcdir}/${pkgname}"
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. && make
+ mkdir -p "${srcdir}/${pkgname}/build"
+ cd "${srcdir}/${pkgname}/build"
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -Dbuild_execsnoop_dl=ON \
+ -Dbuild_static=OFF \
+ ..
+ make
}
package_cgproxy(){
cd "${srcdir}/$pkgname"/build
make DESTDIR=$pkgdir install
- # cd "${srcdir}/${pkgname}/execsnoop-libbpf"
- # make DESTDIR=$pkgdir install
}