-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Initial fan2go package release 0.9.0. #6456
Conversation
a537b19
to
1029c25
Compare
@th0ma7 #6437 has broken the build of non python packages. This one is a pure go package, withtout python dependencies.
|
This adds to @mreid-tt info provided earlier. I'll look at it tonight and hopefully will be able to work on a fix in no time 🤞. |
@dongfengweixiao Suggestions to answer your questions Q1 and Q2
To chose free ports for a package please use the wiki pages Ports by Synology and Ports by SynoCommunity packages and finally add your package in the later. If it is not possible to provide a general-purpose configuration, consider adding an installation wizard for customization. |
19ad964
to
380c643
Compare
It seems that directly using the built-in Additionally, there is a bigger issue: writing to hwmon requires root privileges, and I don't know how to obtain them. |
create a new group named hwmon and use udev manage it maybe a good idea, let me try it! |
Have a look at the Synology package development guide, there may be howto with regards to udev. Otherwise i recall i did something in the synocli-kernel package where, using a script, i would push new rule files into the udev directory, probably using a symbolic link or similar. Although such option requires root and documenting howto in the wiki as root access is not feasible unless called manuelly using sudo or other means. |
380c643
to
0ec909a
Compare
Yes, I tested the relevant code and was unable to copy the rules file to the udev directory and execute udevadm control --reload-rules during package installation or program startup. |
Is it permissible to invoke SimplePermissionManager within the spksrc repository? |
Description
Hi everyone, this is my first attempt at creating a package for the Synology system.
During the process, I encountered many issues. I have managed to resolve some of them.
Q1: The command
install -m 644 $(GO_SRC_DIR)/fan2go.yaml $(STAGING_INSTALL_PREFIX)/etc/fan2go/fan2go.yaml.example
is used to copy the example configuration file from the source code to /etc/fan2go/fan2go.yaml.example. As this configuration file is a sample, users need to customize it to their requirements. After installing the software package, what are some effective ways for ordinary users to copy this file and make the necessary modifications to rename it as fan2go.yaml?Q2: The command is executed as
/usr/bin/fan2go -c /etc/fan2go/fan2go.yaml --no-style
. How can I ensure that this command runs when the “Start” button is clicked (in fact, I’m unsure how to correctly specify the path to fan2go after the package installation)? Additionally, when the “Stop” button is clicked, what is the method to stop the command?Checklist
all-supported
completed successfullyType of change