Package Details: sing-box 1.10.2-1

Git Clone URL: https://aur.archlinux.org/sing-box.git (read-only, click to copy)
Package Base: sing-box
Description: The universal proxy platform.
Upstream URL: https://sing-box.sagernet.org/
Licenses: custom:GPL-3.0-or-later WITH name use or association addition
Conflicts: sing-box-beta, sing-box-git
Submitter: everyx
Maintainer: everyx (lilac)
Last Packager: lilac
Votes: 9
Popularity: 0.009336
First Submitted: 2022-09-15 09:44 (UTC)
Last Updated: 2024-11-22 12:45 (UTC)

Dependencies (3)

Required by (8)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

AvianaCruz commented on 2022-12-16 03:21 (UTC)

@everyx When the unit is an system unit which is the default, the below path is /etc/.

everyx commented on 2022-12-16 03:19 (UTC)

@AvianaCruz ConfigurationDirectory is the base directory relative to which user-specific configuration files should be stored, use this to create directory automatically is not the correct usage, although it does create the directory.

AvianaCruz commented on 2022-12-16 03:14 (UTC)

@everyx Please look the document, the option is to make systemd create the directory automatically.

everyx commented on 2022-12-16 03:11 (UTC)

@AvianaCruz sing-box only lookup config.json in current work directory as config file, it's not follow the XDG Base Directory Specification, so setting this should be useless, although we can hack through a startup scripts, but IMHO it is better to submit a feature request to the upstream, thank you.

AvianaCruz commented on 2022-12-16 03:04 (UTC)

@everyx The correct way to create configuration directory is using ConfigurationDirectory=, see https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=

everyx commented on 2022-12-06 04:14 (UTC)

@AvianaCruz I need some features like with_clash_api, if this doesn't meet your needs, you can modify it locally.

AvianaCruz commented on 2022-12-06 01:51 (UTC) (edited on 2022-12-06 02:05 (UTC) by AvianaCruz)

@everyx I think it would be better to follow the upstream, i.e. just creating /usr/lib/sing-box or not creating these directories at all. Also the build flags should be like the upstream, i.e. set -ldflags to -s -w -buildid= -linkmode=external and _tags to with_quic,with_wireguard,with_acme. (https://github.com/SagerNet/sing-box/blob/8953ddc6e0fb8dc3a041a1ce3cc7d6ff51cf2913/release/local/install.sh#L13)

everyx commented on 2022-12-06 00:31 (UTC)

@AvianaCruz No, because there is a dynamic instance unit sing-box@.service, and it's WorkingDirectory is dynamic.

AvianaCruz commented on 2022-12-05 15:29 (UTC)

@everyx It would better to use pacman hooks (https://man.archlinux.org/man/alpm-hooks.5). Creating the folder on every start seems hacky.

everyx commented on 2022-12-05 08:31 (UTC) (edited on 2022-12-05 08:31 (UTC) by everyx)

@everyx On systems without /var/lib/sing-box, the service will be not able to start. The package should include a post-install hook to create it with the owner of sing-box.

backup should also use $pkgname and there is an extra slash in "${pkgdir}/usr/lib/sysusers.d//${pkgname}.conf".

@AvianaCruz Done.