feat: package as sshfsc for Moonarch repo
Some checks failed
Update PKGBUILD version / update-pkgver (push) Has been cancelled
Some checks failed
Update PKGBUILD version / update-pkgver (push) Has been cancelled
- Add MIT LICENSE - Rename Go module sshfs_connect -> sshfsc - Update README with Moonarch install instructions - Add Gitea workflow to auto-bump pkgver in moonarch-pkgbuilds
This commit is contained in:
parent
40961b10c0
commit
eb93777faa
43
.gitea/workflows/update-pkgver.yaml
Normal file
43
.gitea/workflows/update-pkgver.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
# ABOUTME: Updates pkgver in moonarch-pkgbuilds after a push to main.
|
||||
# ABOUTME: Ensures paru detects new versions of this package.
|
||||
|
||||
name: Update PKGBUILD version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update-pkgver:
|
||||
runs-on: moonarch
|
||||
steps:
|
||||
- name: Checkout source repo
|
||||
run: |
|
||||
git clone --bare http://gitea:3000/nevaforget/sshfs_connect.git source.git
|
||||
cd source.git
|
||||
PKGVER=$(git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./')
|
||||
echo "New pkgver: $PKGVER"
|
||||
echo "$PKGVER" > /tmp/pkgver
|
||||
|
||||
- name: Update PKGBUILD
|
||||
run: |
|
||||
PKGVER=$(cat /tmp/pkgver)
|
||||
git clone http://gitea:3000/nevaforget/moonarch-pkgbuilds.git pkgbuilds
|
||||
cd pkgbuilds
|
||||
|
||||
OLD_VER=$(grep '^pkgver=' sshfsc-git/PKGBUILD | cut -d= -f2)
|
||||
if [ "$OLD_VER" = "$PKGVER" ]; then
|
||||
echo "pkgver already up to date ($PKGVER)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sed -i "s/^pkgver=.*/pkgver=$PKGVER/" sshfsc-git/PKGBUILD
|
||||
sed -i "s/^\tpkgver = .*/\tpkgver = $PKGVER/" sshfsc-git/.SRCINFO
|
||||
echo "Updated pkgver: $OLD_VER → $PKGVER"
|
||||
|
||||
git config user.name "pkgver-bot"
|
||||
git config user.email "gitea@moonarch.de"
|
||||
git add sshfsc-git/PKGBUILD sshfsc-git/.SRCINFO
|
||||
git commit -m "chore(sshfsc-git): bump pkgver to $PKGVER"
|
||||
git -c http.extraHeader="Authorization: token ${{ secrets.PKGBUILD_TOKEN }}" push
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Dominik Kressler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
21
README.md
21
README.md
@ -2,15 +2,32 @@ Quickly mount remote systems via SSHFS based on your ssh_config
|
||||
|
||||
Static mount dir is currently `~/Servers/<Host>`
|
||||
|
||||
# Install
|
||||
|
||||
## Arch Linux (Moonarch repo)
|
||||
|
||||
Available in the Moonarch package repository as `sshfsc-git`:
|
||||
|
||||
```
|
||||
paru -S sshfsc-git
|
||||
```
|
||||
|
||||
## From source
|
||||
|
||||
```
|
||||
go build -o sshfsc
|
||||
install -Dm755 sshfsc /usr/local/bin/sshfsc
|
||||
```
|
||||
|
||||
# Dependencies
|
||||
|
||||
- [SSHFS](https://wiki.archlinux.org/title/SSHFS)
|
||||
- [Go](https://wiki.archlinux.org/title/Go)
|
||||
- [Go](https://wiki.archlinux.org/title/Go) (build-time)
|
||||
|
||||
# Usage
|
||||
|
||||
```
|
||||
sshfs_connect <Host>
|
||||
sshfsc <Host>
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user