From owner-freebsd-ports@FreeBSD.ORG Mon Feb 24 05:29:05 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8E4B2BB for ; Mon, 24 Feb 2014 05:29:05 +0000 (UTC) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 454E21301 for ; Mon, 24 Feb 2014 05:29:05 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id x12so4293551wgg.20 for ; Sun, 23 Feb 2014 21:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=LwrfD+tlmmYWKGi2fgMDgC9s2mRS02L7vZRXQ6XTbPA=; b=gZBHRlskGHC8r0nZJElghZx+moOQJH/AmOMYFwC3JzdbrLwGXhwrsyZCJrE/Y0wHLx 4/iZhHmRgpWQCzh1FfJq1x28nDwDVC1Y1zXtDnMQUC7v6l7dH7sg2L7MwKe6tShtypc2 sDNugWebhQDTIiScSMoJXuK8w+0x+SbKjneIVaRfSEmA3uD+C+FvshRKZSqPbAIUdTRX tVGYwf4CnXfBXuGB2mLXWD/MvLkZcQ1l2jOUFJKpVi3IWv3BJPK7xb4HAgZAtAV1C/Me 3zKyZ832eYKo5GvdlSPVZXymUJWH9zV3Ri4xSS71lj060Y/3CpM6VsTtB/k/GE6y7UYy 2Lkw== MIME-Version: 1.0 X-Received: by 10.181.13.40 with SMTP id ev8mr12550900wid.16.1393219743677; Sun, 23 Feb 2014 21:29:03 -0800 (PST) Received: by 10.217.48.197 with HTTP; Sun, 23 Feb 2014 21:29:03 -0800 (PST) In-Reply-To: <7c368abfb6f16ac6fc6d2e565c60d810.squirrel@mx.waitman.net> References: <20140211080704.GA18964@sh4-5.1blu.de> <7c368abfb6f16ac6fc6d2e565c60d810.squirrel@mx.waitman.net> Date: Mon, 24 Feb 2014 13:29:03 +0800 Message-ID: Subject: Re: port www/youtube_dl From: Marcelo Araujo To: Waitman Gobble Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Matthias Apitz , freebsd-ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 05:29:05 -0000 Done guys, sorry my delay to work on it. Best Regards, 2014-02-11 8:52 GMT+08:00 Waitman Gobble : > > On Tue, February 11, 2014 12:07 am, Matthias Apitz wrote: > > > > > Hello, > > > > > > The port www/youtube_dl installs as a binary the Youtube downloader in > > > > > > # file /usr/local/bin/youtube-dl > > /usr/local/bin/youtube-dl: data > > > > > > The executeable tends to fail due to changes the provider Youtube does > > in its web page and users tend to update the software theirself by the > > option --update; this connects via HTTPS to: > > > > 07:36:12.668370 IP 10.32.233.251.31097 > > > frnk.radius.uk.mediaways.net.domain: 63308+ A? rg3.github.io. (31) > > 07:36:13.214619 IP frnk.radius.uk.mediaways.net.domain > > > 10.32.233.251.31097: 63308 2/0/0 CNAME github.map.fastly.net., A > > 185.31.16.133 (82) > > 07:36:13.215016 IP 10.32.233.251.33006 > > > frnk.radius.uk.mediaways.net.domain: 63309+ AAAA? rg3.github.io. (31) > > 07:36:13.348108 IP 10.32.233.251.57784 > > > frnk.radius.uk.mediaways.net.domain: 35986+ PTR? > > 251.233.32.10.in-addr.arpa. (44) > > 07:36:13.514879 IP frnk.radius.uk.mediaways.net.domain > > > 10.32.233.251.33006: 63309 1/1/0 CNAME github.map.fastly.net. (138) > > 07:36:13.515729 IP 10.32.233.251.14874 > 185.31.16.133.http: Flags [S], > > seq 3997719834, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val > > 441155 ecr 0], length 0 > > ... > > > > > > and downloads a new binary version to /usr/local/bin/youtube-dl which > must > > be done in addition as root (or root must change the owner of the file > > before). > > > > This is highly concerning due to 'phoning home' and installing whatever > > (mal-) software or due to DNS redirects to some malware side. > > > > > > The Linux friends patch the source to disable the --update option; see > > https://bugs.launchpad.net/ubuntu/+source/youtube-dl/+bug/1063469 > > > > > > Shouldn't we do the same? > > > > > > Thx > > > > > > matthias -- > > Matthias Apitz | /"\ ASCII Ribbon Campaign: > > www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in > > E-mail > > WWW: http://www.unixarea.de/ | X - No proprietary attachments > > phone: +49-170-4527211 | / \ - Respect for open standards > > _______________________________________________ > > freebsd-ports@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > > > > Hi, > > It's a nice useful tool but it *does* feel awfully kinda creepy. > > Note that the src download has the binary pre-built.. and check out gmake > clean: > > [2357] > gmake clean > rm -rf youtube-dl.1 youtube-dl.bash-completion README.txt MANIFEST build/ > dist/ .coverage cover/ youtube-dl.tar.gz > > [2358] > gmake youtube-dl > gmake: `youtube-dl' is up to date. > > hmmm. wait it's still there. > > [2360] > ls -lh > total 428 > -rw-r--r-- 1 root wheel 619B Jan 26 18:06 CHANGELOG > -rw-r--r-- 1 root wheel 1.2K Jan 26 18:06 LICENSE > -rw-r--r-- 1 root wheel 112B Jan 26 18:06 MANIFEST.in > -rw-r--r-- 1 root wheel 2.4K Jan 26 18:06 Makefile > -rw-r--r-- 1 root wheel 29K Feb 9 17:01 README.md > drwxr-xr-x 2 root wheel 512B Jan 26 18:06 bin > drwxr-xr-x 4 root wheel 512B Jan 26 18:06 devscripts > -rw-r--r-- 1 root wheel 3.0K Jan 26 21:21 setup.py > drwxr-xr-x 2 root wheel 512B Feb 6 13:42 test > -rwxr-xr-x 1 root waitman 360K Feb 11 00:36 youtube-dl > drwxr-xr-x 5 root wheel 512B Feb 11 00:37 youtube_dl > [2361] > rm youtube-dl > > [2362] > rm youtube_dl/update.py > > [2363] > gmake youtube-dl > zip --quiet youtube-dl youtube_dl/*.py youtube_dl/*/*.py > zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py > echo '#!/usr/bin/env python' > youtube-dl > cat youtube-dl.zip >> youtube-dl > rm youtube-dl.zip > chmod a+x youtube-dl > > [2364] > ./youtube-dl --update > Traceback (most recent call last): > File "/usr/local/lib/python2.7/runpy.py", line 162, in > _run_module_as_main > "__main__", fname, loader, pkg_name) > File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code > exec code in run_globals > File "./youtube-dl/__main__.py", line 15, in > File "./youtube-dl/youtube_dl/__init__.py", line 74, in > ImportError: No module named update > > > 'gmake clean' doesn't get rid of the binary. what's up with that? deleting > update.py removes the update option. > > > -- > Waitman Gobble > San Jose California USA > +1.510-830-7975 > > -- Marcelo Araujo araujo@FreeBSD.org