summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVimsucks2018-03-22 22:09:05 +0800
committerVimsucks2018-03-22 22:09:05 +0800
commit87ca65255594264765253b2e7ffc1e4923a33345 (patch)
treee71204cc82357caeb1c46bad2be3dd356cda371b
parent3cbbdc12535904817166b8bbef4775c7e6117cfa (diff)
downloadaur-87ca65255594264765253b2e7ffc1e4923a33345.tar.gz
add @.service
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rw-r--r--frpc@.service11
-rw-r--r--frps@.service11
4 files changed, 32 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0df83160d8c..d3a26686bb6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,10 +8,14 @@ pkgbase = frp
license = Apache
source = frps.service
source = frpc.service
+ source = frps@.service
+ source = frpc@.service
source = https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_amd64.tar.gz
md5sums = 6f9c6681357f3f984983457151d7f0c5
md5sums = d704eacd9f769de32c8ab2c875d9f34a
- md5sums = 8472012fd45b70aeb9dd1acaa7c183ee
+ md5sums = 50364b050ca08f47b7afe305f528eaa2
+ md5sums = aa40573c08f791bfd73900f95bc136ce
+ md5sums = 2715de9dac4a2da4817de9dd285ca600
pkgname = frp
diff --git a/PKGBUILD b/PKGBUILD
index 91633eda37c..b3c5c809dbc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,10 +6,12 @@ pkgrel=1
pkgdesc="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet."
license=('Apache')
url="https://github.com/fatedier/frp"
-source=(frps.service frpc.service "https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
+source=(frps.service frpc.service frps@.service frpc@.service "https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
arch=('x86_64')
md5sums=('6f9c6681357f3f984983457151d7f0c5'
'd704eacd9f769de32c8ab2c875d9f34a'
+ '50364b050ca08f47b7afe305f528eaa2'
+ 'aa40573c08f791bfd73900f95bc136ce'
'2715de9dac4a2da4817de9dd285ca600')
install=$pkgname.install
@@ -29,4 +31,6 @@ package() {
install -Dm644 frps.service $pkgdir/usr/lib/systemd/system/frps.service
install -Dm644 frpc.service $pkgdir/usr/lib/systemd/system/frpc.service
+ install -Dm644 frps@.service $pkgdir/usr/lib/systemd/system/frps@.service
+ install -Dm644 frpc@.service $pkgdir/usr/lib/systemd/system/frpc@.service
}
diff --git a/frpc@.service b/frpc@.service
new file mode 100644
index 00000000000..1dbba21dc8a
--- /dev/null
+++ b/frpc@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Frp Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini
+
+[Install]
+WantedBy=multi-user.target
diff --git a/frps@.service b/frps@.service
new file mode 100644
index 00000000000..b8cc8423bb1
--- /dev/null
+++ b/frps@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Frp Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/frps -c /etc/frp/%i.ini
+
+[Install]
+WantedBy=multi-user.target