1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 19:54:48 +08:00

Compare commits

..

No commits in common. "d601644df290afea0f5c275f03cd834b60fdb395" and "51ae7a6ceb4eb669862b401c43fad90b30c78821" have entirely different histories.

11 changed files with 78 additions and 17 deletions

View File

@ -36,8 +36,8 @@ If you meet any problem during or after the installation, check Troubleshooting
2. Run these command. 2. Run these command.
``` bash ``` bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo apt-key add - curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo apt-key add -
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.list | sudo tee /etc/apt/sources.list.d/zjunet.list curl https://dl.zjuqsc.com/linux/debian/qsc.list | sudo tee /etc/apt/sources.list.d/qsc.list
sudo apt-get update sudo apt-get update
sudo apt-get install zjunet sudo apt-get install zjunet
``` ```
@ -56,9 +56,9 @@ sudo apt-get install zjunet
3. Run these command. 3. Run these command.
```bash ```bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.repo | sudo tee /etc/yum.repos.d/zjunet.repo curl https://dl.zjuqsc.com/linux/yum/qsc.repo | sudo tee /etc/yum.repos.d/qsc.repo
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
sudo yum install zjunet sudo yum install zjunet
``` ```

View File

@ -39,8 +39,8 @@
2. 依次输入并执行下列命令: 2. 依次输入并执行下列命令:
``` bash ``` bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo apt-key add - curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo apt-key add -
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.list | sudo tee /etc/apt/sources.list.d/zjunet.list curl https://dl.zjuqsc.com/linux/debian/qsc.list | sudo tee /etc/apt/sources.list.d/qsc.list
sudo apt-get update sudo apt-get update
sudo apt-get install zjunet sudo apt-get install zjunet
``` ```
@ -59,9 +59,9 @@ sudo apt-get install zjunet
3. 依次输入并执行下列命令: 3. 依次输入并执行下列命令:
```bash ```bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.repo | sudo tee /etc/yum.repos.d/zjunet.repo curl https://dl.zjuqsc.com/linux/yum/qsc.repo | sudo tee /etc/yum.repos.d/qsc.repo
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
sudo yum install zjunet sudo yum install zjunet
``` ```

View File

@ -1 +1 @@
0.3.3-5 0.3.3-4

View File

@ -17,7 +17,7 @@ FILE_SHA1=$(sha1sum $PKGNAME-$PKGVER.tar.gz | cut -f1 -d' ')
FILE_SHA256=$(sha256sum $PKGNAME-$PKGVER.tar.gz | cut -f1 -d' ') FILE_SHA256=$(sha256sum $PKGNAME-$PKGVER.tar.gz | cut -f1 -d' ')
cat > PKGBUILD <<EOF cat > PKGBUILD <<EOF
# Maintainer: Azuk 443 <me@azuk.top> # Maintainer: Wu Yufei <me@tespent.cn>
pkgname=$PKGNAME pkgname=$PKGNAME
pkgver=$PKGVER_NOREL pkgver=$PKGVER_NOREL

View File

@ -37,8 +37,8 @@ Section: net
Priority: optional Priority: optional
Architecture: all Architecture: all
Depends: xl2tpd (>= 1.3.7), curl, dnsutils Depends: xl2tpd (>= 1.3.7), curl, dnsutils
Maintainer: Azuk 443 <me@azuk.top> Maintainer: Tespent <me@tespent.cn>
Description: Command Line Scripts for ZJU Campus Network Description: Command Line Scripts for ZJU
This script provides a VPN / WLAN / NEXTHOP for ZJUer. This script provides a VPN / WLAN / NEXTHOP for ZJUer.
EOF EOF

View File

@ -27,8 +27,8 @@ Section: net
Priority: optional Priority: optional
Architecture: all Architecture: all
Depends: xl2tpd (>= 1.3.7), curl, bind-dig Depends: xl2tpd (>= 1.3.7), curl, bind-dig
Maintainer: Azuk 443 <me@azuk.top> Maintainer: Tespent <me@tespent.cn>
Description: Command Line Scripts for ZJU Campus Network Description: Command Line Scripts for ZJU
This script provides a VPN / WLAN / NEXTHOP for ZJUer. This script provides a VPN / WLAN / NEXTHOP for ZJUer.
EOF EOF

View File

@ -12,7 +12,7 @@ echo "License: GPL" >> zjunet.spec
echo "Group: Applications/Internet" >> zjunet.spec echo "Group: Applications/Internet" >> zjunet.spec
echo "URL: https://github.com/QSCTech/zjunet/" >> zjunet.spec echo "URL: https://github.com/QSCTech/zjunet/" >> zjunet.spec
echo "Vendor: Qiu Shi Chao Website of Zhejiang University" >> zjunet.spec echo "Vendor: Qiu Shi Chao Website of Zhejiang University" >> zjunet.spec
echo "Packager: Azuk 443 <me@azuk.top>" >> zjunet.spec echo "Packager: Tespent <me@tespent.cn>" >> zjunet.spec
echo "Requires: xl2tpd >= 1.3.7, curl, bind-utils" >> zjunet.spec echo "Requires: xl2tpd >= 1.3.7, curl, bind-utils" >> zjunet.spec
echo "BuildRoot: %{_builddir}/%{name}-root" >> zjunet.spec echo "BuildRoot: %{_builddir}/%{name}-root" >> zjunet.spec
echo "Source: %{name}-%{version}.tar.gz" >> zjunet.spec echo "Source: %{name}-%{version}.tar.gz" >> zjunet.spec
@ -41,10 +41,14 @@ for f in *.sh; do
done done
cd .. cd ..
echo 'install -m 644 VERSION $RPM_BUILD_ROOT/usr/share/zjunet/VERSION' >> zjunet.spec echo 'install -m 644 VERSION $RPM_BUILD_ROOT/usr/share/zjunet/VERSION' >> zjunet.spec
echo 'install -m 644 qsc.public.key $RPM_BUILD_ROOT/usr/share/zjunet/qsc.public.key' >> zjunet.spec
echo 'install -m 644 qsc.repo $RPM_BUILD_ROOT/usr/share/zjunet/qsc.repo' >> zjunet.spec
echo "" >> zjunet.spec echo "" >> zjunet.spec
echo "%files" >> zjunet.spec echo "%files" >> zjunet.spec
echo "%defattr(-,root,root)" >> zjunet.spec echo "%defattr(-,root,root)" >> zjunet.spec
echo "/usr/bin/zjunet" >> zjunet.spec echo "/usr/bin/zjunet" >> zjunet.spec
echo "/usr/share/zjunet/qsc.public.key" >> zjunet.spec
echo "/usr/share/zjunet/qsc.repo" >> zjunet.spec
echo "/usr/share/zjunet/zjunet-postinst" >> zjunet.spec echo "/usr/share/zjunet/zjunet-postinst" >> zjunet.spec
echo "/usr/share/zjunet/VERSION" >> zjunet.spec echo "/usr/share/zjunet/VERSION" >> zjunet.spec
cd lib cd lib

3
miscellaneous/qsc.list Normal file
View File

@ -0,0 +1,3 @@
deb http://dl.zjuqsc.com/linux/debian stable main

View File

@ -0,0 +1,30 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
mQENBFTWIjMBCADxVTzmEp6T7pT5MiOwcyNQ/AxWf2xsA2ZDugrNrS3GoWRVyowv
phmgbq7J394cuL/Yw3f03Mw5mmDDEmC6j+FBf63hlLNj/UOeJdCibOSWJd89gbDY
ETUDtWAU+6xlG8gcoi/Jedy+yXwjcD8P8r3xU9pGt6sbJbSUJBzX9ghtEPdygUnn
rFG7jHXcbgnCr/mXcCMD59Y0grQvSW6N9B2vyGSrvYU4wlsBAtfJ93PJsd1bG5Oh
NS0XOCr4HHZO8hXlSdY2wyce3E2Pk+i/tbRJXoaezsRnHnFO0vAIvyouuIZnu5fr
iLIAWlRrErN09UKX4tlcmgWF1NRel3catpT/ABEBAAG0J1FpdSBTaGkgQ2hhbyAo
Q09NUDY2KSA8dGVjaEB6anVxc2MuY29tPokBOA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TRa+lu84qmczrOQ6rKkILUXdHTBaS10rHQbHCa9x8GSIFVs
HExKX5SwV9uwcmHN6WVW8zISWZT9qVcvLOcf1cYRWxAHzxKCy0Y=
=dTq1
-----END PGP PUBLIC KEY BLOCK-----

9
miscellaneous/qsc.repo Normal file
View File

@ -0,0 +1,9 @@
[qsc]
name=Several things for Qiu Shi Chao Website
baseurl=http://dl.zjuqsc.com/linux/yum
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
metadata_expire=30m

View File

@ -1,5 +1,20 @@
#!/bin/sh #!/bin/sh
command -v apt-key 2>&1 >/dev/null && [ -d /etc/apt ] && {
cp /usr/share/zjunet/qsc.list /etc/apt/sources.list.d/qsc.list
chmod 644 /etc/apt/sources.list.d/qsc.list
apt-key add /usr/share/zjunet/qsc.public.key 2>&1 >/dev/null || true
echo "Added apt list."
}
command -v rpm 2>&1 >/dev/null && [ -d /etc/pki/rpm-gpg ] && [ -d /etc/yum.repos.d ] && {
cp /usr/share/zjunet/qsc.public.key /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
chmod 644 /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66 2>&1 >/dev/null || true
cp /usr/share/zjunet/qsc.repo /etc/yum.repos.d/qsc.repo || true
echo "Added yum repo."
}
cat <<BANNER cat <<BANNER
---------------------------------------------------------------------- ----------------------------------------------------------------------