commit 1730ca8e03ee95ffe08e7b6863db0412984fafd2 Author: zj <1052308357@qq.com> Date: Wed Dec 24 16:21:29 2025 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..453792e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/*.pkg.tar.zst +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5e0b757 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: zj <1052308357@qq.com> + +pkgname=easytier-yuyujing-config +pkgver=2.4.5 +pkgrel=1 +pkgdesc="easytier yuyujing.cn." +arch=('x86_64') +url="https://yuyujing.cn" +license=('null') + +depends=('easytier-core') + +source=("easytier.service") + +sha256sums=('09bc678f2bece0f5fcd2d362f810526d6800853ac227a69b66eba372929fcdb6') + +install="${pkgname}.install" + +prepare() { + cd "${srcdir}" +} + +package() { + + install -d "${pkgdir}/etc/systemd/system" + install -m644 "${srcdir}/easytier.service" "${pkgdir}/etc/systemd/system/easytier.service" + +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac5263f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# easytier-linux-x86_64-v2.4.5.zip \ No newline at end of file diff --git a/easytier-yuyujing-config.install b/easytier-yuyujing-config.install new file mode 100644 index 0000000..68d3026 --- /dev/null +++ b/easytier-yuyujing-config.install @@ -0,0 +1,15 @@ + +# post_install: 在软件包安装后执行 +post_install() { + echo "start easytier.service" + systemctl start easytier.service + systemctl enable easytier.service +} + +# pre_remove: 在软件包卸载前执行 +pre_remove() { + echo "Stopping and disabling easytier.service..." + systemctl stop easytier.service + systemctl disable easytier.service +} + diff --git a/easytier.service b/easytier.service new file mode 100644 index 0000000..3788dae --- /dev/null +++ b/easytier.service @@ -0,0 +1,16 @@ +[Unit] +Description=A simple, decentralized mesh VPN with WireGuard support. +After=network.target + +[Service] +TimeoutStartSec=10s +Type=exec +ExecStart=/usr/bin/easytier-core -w udp://yuyujing.cn:22020/zjing +LimitNPROC=500 +LimitNOFILE=1000000 +Restart=on-failure +RestartSec=5s +WorkingDirectory=/var/lib/easytier + +[Install] +WantedBy=multi-user.target diff --git a/up+.sh b/up+.sh new file mode 100755 index 0000000..1a6d204 --- /dev/null +++ b/up+.sh @@ -0,0 +1,68 @@ +#!/bin/bash +#set -e +################################################################################################################## +# Author : Erik Dubois +# Website : https://www.erikdubois.be +# Website : https://www.alci.online +# Website : https://www.ariser.eu +# Website : https://www.arcolinux.info +# Website : https://www.arcolinux.com +# Website : https://www.arcolinuxd.com +# Website : https://www.arcolinuxb.com +# Website : https://www.arcolinuxiso.com +# Website : https://www.arcolinuxforum.com +################################################################################################################## +# +# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK. +# +################################################################################################################## +#tput setaf 0 = black +#tput setaf 1 = red +#tput setaf 2 = green +#tput setaf 3 = yellow +#tput setaf 4 = dark blue +#tput setaf 5 = purple +#tput setaf 6 = cyan +#tput setaf 7 = gray +#tput setaf 8 = light blue +################################################################################################################## + +# reset - commit your changes or stash them before you merge +# git reset --hard - personal alias - grh + +echo "Deleting the work folder if one exists" +[ -d work ] && rm -rf work + +# checking if I have the latest files from github +echo "Checking for newer files online first" +git pull + +# Below command will backup everything inside the project folder +git add --all . + +# Give a comment to the commit if you want +echo "####################################" +echo "Write your commit comment!" +echo "####################################" + +read input + +# Committing to the local repository with a message containing the time details and commit text + +git commit -m "$input" + +# Push the local files to github + +if grep -q main .git/config; then + echo "Using main" + git push -u origin main +fi + +if grep -q master .git/config; then + echo "Using master" + git push -u origin master +fi + +echo "################################################################" +echo "################### Git Push Done ######################" +echo "################################################################"