mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-18 20:47:01 +00:00
Alpine build tools
'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 |
||
---|---|---|
.devbuildrc | ||
.gitignore | ||
abuild-keygen.in | ||
abuild-sign.in | ||
abuild-tar.c | ||
abuild.conf | ||
abuild.in | ||
abump.in | ||
alpine.mk | ||
alpine.packages | ||
ap.in | ||
APKBUILD-svn.proto | ||
apkgrel.in | ||
aports.lua | ||
bootchartd | ||
buildrepo.in | ||
cmp-apks-iso | ||
devbuild.in | ||
functions.sh | ||
initramfs-init | ||
Makefile | ||
mkinitram | ||
mkmodloop | ||
newapkbuild.in | ||
sample.APKBUILD | ||
sample.confd | ||
sample.initd | ||
sample.post-install | ||
sample.pre-install | ||
TODO |