Date: Monday, March 13, 2023 @ 20:52:36
  Author: felixonmars
Revision: 1419774

upgpkg: udp2raw 20230206.0-1

Added:
  udp2raw/trunk/udp2raw.install
    (from rev 1419773, udp2raw/trunk/udp2raw-tunnel.install)
Modified:
  udp2raw/trunk/PKGBUILD
Deleted:
  udp2raw/trunk/udp2raw-tunnel.install

------------------------+
 PKGBUILD               |   33 +++++++++++++++++++--------------
 udp2raw-tunnel.install |    7 -------
 udp2raw.install        |    7 +++++++
 3 files changed, 26 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-13 20:46:19 UTC (rev 1419773)
+++ PKGBUILD    2023-03-13 20:52:36 UTC (rev 1419774)
@@ -1,32 +1,37 @@
 # Maintainer: Felix Yan <[email protected]>
 # Contributor: Peter Cai <peter at typeblog dot net>
 
-pkgname=udp2raw-tunnel
+pkgname=udp2raw
 pkgver=20230206.0
+_commit=e5ecd33ec4c25d499a14213a5d1dbd5d21e0dd63
 pkgrel=1
-pkgdesc='An Encrypted, Anti-Replay, Multiplexed UdP Tunnel, tunnels udp 
traffic through fake-tcp or icmp by using raw socket'
-url='https://github.com/wangyu-/udp2raw-tunnel'
+pkgdesc='A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP 
Traffic by using Raw Socket'
+url='https://github.com/wangyu-/udp2raw'
 arch=('x86_64')
 depends=('iptables')
+makedepends=('git')
+conflicts=('udp2raw-tunnel')
+provides=('udp2raw-tunnel')
+replaces=('udp2raw-tunnel')
 license=('MIT')
-install=udp2raw-tunnel.install
-source=("$pkgname-$pkgver.tar.gz::https://github.com/wangyu-/udp2raw-tunnel/archive/$pkgver.tar.gz";
+install=udp2raw.install
+source=("git+https://github.com/wangyu-/udp2raw.git#commit=$_commit";
         "udp2raw_script.sh"
         "[email protected]")
-sha512sums=('21a30ad846ae9e5ab87e5cf01c8f74cc396ac1e6a311a9b846440ec3b10a6d5d1e4a80ef860bec77b798ce1b648c0d92f2dac39527ae9942e5327fe7af7b0482'
+sha512sums=('SKIP'
             
'bd58325188f7a4d143d97ea6dfb0b8f2f86f6b82b8cb7496478fb3a9c425d42044db91bd7f554ed95443ce11bad288d48aad1f76404e3efec68ecbff8c56820f'
             
'f1e2831c02163646c26601896a617e07704dc1b6324fc73f4ea576959bd33d70425472d42333ad8b7f210bd8761a83bf08db40987b016067f01590703982ae42')
 
 build() {
-  cd $pkgname-$pkgver
-  make fast
+  cd udp2raw
+  make OPT="$CXXFLAGS $LDFLAGS" fast
 }
 
 package() {
-  cd $pkgname-$pkgver
-  install -Dm755 udp2raw "$pkgdir"/usr/bin/udp2raw
-  install -Dm644 example.conf "$pkgdir"/etc/udp2raw/example.conf
-  install -Dm755 "$srcdir"/udp2raw_script.sh 
"$pkgdir"/usr/lib/udp2raw/udp2raw_script.sh
-  install -Dm644 "$srcdir"/[email protected] 
"$pkgdir"/usr/lib/systemd/system/[email protected]
-  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+  cd udp2raw
+  install -Dm755 udp2raw -t "$pkgdir"/usr/bin/
+  install -Dm644 example.conf -t "$pkgdir"/etc/udp2raw/
+  install -Dm755 "$srcdir"/udp2raw_script.sh -t "$pkgdir"/usr/lib/udp2raw/
+  install -Dm644 "$srcdir"/[email protected] -t 
"$pkgdir"/usr/lib/systemd/system/
+  install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Deleted: udp2raw-tunnel.install
===================================================================
--- udp2raw-tunnel.install      2023-03-13 20:46:19 UTC (rev 1419773)
+++ udp2raw-tunnel.install      2023-03-13 20:52:36 UTC (rev 1419774)
@@ -1,7 +0,0 @@
-post_install() {
-    setcap cap_net_raw,cap_net_admin+ep usr/bin/udp2raw  2>/dev/null
-}
-
-post_upgrade() {
-    post_install "$1"
-}

Copied: udp2raw/trunk/udp2raw.install (from rev 1419773, 
udp2raw/trunk/udp2raw-tunnel.install)
===================================================================
--- udp2raw.install                             (rev 0)
+++ udp2raw.install     2023-03-13 20:52:36 UTC (rev 1419774)
@@ -0,0 +1,7 @@
+post_install() {
+    setcap cap_net_raw,cap_net_admin+ep usr/bin/udp2raw  2>/dev/null
+}
+
+post_upgrade() {
+    post_install "$1"
+}

Reply via email to