[arch-projects] New package submission script
tardo
tardo at nagi-fanboi.net
Sat Oct 13 11:49:05 EDT 2007
There's nothing like writing php code in the dead hours of the night when
you're stoked on sugar. That being said, I finally integrated my pkgbuild
parsing code into a (almost completely) rewritten pkgsubmit.php. Here are
some highlights (off the top of my head):
- Now uses PEAR::Archive_Tar
- Integrates my previous pkgbuild parsing script
- Any GNU/Tar file will work, including .tar, .tar.gz, .tar.bz2
- Raw PKGBUILDs may be submitted as well (and only PKGBUILDs. PKGBUILDs
that come with patches, install scripts, etc will need to be archived)
- Absolutely ZERO exec/system commands
There are some major and small changes to the submission process as well:
- PKGBUILDs are thoroughly checked against Arch Packaging Standards
(surprise surprise)
- Uploaded archives are assumed to be correct (e.g. files in foo/PKGBUILD,
foo/foo.install, etc), else rejected
- The comment box has been removed. I've never seen the reason to always
have to write "Initial upload" for a package
- Overwrite option is gone. We check for permissions anyway, hence it's
redundant
There are some other tiny changes that just make the process a bit easier,
but I'll leave that to your discovery. And now for the hard part, testing.
I only got a handful of responses for my previous request, but I'm
crossing my fingers this time. I've set up an adequate test site here:
http://aur.nagi-fanboi.net
Testers will probably need to register an account (just like in AUR), then
submit packages.
Possible bugs:
- When I tried this on a local setup, uploaded files have 0600. The
testing site maintains permissions, but I'm not sure what it is for the
real AUR
- Apparently there has to be a AUR syncdb script that moves files from
INCOMING_DIR to URL_DIR. If someone can point me in the right direction
for this, I'd be grateful (currently I'm reading from INCOMING_DIR)
Since this not just any bugfix, but quite a rewrite, feedback is
important. I'd like to open this up to discussion =]
- tardo
More information about the arch-projects
mailing list