Skip to content

Commit 066d182

Browse files
committed
addpkg: fakesip
1 parent 317c045 commit 066d182

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

archlinuxcn/fakesip/PKGBUILD

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Maintainer: DeepChirp <[email protected]>
2+
# Contributor: bgme <[email protected]>
3+
4+
pkgname=fakesip
5+
_reponame=FakeSIP
6+
pkgver=0.9.1
7+
pkgrel=1
8+
pkgdesc="Disguise your UDP traffic as SIP protocol to evade DPI detection."
9+
arch=('x86_64' 'armv7h' 'aarch64')
10+
_author=MikeWang000000
11+
url="https://github.com/${_author}/${_reponame}"
12+
license=('GPL-3.0-only')
13+
depends=('glibc' 'libmnl' 'libnfnetlink' 'libnetfilter_queue' 'nftables')
14+
makedepends=('make')
15+
conflicts=("${pkgname%}-git" "${pkgname%}-bin")
16+
install=${pkgname}.install
17+
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
18+
"${pkgname}.service"
19+
"${pkgname}.sysusers"
20+
"${pkgname}.conf")
21+
backup=("etc/conf.d/${pkgname}")
22+
sha256sums=('1216d9649fb69e5a1deaf48c3d48c26f9418bd18ffe15f44b0cf33039dbb3478'
23+
'9e935f3a9e274154ad07d3ded0f581b3934f5d91692c6323a9f1500591ec2658'
24+
'2d8a43aa73650c605ad1e88d997b46f61ea20b6743f483d3a1f1ebcbe577a4c0'
25+
'd9c5ed0542978335e56cfa446c83d318b7b2268ba4fe0ef583caeb252e3fdafe')
26+
27+
build() {
28+
cd "${srcdir}/${_reponame}-${pkgver}"
29+
make
30+
}
31+
32+
package() {
33+
install -dm755 "${pkgdir}/usr/bin"
34+
install -dm755 "${pkgdir}/usr/lib/systemd/system"
35+
install -dm755 "${pkgdir}/etc/conf.d"
36+
37+
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/"
38+
install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
39+
install -Dm644 "${pkgname}.conf" "${pkgdir}/etc/conf.d/${pkgname}"
40+
41+
cd "${srcdir}/${_reponame}-${pkgver}"
42+
43+
install -Dm755 build/fakesip "${pkgdir}/usr/bin/${pkgname}"
44+
install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
45+
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
46+
}

archlinuxcn/fakesip/fakesip.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fakesip command line args
2+
# Adjust according to your environment.
3+
# Do NOT include the "-d" option when running under systemd.
4+
FAKESIP_ARGS="-a"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
post_install() {
2+
echo 'Edit /etc/conf.d/fakesip before enabling and starting the fakesip.service'
3+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=FakeSIP UDP disguise daemon
3+
After=network.target
4+
5+
[Service]
6+
EnvironmentFile=-/etc/conf.d/fakesip
7+
ExecStart=/usr/bin/fakesip $FAKESIP_ARGS
8+
User=fakesip
9+
AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_NICE
10+
CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_NICE
11+
NoNewPrivileges=yes
12+
Restart=on-abort
13+
14+
[Install]
15+
WantedBy=multi-user.target
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
u fakesip - "FakeSIP Service" - -

archlinuxcn/fakesip/lilac.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
maintainers:
2+
- github: DeepChirp
3+
4+
5+
pre_build_script: update_pkgver_and_pkgrel(_G.newver)
6+
post_build_script: |
7+
git_pkgbuild_commit()
8+
update_aur_repo()
9+
10+
update_on:
11+
- source: github
12+
github: MikeWang000000/FakeSIP
13+
use_latest_release: true

0 commit comments

Comments
 (0)