General TC > Programming & Scripting - Unofficial

extension audit script

<< < (20/21) > >>

aus9:
@dentonlt

Due to a recent stuff up by me, where I failed to notice I was a missing   

--- Quote ---:
--- End quote ---
in my info file. Here is a test to prove current submitqc does not check all of the info file structure,
for you consideration.


--- Code: ---tce-load -i squashfs-tools submitqc
cd /tmp
rm -rf submitqc zzz
P=zzz
mkdir -p $P/usr/local/$P
mksquashfs $P $P.tcz
md5sum $P.tcz > $P.tcz.md5.txt
cd $P
find usr -not -type d > /tmp/$P.tcz.list
sed 's|usr|/usr|g' -i /tmp/$Z.tcz.list
cd /tmp

echo 'Title:          zzz.tcz
Description:    z
Version:        z
Author:         z
Original-site:  z
Copying-policy: z
Size:           4.0K
Extension_by:   z
Tags            z     
Comments:       z

Change-log:     2020/08/06
Current:        2020/08/06  ' > $P.tcz.info

submitqc --libs

# output  SNIP
# submitqc: There are warnings or errors for your extensions. See:  /tmp/submitqc/copyright
--- End code ---

I was missing : after tags

I am aware that some people prefer the EOF method of generating an info file where top 2 lines read
cat >> $P.tcz.info <<'EOF'
Title:             something.tcz
SNIP bottom 2 lines read
Current:        2020/08/06 something
EOF

thanks for reading.

aus9:
I had a look at coreplayers's firefox get latest script. My coding skills need improving so I may be wrong

It appears there is agreement with the create TCE wiki that dir is root:staff for /usr/local/tce.installed
then the script under that dir is tc:staff

which means this part of the wiki may be wrong

--- Quote ---sudo chown -R root:staff /tmp/package/usr/local/tce.installed
--- End quote ---

I can not remember if I originally wrote that....but feel free to blame me, as I would have based it on something someone said to me. If its wrong, lets fix. If its right then maybe submitqc is wrong?

Juanito:
What is important is that /usr/local/tce.installed is root:staff - the file in it can be $USER:staff or root:staff

dentonlt:
Damn, I really need to schedule time that's not on school holidays ...
Currently trying to get a gtkpod extension done for TC11 so that I can get my stuff off an old iPod. I'll keep reading through all this to integrate changes.

For all the Christmas-y types out there, Merry Christmas =D

dentonlt:

--- Quote from: Juanito on August 14, 2020, 09:02:54 AM ---What is important is that /usr/local/tce.installed is root:staff - the file in it can be $USER:staff or root:staff

--- End quote ---

Umm ... since $USER is pretty much anybody, I guess I have two options for the startup script:

* check for & allow only root:staff & tc:staff
* just check the group is staff, accept any user.
I'm thinking the first one is more conservative, so I'm going to do that for now. Happy to take advice/direction otherwise.

I'm also thinking there isn't ever a need for a maintainer to provide an extension startup script that must be run by any user other than tc or root. I am admittedly really rusty, though. Maybe I'm missing a whole slew of cases where a non-root non-tc username is advised?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version