summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 10 insertions, 17 deletions
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
}