-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Maintainer: Fancy Zhang <[email protected]> | ||
pkgname=cgproxy-git | ||
pkgver=v3.8.r1.gc0668fd | ||
pkgrel=1 | ||
pkgdesc="A transparent proxy program with cgroup2, like proxychains" | ||
arch=('x86_64') | ||
url="https://github.com/springzfx/cgproxy" | ||
license=('') | ||
groups=('') | ||
makedepends=('cmake') | ||
depends=('systemd') | ||
provides=('cgproxy') | ||
conflicts=('cgproxy') | ||
|
||
curr_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
source=("${pkgname}::git+file://${curr_dir}/../.git") | ||
# source=("${pkgname}::git+file:///home/fancy/workspace/cgproxy/.git") | ||
md5sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "$pkgname" | ||
( set -o pipefail | ||
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || | ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
) | ||
} | ||
|
||
backup=('etc/cgproxy.conf') | ||
install="cgproxy.install" | ||
|
||
build(){ | ||
cd "$pkgname" | ||
mkdir -p build && cd build && cmake .. && make | ||
} | ||
|
||
package_cgproxy-git(){ | ||
cd "$pkgname"/build | ||
make DESTDIR=$pkgdir install | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
post_install(){ | ||
cat <<'DOC' | ||
to start service: | ||
systemctl enable --now cgproxy.service | ||
DOC | ||
} |