tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/net/mosquitto/files



Le 06/10/2023 à 18:18, Greg Troxel a écrit :
Frédéric Fauberteau <triaxx%netbsd.org@localhost> writes:

Modified Files:
	pkgsrc/net/mosquitto/files: mosquitto.sh

Log Message:
mosquitto: Patch rc.d script for setting user from rc.conf

+: ${mosquitto_user:=@MOSQUITTO_USER@}

-    chown @MOSQUITTO_USER@ ${piddir}
+    chown ${mosquitto_user} ${piddir}

This doesn't really bother me, but it seems irregular.  The package has
set things up for @MOSQUITTO_USER@, and my impression is that in general
we do not expect pkgsrc to accomodate changing the username for package
use, because a) that's not how pkgsrc works and b) in general it cannot
work, because there are suid binaries, etc.

Is there an existing practice for this?  I didn't find anything in the
guide.

What's the reason?  It seems to be working around incorrect
installations, and my reaction, not having thought about it, is that
adding even slight complexity to aid in working around something that
should instead be fixed is a path we don't want to go down.

I have an unprivileged bootstrap of pkgsrc on macOS. I am maybe wrong but MOSQUITTO_USER is not created when I install net/mosquitto. I can execute mosquitto with mosquitto=YES mosquitto_user=triaxx in /etc/rc.conf instead of editing /etc/rc.d/mosquito.

I have been inspired by net/syncthing.



Home | Main Index | Thread Index | Old Index