summaryrefslogtreecommitdiff
path: root/net/transmission
diff options
context:
space:
mode:
authormaya <maya>2017-06-19 13:21:35 +0000
committermaya <maya>2017-06-19 13:21:35 +0000
commit07063f94b7ab7eddbd270a9cc05e5dc4a54b69dd (patch)
treeb4edd4f720de36f34d9dce063b81e1793c7b87e0 /net/transmission
parent935ba2d8a24426c4870d328577627f1b6e8dc91d (diff)
downloadpkgsrc-07063f94b7ab7eddbd270a9cc05e5dc4a54b69dd.tar.gz
Apply patch that reportedly fixes the build on DragonflyBSD
From Aleksej Lebedev (From dragonfly dports) in pkgsrc-users
Diffstat (limited to 'net/transmission')
-rw-r--r--net/transmission/distinfo3
-rw-r--r--net/transmission/patches/patch-libtransmission_platform-quota.c33
2 files changed, 35 insertions, 1 deletions
diff --git a/net/transmission/distinfo b/net/transmission/distinfo
index 0364772ecee..6c47ca388b5 100644
--- a/net/transmission/distinfo
+++ b/net/transmission/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.9 2016/04/15 09:28:39 wiz Exp $
+$NetBSD: distinfo,v 1.10 2017/06/19 13:21:35 maya Exp $
SHA1 (transmission-2.92.tar.xz) = 2140feba45c4471392033d21b86b6f3ef780d88e
RMD160 (transmission-2.92.tar.xz) = 6da78ce333fa2ea69aa4954c3b052a818ce7c93e
SHA512 (transmission-2.92.tar.xz) = 4d99476bee88cedcc4238a0eee64a4089016933cbfc1cfb1cca023ad4ebcfe46375c9e7651a17af4aeaaf1feb19cbd8166aa56ef7992d9e745a7bbcbe8efca11
Size (transmission-2.92.tar.xz) = 3378116 bytes
SHA1 (patch-ab) = 796faa7c61762dc3ffe563748e55160c827149d2
+SHA1 (patch-libtransmission_platform-quota.c) = e48d7d0ecca191d700ce967d1a2a1f4041fceace
SHA1 (patch-qt_qtr.pro) = 8d83709175fb4b9a88c3766b130b39160aeadaa3
diff --git a/net/transmission/patches/patch-libtransmission_platform-quota.c b/net/transmission/patches/patch-libtransmission_platform-quota.c
new file mode 100644
index 00000000000..c09cd9e5994
--- /dev/null
+++ b/net/transmission/patches/patch-libtransmission_platform-quota.c
@@ -0,0 +1,33 @@
+$NetBSD$
+
+Fix dragonflybsd build
+
+--- libtransmission/platform-quota.c.orig 2017-06-19 12:56:41.129003307 +0000
++++ libtransmission/platform-quota.c
+@@ -18,6 +18,8 @@
+ #include <sys/types.h> /* types needed by quota.h */
+ #if defined(__FreeBSD__) || defined(__OpenBSD__)
+ #include <ufs/ufs/quota.h> /* quotactl() */
++ #elif defined (__DragonFly__)
++ #include <vfs/ufs/quota.h> /* quotactl */
+ #elif defined (__NetBSD__)
+ #include <sys/param.h>
+ #ifndef statfs
+@@ -244,12 +246,16 @@ getquota (const char * device)
+ static int64_t
+ getquota (const char * device)
+ {
++#ifdef __DragonFly__
++ struct ufs_dqblk dq;
++#else
+ struct dqblk dq;
++#endif
+ int64_t limit;
+ int64_t freespace;
+ int64_t spaceused;
+
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__)
+ if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)
+ {
+ #elif defined(__sun)