Skip to content

Commit

Permalink
Fork
Browse files Browse the repository at this point in the history
  • Loading branch information
h2yk committed Apr 4, 2023
1 parent 2f944d7 commit 1dd0397
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 79 deletions.
26 changes: 13 additions & 13 deletions .SRCINFO
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
61 changes: 32 additions & 29 deletions PKGBUILD
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
}
Expand Down
7 changes: 7 additions & 0 deletions README.md
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. :)
37 changes: 0 additions & 37 deletions aarch64.patch

This file was deleted.

0 comments on commit 1dd0397

Please sign in to comment.