Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - curlmirror

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: curlmirror 20150310-3

Git Clone URL: https://aur-dev.archlinux.org/curlmirror.git (read-only)
Package Base: curlmirror
Description: Mirrors a web site by using curl to download each page
Upstream URL: https://github.com/cudeso/tools/blob/master/curlmirror.txt
Keywords: curl mirror
Licenses: GPL2
Submitter: None
Maintainer: TrialnError
Last Packager: TrialnError
Votes: 7
Popularity: 0.000040
First Submitted: 2008-08-03 22:04
Last Updated: 2016-09-09 16:41

Latest Comments

sekret commented on 2016-09-09 19:07

Ah perfect, works now :) And thanks for the explanation!

TrialnError commented on 2016-09-09 16:42

Building the package worked with -3 using the devtools

TrialnError commented on 2016-09-09 16:25

The problem is due, that in $srcdir is only a symlink to the source file (Causes also another issue, if building the package and not deleting the file, checksum will now fail, because of the changed file)

I will still let it reside in prepare, but pipe the output of dos2unix into a new file

sekret commented on 2016-09-09 16:16

Ok crap, this PKGBUILD doesn't build, when built in a clean chroot. Here's the output.

==> Starting prepare()...
dos2unix: problems renaming './d2utmp8prUne' to '/srcdest/curlmirror.txt': Invalid cross-device link
which is the target of symbolic link 'curlmirror.txt'
output file remains in './d2utmp8prUne'
dos2unix: dos2unix: problems converting file curlmirror.txt
==> ERROR: A failure occurred in prepare().

I'm not sure what happens here...

HOWEVER it works if you put dos2unix in the package function.

package() {
install -m755 -D "${pkgname}.txt" "$pkgdir/usr/bin/${pkgname}"
dos2unix "$pkgdir/usr/bin/${pkgname}"

TrialnError commented on 2016-09-08 19:44

Thanks for the intel, sekret.
I'm checking if this can be avoided by tampering with the download url.
But it looks like I will use your proposal.

tl/dr; Fix for this will be pushed shortly

sekret commented on 2016-09-08 16:09

When I first tried to launch this, I got

$ curlmirror
bash: /usr/bin/curlmirror: /usr/bin/perl^M: bad interpreter: No such file or directory

I had to run

dos2unix /usr/bin/curlmirror

Now it works! Please fix this, maybe it's really required to run this dos2unix command in a prepare() function. Then you'd have of course to add dos2unix to the makedepends array.