Package Details: smb-mount-controller-git 0.2.r1.g5e1fb02-1

Git Clone URL: https://aur.archlinux.org/smb-mount-controller-git.git (read-only, click to copy)
Package Base: smb-mount-controller-git
Description: A state-based SMB/CIFS mount controller written in bash for Linux that (un)mounts network shares based on reachability
Upstream URL: https://codeberg.org/marvin1099/smb-mount-controller
Keywords: autofs-alternative automation automount bash cifs connectivity filesystem homelab linux mount-control mount-manager nas network-share smb state-based
Licenses: AGPL3
Submitter: marvin1099
Maintainer: marvin1099
Last Packager: marvin1099
Votes: 1
Popularity: 0.54
First Submitted: 2026-04-16 19:48 (UTC)
Last Updated: 2026-05-13 19:14 (UTC)

Latest Comments

marvin1099 commented on 2026-04-19 16:04 (UTC)

@Auerhuhn understood. I was a bit confused there. Thanks for the info.

Auerhuhn commented on 2026-04-19 15:58 (UTC)

@marvin From the VCS packaging guidelines:

makepkg will invoke function pkgver(), and update variable pkgver accordingly.

So you did it correctly: run makepkg, then commit the PKGBUILD that includes the version number that makepkg set for you.

marvin1099 commented on 2026-04-19 12:53 (UTC) (edited on 2026-04-19 12:54 (UTC) by marvin1099)

@Auerhuhn is the versioning correct here?
I keep on seeing projects just setting pkgver variable manually.
But i also found:
pkgver = 0 # as placeholder
pkgver() {
cd "$srcdir/smb-mount-controller"
git describe --long --tags --abbrev=7 2>/dev/null | \
sed 's/^v//;s/-/.r/;s/-/./' || \
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

Would generate the correct version locally on install (if i understand correctly).
So is that correct or should it be set manually?

Auerhuhn commented on 2026-04-19 12:45 (UTC)

Nice job @marvin1099, thanks for cleaning this up!

marvin1099 commented on 2026-04-16 19:52 (UTC) (edited on 2026-04-16 21:06 (UTC) by marvin1099)

Thank for the tips Claudia, i changed it into -git (new).
And will (have done so at this point) now request the merge of:
smb-mount-controller to smb-mount-controller-git.
So smb-mount-controller-git should be used to stay ahead of the curve.

Auerhuhn commented on 2026-04-16 18:29 (UTC)

Hi marvin1099,

thanks for uploading this PKGBUILD!

I have noticed that while your PKGBUILD is a regular, non-VCS package, it uses the source tarball of the main branch (with a checksum of SKIP). For non-VCS packages, users expect that they get the exact version that you advertise, in your case upstream version 0.1.2.

I suggest that you tag your upstream code to the version you want (e.g. v0.1.2) and then change the source URL to:

https://codeberg.org/marvin1099/smb-mount-controller/archive/v${pkgver}.tar.gz

If you want to keep using the main branch, then you’ll have to rename your package to smb-mount-controller-git, and all VCS package guidelines apply.

Let me know if you have any questions, I’m happy to help!

Regards
Claudia