Alpine build tools
Go to file
Matt Smith 3386818e53 abuild: created 'saveas-*://' URI support
'saveas-*://' URI support has been created for use with the source= line of
APKBUILD files.

It allows for a remote source file to be saved with an arbitrary filename.  This
is useful in situations where the last component of the URI is not the preferred
filename.

Here's how it works.  Say we have the following URI:

  http://oss.example.org/?get=software&ver=1.0

Both Busybox Wget and GNU Wget will save this with the filename:

  ?get=software&ver=1.0

To get around this, we could use cURL to save the file using the filename in the
HTTP response headers:

  $ curl -JO "http://oss.example.org/?get=software&ver=1.0"

Or we could use this 'saveas' hack.  Essentially, the original URI is converted
to read:

  saveas-http://oss.example.org/?get=software&ver=1.0/software-1.0.tar.gz

In the download process, the 'saveas-' portion is removed, and the file is
downloaded from the original URI, but is saved with the filename being the last
component of the URI.  In this case, it will be saved as 'software-1.0.tar.gz'.

It is designed so that it works with any protocol supported by abuild.
For example:

  saveas-ftp://oss.example.org/?get=software&ver=1.0/software-1.0.tar.gz

Check it out and let me know what you think.

Thanks,
Matt
2010-12-30 20:33:02 +00:00
.devbuildrc add a .devbuildrc for abuild subproject itself 2009-01-15 16:11:19 +00:00
.gitignore have git to ignore apkgrel 2010-12-30 14:25:29 +00:00
APKBUILD-svn.proto added APKBUILD-svn.proto 2008-11-28 07:58:52 +00:00
Makefile apkgrel: new tool for bumping pkgrel 2010-12-30 14:21:49 +00:00
TODO abuild: improve sanitycheck 2009-02-08 21:02:22 +00:00
abuild-keygen.in abuild-keygen: implement -q for quiet mode 2010-12-20 13:33:45 +00:00
abuild-sign.in abuild-sign: remove temp signature 2009-11-02 18:33:30 +00:00
abuild-tar.c Revert "abuild-tar: embed checksum for symlinks" 2009-08-17 12:07:00 +00:00
abuild.conf abuild.conf: set CARCH and CBUILD 2010-11-24 08:08:51 +00:00
abuild.in abuild: created 'saveas-*://' URI support 2010-12-30 20:33:02 +00:00
abump.in abump: add usage and support for recursive abuild 2010-11-19 10:25:15 +00:00
alpine.mk alpine.mk: change arch to x86. remove .SIGN in repo 2009-10-21 14:17:00 +00:00
alpine.packages alpine.packages: added igmpproxy 2010-02-15 18:07:21 +00:00
ap.in ap: fix usage. the -d option is mandatory now 2010-12-13 15:03:11 +00:00
apkgrel.in apkgrel: new tool for bumping pkgrel 2010-12-30 14:21:49 +00:00
aports.lua ap: initial implementation 2010-12-13 14:14:06 +00:00
bootchartd initramfs: process accounting & misc fixes 2009-03-03 19:43:26 +02:00
buildrepo.in buildrepo: fix previous commit 2010-11-02 09:39:34 +00:00
cmp-apks-iso cmp-apks-iso: fix spell error that have been around for ages 2009-08-14 05:56:34 +00:00
devbuild.in use .in files for scripts 2009-05-08 13:33:34 +00:00
functions.sh abuild: style fixes 2009-01-26 13:32:44 +00:00
initramfs-init initram: unpack apkovl with --numeric-owner 2009-04-16 06:30:11 +00:00
mkinitram mkinitram: sata needs acpi module dock.ko 2009-01-02 16:00:27 +00:00
mkmodloop mkmodloop: no firmware. fix path in image 2009-01-02 13:30:48 +00:00
newapkbuild.in newapkbuild: source PACKAGER from abuild.conf 2010-11-19 09:51:36 +00:00
sample.APKBUILD sample.APKBUILD: update with arch and depends_dev 2010-12-30 14:24:17 +00:00
sample.confd sample: use lowercase in init.d/conf.d sample files 2009-12-30 08:55:33 +00:00
sample.initd sample: use lowercase in init.d/conf.d sample files 2009-12-30 08:55:33 +00:00
sample.post-install abuild: fixes for new install scripts 2009-03-06 17:51:53 +00:00
sample.pre-install abuild: fixes for new install scripts 2009-03-06 17:51:53 +00:00