Created
November 12, 2021 10:20
-
-
Save KiruyaMomochi/dab315b4dfcd04af735b4bc93f1544f8 to your computer and use it in GitHub Desktop.
Build frp deb package
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
#!/bin/sh | |
TAB="$(printf '\t')" | |
curl -L 'https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_amd64.tar.gz' -o frp-0.38.0.tar.gz | |
debmake -a frp-0.38.0.tar.gz | |
cd frp-0.38.0 | |
sed 's/^\tdh \$@$/\tdh $@ --without autoreconf/g' debian/rules | |
tee -a debian/rules >> /dev/null << EOF | |
override_dh_auto_install: | |
${TAB}install -Dm 0755 frpc frps -t debian/frp/usr/bin | |
${TAB}install -Dm 0644 frpc.ini frpc_full.ini -t debian/frp/etc/frp | |
${TAB}install -Dm 0644 frps.ini frps_full.ini -t debian/frp/etc/frp | |
${TAB}install -Dm 0644 systemd/frpc.service systemd/frpc@.service -t debian/frp/lib/systemd/system | |
${TAB}install -Dm 0644 systemd/frps.service systemd/frps@.service -t debian/frp/lib/systemd/system | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nicely done