From 405772563b9ce8717ba7721abc8a533fc67d765a Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Sun, 8 Mar 2020 21:47:00 +1100 Subject: [PATCH] moc: Allow https for urls https://moc.daper.net/node/1872 --- moc/.signature | 5 +++-- moc/Pkgfile | 6 ++++-- moc/moc-https.patch | 10 ++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 moc/moc-https.patch diff --git a/moc/.signature b/moc/.signature index f57cd04b2..cf1c57aef 100644 --- a/moc/.signature +++ b/moc/.signature @@ -1,6 +1,7 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF39i239hg229+2ohMpzMGCiB7qTBFNymFRbwoaBzhdlLoCeXs4cgjwqKegKJV972ILLCPf0EwFt6NXcOyMuF9Rw4= -SHA256 (Pkgfile) = d0c5ea5a79b438610d66e46b52e7951f5307c90b9f0ff50b7620706108864ff7 +RWSagIOpLGJF3yfuJSSwjfVG12AXVR5YLTiNZJL3WmDkSM0JKKP+SRLGse52u2LH/Z1PJV5Frubtpb2e5VXUYzKyxmogB4WVqgo= +SHA256 (Pkgfile) = 82e2ac5a37579e1496f40d1751990bbe60aa31c6ee291b0ee12c0b140be65d2e SHA256 (.footprint) = f23b8f049e77b4cb7f95144116ae3c29c790199e1459ff3017dabae044f1b0b2 SHA256 (moc-2.5.2.tar.bz2) = f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08 SHA256 (moc-ffmpeg4.patch) = f1a12d7d2e8269974487a2ffb011e87d9a6c5c06e2a47d1312d5965c98f050ea +SHA256 (moc-https.patch) = d5ace9820974912e4f3d9361ad5d03d1d655348f17c9710dff527020101e98fa diff --git a/moc/Pkgfile b/moc/Pkgfile index 793b62965..12b3c38f2 100644 --- a/moc/Pkgfile +++ b/moc/Pkgfile @@ -6,15 +6,17 @@ name=moc version=2.5.2 -release=2 +release=3 source=(http://ftp.daper.net/pub/soft/moc/stable/$name-$version.tar.bz2 - moc-ffmpeg4.patch) + moc-ffmpeg4.patch + moc-https.patch) build() { cd $name-$version patch -p0 -i $SRC/moc-ffmpeg4.patch + patch -p0 -i $SRC/moc-https.patch ./configure \ --prefix=/usr \ diff --git a/moc/moc-https.patch b/moc/moc-https.patch new file mode 100644 index 000000000..5ff304df9 --- /dev/null +++ b/moc/moc-https.patch @@ -0,0 +1,10 @@ +--- files.c.orig ++++ files.c +@@ -93,6 +93,7 @@ + inline int is_url (const char *str) + { + return !strncasecmp (str, "http://", sizeof ("http://") - 1) ++ || !strncasecmp (str, "https://", sizeof ("https://") - 1) + || !strncasecmp (str, "ftp://", sizeof ("ftp://") - 1); + } +