forked from ports/contrib
moc: Allow https for urls https://moc.daper.net/node/1872
This commit is contained in:
parent
a9de7e6570
commit
405772563b
@ -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
|
||||
|
@ -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 \
|
||||
|
10
moc/moc-https.patch
Normal file
10
moc/moc-https.patch
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user