General TC > Programming & Scripting - Unofficial
extension audit script
polikuo:
--- Quote from: Juanito on December 31, 2016, 08:37:08 AM ---Only the /usr/local/tce.installed folder needs to be root:staff - the files in the folder can be tc:staff
--- End quote ---
--- Quote from: Misalf on December 31, 2016, 08:58:40 AM ---The tce.installed directory is used for two things: To indicate which extensions are loaded and to run an extension's startup script if present.
staff needs write permission for the tce.installed directory so that there can be created (empty) files for extensions that don't come with a startup script.
The startup scripts are ran as root though. So I guess the startup scripts could be root:root but it's not that important?
Is this actually a problem or just a discontinuity?
--- End quote ---
IMHO, since the wiki says that you should set it as "root:staff"
We should keep it consistent :)
BTW, some users don't use "tc" as their username ;)
(submitqc might not work if a user set his username differently, not a big deal thought)
I think it would be better to modify the script to fit the wiki's instructions
Misalf:
The user "tc" should be always present though. Similar to "Default" on Windows.
Anyway, I agree that "tc" probably shouldn't be used for permissions if not necessary.
Sashank999:
Hi !
I have a tortoise like internet speed and I am tired of submitqc fetching the info.lst.gz.
I highly suggest to update the script so that it uses recently fetched info.lst.gz and also check the remote copy's zsync file so that it only downloads the blocks that are different. I also suggest md5 checking for both local and remote info.lst.gz.
Also when checking the extension, it shows :
Copyright notice not found at usr/local/share/doc/ClipIt
Confirm that this is not needed.
Checking repo for copyright statement in ClipIt.tcz ...
ClipIt.tcz not found on server.
Hence I request to also add --no-copyright or --copyright= options so that the script identifies the copyright file.
Sashank999:
Hi !
I think that it is better for the script to update the size field in .info file after stripping of binaries, if the binaries are unstripped.
aus9:
Hi Sashank999
if I run
--- Code: ---submitqc --libs
--- End code ---
and have no size in the info files....submitqc will add them.
I prefer to have my build script "strip" where ever possible rather than use the switch supplied by submitqc.
eg as per wiki we have....multiple mentions of strip
http://wiki.tinycorelinux.net/doku.php?id=wiki:creating_extensions.html
but I prefer ...I build to /tmp
--- Code: ---P=TCE-name
SRC=some source name
cd /tmp
# wget command to get source
# unpack
mkdir $P
cd $SRC
# compile commands
make install-strip DESTDIR=/tmp/$P
cd /tmp
--- End code ---
I know you have already read Rich script
http://forum.tinycorelinux.net/index.php?action=dlattach;topic=23844.0;attach=5365
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version