Date: Monday, August 31, 2020 @ 13:15:50
  Author: felixonmars
Revision: 694158

archrelease: copy trunk to community-x86_64

Added:
  udp2raw-tunnel/repos/community-x86_64/PKGBUILD
    (from rev 694157, udp2raw-tunnel/trunk/PKGBUILD)
  udp2raw-tunnel/repos/community-x86_64/udp2raw-tunnel.install
    (from rev 694157, udp2raw-tunnel/trunk/udp2raw-tunnel.install)
  udp2raw-tunnel/repos/community-x86_64/udp2raw@.service
    (from rev 694157, udp2raw-tunnel/trunk/udp2raw@.service)
  udp2raw-tunnel/repos/community-x86_64/udp2raw_script.sh
    (from rev 694157, udp2raw-tunnel/trunk/udp2raw_script.sh)
Deleted:
  udp2raw-tunnel/repos/community-x86_64/PKGBUILD
  udp2raw-tunnel/repos/community-x86_64/udp2raw-tunnel.install
  udp2raw-tunnel/repos/community-x86_64/udp2raw@.service
  udp2raw-tunnel/repos/community-x86_64/udp2raw_script.sh

------------------------+
 PKGBUILD               |   64 +++++++++++++++++++++++------------------------
 udp2raw-tunnel.install |   14 +++++-----
 udp2raw@.service       |   36 +++++++++++++-------------
 udp2raw_script.sh      |   34 ++++++++++++------------
 4 files changed, 74 insertions(+), 74 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2020-08-31 13:15:26 UTC (rev 694157)
+++ PKGBUILD    2020-08-31 13:15:50 UTC (rev 694158)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-# Contributor: Peter Cai <peter at typeblog dot net>
-
-pkgname=udp2raw-tunnel
-pkgver=20181113.0
-pkgrel=3
-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'
-arch=('x86_64' 'i686')
-depends=('iptables')
-license=('MIT')
-install=udp2raw-tunnel.install
-source=("$pkgname-$pkgver.tar.gz::https://github.com/wangyu-/udp2raw-tunnel/archive/$pkgver.tar.gz";
-        "udp2raw_script.sh"
-        "udp2raw@.service")
-sha512sums=('92b1f3bcfdf3eb9c20db94d1f0e47cde1784691e5058920095830c98ca9d6ac22e178b820b0c6ebc4d6562362864e94e3d08e3f77d910634c4813f240b554a1a'
-            
'bd58325188f7a4d143d97ea6dfb0b8f2f86f6b82b8cb7496478fb3a9c425d42044db91bd7f554ed95443ce11bad288d48aad1f76404e3efec68ecbff8c56820f'
-            
'f1e2831c02163646c26601896a617e07704dc1b6324fc73f4ea576959bd33d70425472d42333ad8b7f210bd8761a83bf08db40987b016067f01590703982ae42')
-
-build() {
-  cd $pkgname-$pkgver
-  make 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"/udp2raw@.service 
"$pkgdir"/usr/lib/systemd/system/udp2raw@.service
-  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}

Copied: udp2raw-tunnel/repos/community-x86_64/PKGBUILD (from rev 694157, 
udp2raw-tunnel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2020-08-31 13:15:50 UTC (rev 694158)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Peter Cai <peter at typeblog dot net>
+
+pkgname=udp2raw-tunnel
+pkgver=20200715.0
+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'
+arch=('x86_64' 'i686')
+depends=('iptables')
+license=('MIT')
+install=udp2raw-tunnel.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/wangyu-/udp2raw-tunnel/archive/$pkgver.tar.gz";
+        "udp2raw_script.sh"
+        "udp2raw@.service")
+sha512sums=('bb6a71dc87daf8921a6a11bc688bc6a680017f9b1c03d4d229bc2f9229cbea7ccf1093c0c61e87c18acc37b91e1fb7b8cb61948087eaa8ad36cabcc5bc4b6e98'
+            
'bd58325188f7a4d143d97ea6dfb0b8f2f86f6b82b8cb7496478fb3a9c425d42044db91bd7f554ed95443ce11bad288d48aad1f76404e3efec68ecbff8c56820f'
+            
'f1e2831c02163646c26601896a617e07704dc1b6324fc73f4ea576959bd33d70425472d42333ad8b7f210bd8761a83bf08db40987b016067f01590703982ae42')
+
+build() {
+  cd $pkgname-$pkgver
+  make 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"/udp2raw@.service 
"$pkgdir"/usr/lib/systemd/system/udp2raw@.service
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}

Deleted: udp2raw-tunnel.install
===================================================================
--- udp2raw-tunnel.install      2020-08-31 13:15:26 UTC (rev 694157)
+++ udp2raw-tunnel.install      2020-08-31 13:15:50 UTC (rev 694158)
@@ -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-tunnel/repos/community-x86_64/udp2raw-tunnel.install (from rev 
694157, udp2raw-tunnel/trunk/udp2raw-tunnel.install)
===================================================================
--- udp2raw-tunnel.install                              (rev 0)
+++ udp2raw-tunnel.install      2020-08-31 13:15:50 UTC (rev 694158)
@@ -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"
+}

Deleted: udp2raw@.service
===================================================================
--- udp2raw@.service    2020-08-31 13:15:26 UTC (rev 694157)
+++ udp2raw@.service    2020-08-31 13:15:50 UTC (rev 694158)
@@ -1,18 +0,0 @@
-[Unit]
-Description=UDP over TCP/ICMP/UDP tunnel
-After=network-online.target
-
-[Service]
-User=nobody
-Type=simple
-PermissionsStartOnly=true
-CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
-ExecStartPre=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf insert
-ExecStart=/usr/bin/udp2raw --conf-file /etc/udp2raw/%i.conf
-ExecStopPost=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf delete
-Restart=always
-RestartSec=30
-StartLimitBurst=10
-
-[Install]
-WantedBy=multi-user.target

Copied: udp2raw-tunnel/repos/community-x86_64/udp2raw@.service (from rev 
694157, udp2raw-tunnel/trunk/udp2raw@.service)
===================================================================
--- udp2raw@.service                            (rev 0)
+++ udp2raw@.service    2020-08-31 13:15:50 UTC (rev 694158)
@@ -0,0 +1,18 @@
+[Unit]
+Description=UDP over TCP/ICMP/UDP tunnel
+After=network-online.target
+
+[Service]
+User=nobody
+Type=simple
+PermissionsStartOnly=true
+CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
+ExecStartPre=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf insert
+ExecStart=/usr/bin/udp2raw --conf-file /etc/udp2raw/%i.conf
+ExecStopPost=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf delete
+Restart=always
+RestartSec=30
+StartLimitBurst=10
+
+[Install]
+WantedBy=multi-user.target

Deleted: udp2raw_script.sh
===================================================================
--- udp2raw_script.sh   2020-08-31 13:15:26 UTC (rev 694157)
+++ udp2raw_script.sh   2020-08-31 13:15:50 UTC (rev 694158)
@@ -1,17 +0,0 @@
-#!/bin/bash
-CONF_FILE="$1"
-TARGET="$2"
-RULE=`/sbin/su -s /bin/bash nobody -c "/usr/bin/udp2raw -g --conf-file 
$CONF_FILE"`
-
-if [[ "$RULE" =~ ^(.*?)iptables\ \-I\ (.*?)\ \-j\ DROP(.*?)$ ]]; then
-  RULE="${BASH_REMATCH[2]}"
-else
-  echo "Malformed output"
-  exit 1
-fi
-
-if [[ "$TARGET" == 'insert' ]]; then
-  /usr/bin/iptables -I $RULE -j DROP || exit 1
-elif [[ "$TARGET" == 'delete' ]]; then
-  /usr/bin/iptables -D $RULE -j DROP || exit 1
-fi

Copied: udp2raw-tunnel/repos/community-x86_64/udp2raw_script.sh (from rev 
694157, udp2raw-tunnel/trunk/udp2raw_script.sh)
===================================================================
--- udp2raw_script.sh                           (rev 0)
+++ udp2raw_script.sh   2020-08-31 13:15:50 UTC (rev 694158)
@@ -0,0 +1,17 @@
+#!/bin/bash
+CONF_FILE="$1"
+TARGET="$2"
+RULE=`/sbin/su -s /bin/bash nobody -c "/usr/bin/udp2raw -g --conf-file 
$CONF_FILE"`
+
+if [[ "$RULE" =~ ^(.*?)iptables\ \-I\ (.*?)\ \-j\ DROP(.*?)$ ]]; then
+  RULE="${BASH_REMATCH[2]}"
+else
+  echo "Malformed output"
+  exit 1
+fi
+
+if [[ "$TARGET" == 'insert' ]]; then
+  /usr/bin/iptables -I $RULE -j DROP || exit 1
+elif [[ "$TARGET" == 'delete' ]]; then
+  /usr/bin/iptables -D $RULE -j DROP || exit 1
+fi

Reply via email to