-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
52 additions
and
79 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
pkgbase = softethervpn | ||
pkgdesc = Multi-protocol VPN Program from University of Tsukuba | ||
pkgver = v4.38_9760 | ||
pkgrel = 2 | ||
pkgbase = softethervpn-de-git | ||
pkgdesc = Multi-protocol VPN Program from University of Tsukuba - Developer Edition | ||
pkgver = r1799.22c602f6 | ||
pkgrel = 1 | ||
url = https://www.softether.org/ | ||
arch = i686 | ||
arch = x86_64 | ||
arch = aarch64 | ||
arch = armv7h | ||
arch = any | ||
license = Apache | ||
makedepends = git | ||
makedepends = cmake | ||
depends = bash | ||
depends = openssl | ||
depends = zlib | ||
source = https://www.softether-download.com/files/softether/v4.38-9760-rtm-2021.08.17-tree/Source_Code/softether-src-v4.38-9760-rtm.tar.gz | ||
source = aarch64.patch | ||
depends = libsodium | ||
provides = softethervpn | ||
conflicts = softethervpn | ||
source = softethervpn-de-git::git+https://github.com/SoftEtherVPN/SoftEtherVPN.git | ||
source = softethervpn-bridge.service | ||
source = softethervpn-client.service | ||
source = softethervpn-server.service | ||
md5sums = 8df486ba22fdb14212c453c7211587a8 | ||
md5sums = 8b92f69f9d8d852a3739d0e48bad0454 | ||
md5sums = SKIP | ||
md5sums = 1d54c0065ae8947bd8455b9e2050c1af | ||
md5sums = a1134fea991e6e00dc4910b1be16dc73 | ||
md5sums = b54b4f68d56555ddfffc50c2c399624f | ||
|
||
pkgname = softethervpn | ||
pkgname = softethervpn-de-git |
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 |
---|---|---|
@@ -1,56 +1,59 @@ | ||
# Maintainer: Tun Win Naing <twnaing(at)outlook(dot)com> | ||
# Maintainer: Jonathan Liu <[email protected]> | ||
pkgname=softethervpn | ||
pkgver=v4.38_9760 | ||
pkgrel=2 | ||
pkgdesc="Multi-protocol VPN Program from University of Tsukuba" | ||
arch=('i686' 'x86_64' 'aarch64' 'armv7h') | ||
# Maintainer: hayabusa2yk <me(at)h2yk(dot)dev> | ||
# Contributor: Tun Win Naing <twnaing(at)outlook(dot)com> | ||
# Contributor: Jonathan Liu <[email protected]> | ||
pkgname=softethervpn-de-git | ||
pkgver=r1799.22c602f6 | ||
pkgrel=1 | ||
pkgdesc="Multi-protocol VPN Program from University of Tsukuba - Developer Edition" | ||
arch=('any') | ||
url="https://www.softether.org/" | ||
license=('Apache') | ||
depends=('bash' 'openssl' 'zlib') | ||
source=("https://www.softether-download.com/files/softether/${pkgver//_/-}-rtm-2021.08.17-tree/Source_Code/softether-src-${pkgver//_/-}-rtm.tar.gz" | ||
'aarch64.patch' | ||
depends=('bash' 'openssl' 'zlib' 'libsodium') | ||
makedepends=('git' 'cmake') | ||
conflicts=('softethervpn') | ||
provides=('softethervpn') | ||
source=("${pkgname}::git+https://github.com/SoftEtherVPN/SoftEtherVPN.git" | ||
'softethervpn-bridge.service' | ||
'softethervpn-client.service' | ||
'softethervpn-server.service') | ||
md5sums=('8df486ba22fdb14212c453c7211587a8' | ||
'8b92f69f9d8d852a3739d0e48bad0454' | ||
md5sums=('SKIP' | ||
'1d54c0065ae8947bd8455b9e2050c1af' | ||
'a1134fea991e6e00dc4910b1be16dc73' | ||
'b54b4f68d56555ddfffc50c2c399624f') | ||
|
||
pkgver() { | ||
cd "$pkgname" | ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
} | ||
|
||
build(){ | ||
cd "${srcdir}/${pkgver//_/-}" | ||
patch -Np1 -i "${srcdir}/aarch64.patch" | ||
|
||
if [ "${CARCH}" == "i686" ]; then | ||
cp src/makefiles/linux_32bit.mak Makefile | ||
elif [ "${CARCH}" == "x86_64" ]; then | ||
cp src/makefiles/linux_64bit.mak Makefile | ||
elif [ "${CARCH}" == "aarch64" ]; then | ||
cp src/makefiles/linux_64bit.mak Makefile | ||
elif [ "${CARCH}" == "armv7h" ]; then | ||
cp src/makefiles/linux_32bit.mak Makefile | ||
fi | ||
|
||
make | ||
cd "${srcdir}/${pkgname}" | ||
|
||
git submodule update --init --recursive | ||
./configure | ||
make -C build | ||
} | ||
|
||
package(){ | ||
cd "${srcdir}/${pkgver//_/-}" | ||
cd "${srcdir}/${pkgname}" | ||
make -C build preinstall | ||
|
||
install -Dm444 bin/vpnserver/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/hamcore.se2 | ||
install -Dm444 build/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/hamcore.se2 | ||
install -d "${pkgdir}"/usr/bin | ||
|
||
for inst in vpnclient vpnserver vpnbridge vpncmd; do | ||
install -Dm755 bin/${inst}/${inst} "${pkgdir}"/usr/lib/softethervpn/${inst}/${inst} | ||
install -Dm755 build/${inst} "${pkgdir}"/usr/lib/softethervpn/${inst}/${inst} | ||
ln -s /usr/lib/softethervpn/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/${inst}/hamcore.se2 | ||
echo "#!/bin/sh" > "${pkgdir}"/usr/bin/${inst} | ||
echo /usr/lib/softethervpn/${inst}/${inst} '"$@"' >> "${pkgdir}"/usr/bin/${inst} | ||
echo 'exit $?' >> "${pkgdir}"/usr/bin/${inst} | ||
chmod 755 "${pkgdir}"/usr/bin/${inst} | ||
done | ||
|
||
for inst in libcedar.so libmayaqua.so; do | ||
install -Dm755 build/${inst} "${pkgdir}"/usr/lib/${inst} | ||
done | ||
|
||
install -d "${pkgdir}"/usr/lib/systemd/system | ||
install -Dm644 "${srcdir}"/*.service "${pkgdir}"/usr/lib/systemd/system | ||
} | ||
|
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,7 @@ | ||
# softethervpn-de-git | ||
|
||
Unofficial AUR package for the softethervpn developer edition. | ||
|
||
## Disclaimer | ||
|
||
This is unofficial package script, and made just for me. don't send any bug reports related to this package to original authors. :) |
This file was deleted.
Oops, something went wrong.