Ravenports generated: 01 Apr 2020 15:23
[ravenports.git] / bucket_34 / transmission
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               transmission
4 VERSION=                2.94
5 KEYWORDS=               net_p2p
6 VARIANTS=               standard daemon gtk qt web
7 SDESC[web]=             Lightweight BitTorrent client (web client)
8 SDESC[qt]=              Lightweight BitTorrent client (Qt GUI)
9 SDESC[standard]=        Lightweight BitTorrent client (CLI client)
10 SDESC[gtk]=             Lightweight BitTorrent client (GTK+ GUI)
11 SDESC[daemon]=          Lightweight BitTorrent client (daemon)
12 HOMEPAGE=               https://transmissionbt.com/
13 CONTACT=                nobody
14
15 DOWNLOAD_GROUPS=        main
16 SITES[main]=            https://github.com/transmission/transmission-releases/raw/master/
17 DISTFILE[1]=            transmission-2.94.tar.xz:main
18 DF_INDEX=               1
19 SPKGS[web]=             single
20 SPKGS[qt]=              single
21 SPKGS[standard]=        single
22 SPKGS[gtk]=             single
23 SPKGS[daemon]=          single
24
25 OPTIONS_AVAILABLE=      NOTSTD DAEMON GTK QT WEB
26 OPTIONS_STANDARD=       none
27 VOPTS[web]=             NOTSTD=ON DAEMON=OFF GTK=OFF QT=OFF WEB=ON
28 VOPTS[qt]=              NOTSTD=ON DAEMON=OFF GTK=OFF QT=ON WEB=OFF
29 VOPTS[gtk]=             NOTSTD=ON DAEMON=OFF GTK=ON QT=OFF WEB=OFF
30 VOPTS[daemon]=          NOTSTD=ON DAEMON=ON GTK=OFF QT=OFF WEB=OFF
31
32 LICENSE=                GPLv2:single GPLv3:single
33 LICENSE_TERMS=          single:{{WRKSRC}}/COPYING
34 LICENSE_FILE=           GPLv2:stock
35                         GPLv3:stock
36 LICENSE_SCHEME=         dual
37
38 CPE_VENDOR=             transmissionbt
39 FPC_EQUIVALENT=         net-p2p/transmission
40
41 CMAKE_ARGS=             -DENABLE_NLS:BOOL=ON
42                         -DUSE_SYSTEM_EVENT2:BOOL=ON
43                         -DUSE_SYSTEM_DHT:BOOL=ON
44                         -DUSE_SYSTEM_MINIUPNPC:BOOL=ON
45                         -DUSE_SYSTEM_NATPMP:BOOL=ON
46                         -DUSE_SYSTEM_UTP:BOOL=ON
47                         -DUSE_SYSTEM_B64:BOOL=ON
48
49 [NOTSTD].DESCRIPTION=                   Don't build CLI version
50 [NOTSTD].CMAKE_ARGS_OFF=                -DENABLE_CLI:BOOL=ON
51                                         -DENABLE_UTILS:BOOL=ON
52 [NOTSTD].CMAKE_ARGS_ON=                 -DENABLE_CLI:BOOL=OFF
53                                         -DENABLE_UTILS:BOOL=OFF
54
55 [WEB].DESCRIPTION=                      Build transmission web interface
56 [WEB].BUILDRUN_DEPENDS_OFF=             curl:primary:standard
57                                         libevent:single:standard
58                                         dht:single:standard
59                                         libb64:single:standard
60                                         libnatpmp:single:standard
61                                         libutp:single:standard
62                                         miniupnpc:single:standard
63 [WEB].USES_OFF=                         cpe
64                                         cmake
65                                         iconv
66                                         pkgconfig
67                                         ssl
68                                         zlib
69                                         gettext-runtime
70
71 [DAEMON].DESCRIPTION=                   Build daemon version of transmission
72 [DAEMON].CMAKE_ARGS_OFF=                -DENABLE_DAEMON:BOOL=OFF
73 [DAEMON].CMAKE_ARGS_ON=                 -DENABLE_DAEMON:BOOL=ON
74
75 [QT].DESCRIPTION=                       Build Qt version of transmission
76 [QT].BUILDRUN_DEPENDS_ON=               qt5-qtbase:primary:standard
77 [QT].BUILD_DEPENDS_ON=                  qt5-qttools:single:standard
78 [QT].CMAKE_ARGS_OFF=                    -DENABLE_QT:BOOL=OFF
79 [QT].CMAKE_ARGS_ON=                     -DENABLE_QT:BOOL=ON
80                                         -DUSE_QT5:BOOL=ON
81                                         -DCMAKE_PREFIX_PATH:PATH="{{PREFIX}}/lib/qt5/cmake/"
82 [QT].MAKE_ARGS_ON=                      DESTDIR="{{STAGEDIR}}"
83 [QT].USES_ON=                           qt5
84
85 [GTK].DESCRIPTION=                      Build GTK+ version of transmission
86 [GTK].BUILDRUN_DEPENDS_ON=              dbus-glib:primary:standard
87                                         libnotify:primary:standard
88 [GTK].CMAKE_ARGS_OFF=                   -DENABLE_GTK:BOOL=OFF
89 [GTK].CMAKE_ARGS_ON=                    -DENABLE_GTK:BOOL=ON
90 [GTK].GNOME_COMPONENTS_ON=              cairo
91                                         gdkpixbuf
92                                         gtk3
93                                         pango
94                                         intltool
95 [GTK].RUN_DEPENDS_ON=                   xdg-utils:single:standard
96 [GTK].USES_ON=                          gettext-tools:build
97                                         desktop-utils:single
98
99 post-patch:
100         # allow use of dht 0.26 (tranmission expects older 0.24)
101         ${REINPLACE_CMD} -e 's|dht/dht.h|dht.h|' \
102                 ${WRKSRC}/cmake/FindDHT.cmake \
103                 ${WRKSRC}/libtransmission/tr-dht.c
104
105 post-install-DAEMON-ON:
106         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/transmission/home
107
108 post-patch-WEB-ON:
109         ${FIND} ${WRKSRC}/web \( \
110                 -name '*.am' \
111                 -o -name '*.in' \
112                 -o -name '*.scss' \
113         \) -delete
114
115 do-install-WEB-ON:
116         (cd ${WRKSRC} && \
117         ${COPYTREE_SHARE} web ${STAGEDIR}${PREFIX}/share/transmission)
118         ${RM} ${STAGEDIR}${PREFIX}/share/transmission/web/LICENSE
119
120 post-install-WEB-OFF:
121         ${RM} -r ${STAGEDIR}${STD_DOCDIR}
122         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
123
124 [FILE:168:descriptions/desc.single.standard]
125 Transmission is a cross-platform BitTorrent client that is opensource,
126 easy, lean, native and powerful.
127
128 This package contains the Command-Line Interface (CLI) client.
129
130
131 [FILE:354:descriptions/desc.single.daemon]
132 Transmission is a cross-platform BitTorrent client that is opensource,
133 easy, lean, native and powerful.
134
135 This package contains the Transmission daemon.
136
137 The transmission-daemon is a daemon-based Transmission session that can
138 be controlled via RPC by transmission-remote (included) and other
139 Transmission BiTtorrent client such as GTK+ and CLI interface.
140
141
142 [FILE:148:descriptions/desc.single.gtk]
143 Transmission is a cross-platform BitTorrent client that is opensource,
144 easy, lean, native and powerful.
145
146 This package contains the GTK+ GUI client.
147
148
149 [FILE:370:descriptions/desc.single.qt]
150 Transmission is a cross-platform BitTorrent client that is opensource,
151 easy, lean, native and powerful.
152
153 This package contains the Qt GUI client.
154
155 This is the only Transmission client that can act as its own self-contained
156 session (as the GTK+ and Mac clients do), and can also connect to a remote
157 session (as the web client and transmission-remote terminal client do).
158
159
160 [FILE:523:descriptions/desc.single.web]
161 Transmission is a cross-platform BitTorrent client that is opensource,
162 easy, lean, native and powerful.
163
164 This package contains the Transmission Web Interface.
165
166 Transmission Web Interface (Clutch) is a WebUI for the Transmission
167 BitTorrent client. It allows you to manage your torrents from anywhere you
168 can access the internet, and runs on OS X and various flavors of *nix. It
169 provides most of the basic features of the desktop client, including
170 torrent upload, torrent start/stop, file path selection, speed limiting,
171 etc.
172
173 [FILE:103:distinfo]
174 35442cc849f91f8df982c3d0d479d650c6ca19310a994eccdaa79a4af3916b7d      3365952 transmission-2.94.tar.xz
175
176
177 [FILE:195:manifests/plist.single.standard]
178 bin/
179  transmission-cli
180  transmission-create
181  transmission-edit
182  transmission-show
183 share/man/man1/
184  transmission-cli.1.gz
185  transmission-create.1.gz
186  transmission-edit.1.gz
187  transmission-show.1.gz
188
189
190 [FILE:142:manifests/plist.single.daemon]
191 bin/
192  transmission-daemon
193  transmission-remote
194 share/man/man1/
195  transmission-daemon.1.gz
196  transmission-remote.1.gz
197 @dir etc/transmission/home
198
199
200 [FILE:4708:manifests/plist.single.gtk]
201 bin/transmission-gtk
202 share/applications/transmission-gtk.desktop
203 share/icons/hicolor/16x16/apps/transmission.png
204 share/icons/hicolor/22x22/apps/transmission.png
205 share/icons/hicolor/24x24/apps/transmission.png
206 share/icons/hicolor/256x256/apps/transmission.png
207 share/icons/hicolor/32x32/apps/transmission.png
208 share/icons/hicolor/48x48/apps/transmission.png
209 share/icons/hicolor/scalable/apps/transmission.svg
210 share/locale/an/LC_MESSAGES/transmission-gtk.mo
211 share/locale/ar/LC_MESSAGES/transmission-gtk.mo
212 share/locale/ast/LC_MESSAGES/transmission-gtk.mo
213 share/locale/az/LC_MESSAGES/transmission-gtk.mo
214 share/locale/be/LC_MESSAGES/transmission-gtk.mo
215 share/locale/be@latin/LC_MESSAGES/transmission-gtk.mo
216 share/locale/bg/LC_MESSAGES/transmission-gtk.mo
217 share/locale/bn/LC_MESSAGES/transmission-gtk.mo
218 share/locale/bo/LC_MESSAGES/transmission-gtk.mo
219 share/locale/br/LC_MESSAGES/transmission-gtk.mo
220 share/locale/bs/LC_MESSAGES/transmission-gtk.mo
221 share/locale/ca/LC_MESSAGES/transmission-gtk.mo
222 share/locale/ca@valencia/LC_MESSAGES/transmission-gtk.mo
223 share/locale/ceb/LC_MESSAGES/transmission-gtk.mo
224 share/locale/ckb/LC_MESSAGES/transmission-gtk.mo
225 share/locale/cs/LC_MESSAGES/transmission-gtk.mo
226 share/locale/da/LC_MESSAGES/transmission-gtk.mo
227 share/locale/de/LC_MESSAGES/transmission-gtk.mo
228 share/locale/el/LC_MESSAGES/transmission-gtk.mo
229 share/locale/en_AU/LC_MESSAGES/transmission-gtk.mo
230 share/locale/en_CA/LC_MESSAGES/transmission-gtk.mo
231 share/locale/en_GB/LC_MESSAGES/transmission-gtk.mo
232 share/locale/eo/LC_MESSAGES/transmission-gtk.mo
233 share/locale/es/LC_MESSAGES/transmission-gtk.mo
234 share/locale/et/LC_MESSAGES/transmission-gtk.mo
235 share/locale/eu/LC_MESSAGES/transmission-gtk.mo
236 share/locale/fa/LC_MESSAGES/transmission-gtk.mo
237 share/locale/fi/LC_MESSAGES/transmission-gtk.mo
238 share/locale/fil/LC_MESSAGES/transmission-gtk.mo
239 share/locale/fo/LC_MESSAGES/transmission-gtk.mo
240 share/locale/fr/LC_MESSAGES/transmission-gtk.mo
241 share/locale/ga/LC_MESSAGES/transmission-gtk.mo
242 share/locale/gl/LC_MESSAGES/transmission-gtk.mo
243 share/locale/gv/LC_MESSAGES/transmission-gtk.mo
244 share/locale/he/LC_MESSAGES/transmission-gtk.mo
245 share/locale/hi/LC_MESSAGES/transmission-gtk.mo
246 share/locale/hr/LC_MESSAGES/transmission-gtk.mo
247 share/locale/hu/LC_MESSAGES/transmission-gtk.mo
248 share/locale/hy/LC_MESSAGES/transmission-gtk.mo
249 share/locale/ia/LC_MESSAGES/transmission-gtk.mo
250 share/locale/id/LC_MESSAGES/transmission-gtk.mo
251 share/locale/is/LC_MESSAGES/transmission-gtk.mo
252 share/locale/it/LC_MESSAGES/transmission-gtk.mo
253 share/locale/ja/LC_MESSAGES/transmission-gtk.mo
254 share/locale/ka/LC_MESSAGES/transmission-gtk.mo
255 share/locale/kk/LC_MESSAGES/transmission-gtk.mo
256 share/locale/ko/LC_MESSAGES/transmission-gtk.mo
257 share/locale/ku/LC_MESSAGES/transmission-gtk.mo
258 share/locale/ky/LC_MESSAGES/transmission-gtk.mo
259 share/locale/li/LC_MESSAGES/transmission-gtk.mo
260 share/locale/lt/LC_MESSAGES/transmission-gtk.mo
261 share/locale/lv/LC_MESSAGES/transmission-gtk.mo
262 share/locale/mk/LC_MESSAGES/transmission-gtk.mo
263 share/locale/ml/LC_MESSAGES/transmission-gtk.mo
264 share/locale/mr/LC_MESSAGES/transmission-gtk.mo
265 share/locale/ms/LC_MESSAGES/transmission-gtk.mo
266 share/locale/mt/LC_MESSAGES/transmission-gtk.mo
267 share/locale/my/LC_MESSAGES/transmission-gtk.mo
268 share/locale/nb/LC_MESSAGES/transmission-gtk.mo
269 share/locale/nds/LC_MESSAGES/transmission-gtk.mo
270 share/locale/nl/LC_MESSAGES/transmission-gtk.mo
271 share/locale/nn/LC_MESSAGES/transmission-gtk.mo
272 share/locale/oc/LC_MESSAGES/transmission-gtk.mo
273 share/locale/pa/LC_MESSAGES/transmission-gtk.mo
274 share/locale/pl/LC_MESSAGES/transmission-gtk.mo
275 share/locale/pt/LC_MESSAGES/transmission-gtk.mo
276 share/locale/pt_BR/LC_MESSAGES/transmission-gtk.mo
277 share/locale/ro/LC_MESSAGES/transmission-gtk.mo
278 share/locale/ru/LC_MESSAGES/transmission-gtk.mo
279 share/locale/si/LC_MESSAGES/transmission-gtk.mo
280 share/locale/sk/LC_MESSAGES/transmission-gtk.mo
281 share/locale/sl/LC_MESSAGES/transmission-gtk.mo
282 share/locale/sq/LC_MESSAGES/transmission-gtk.mo
283 share/locale/sr/LC_MESSAGES/transmission-gtk.mo
284 share/locale/sv/LC_MESSAGES/transmission-gtk.mo
285 share/locale/sw/LC_MESSAGES/transmission-gtk.mo
286 share/locale/ta_LK/LC_MESSAGES/transmission-gtk.mo
287 share/locale/te/LC_MESSAGES/transmission-gtk.mo
288 share/locale/th/LC_MESSAGES/transmission-gtk.mo
289 share/locale/tl/LC_MESSAGES/transmission-gtk.mo
290 share/locale/tr/LC_MESSAGES/transmission-gtk.mo
291 share/locale/ug/LC_MESSAGES/transmission-gtk.mo
292 share/locale/uk/LC_MESSAGES/transmission-gtk.mo
293 share/locale/ur/LC_MESSAGES/transmission-gtk.mo
294 share/locale/uz/LC_MESSAGES/transmission-gtk.mo
295 share/locale/vi/LC_MESSAGES/transmission-gtk.mo
296 share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo
297 share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo
298 share/man/man1/transmission-gtk.1.gz
299
300
301 [FILE:464:manifests/plist.single.qt]
302 bin/transmission-qt
303 share/applications/transmission-qt.desktop
304 share/man/man1/transmission-qt.1.gz
305 share/transmission/translations/
306  transmission_de.qm
307  transmission_en.qm
308  transmission_es.qm
309  transmission_eu.qm
310  transmission_fr.qm
311  transmission_hu.qm
312  transmission_id.qm
313  transmission_it_IT.qm
314  transmission_kk.qm
315  transmission_ko.qm
316  transmission_lt.qm
317  transmission_pl_PL.qm
318  transmission_pt_BR.qm
319  transmission_ru.qm
320  transmission_uk.qm
321  transmission_zh_CN.qm
322
323
324 [FILE:1648:manifests/plist.single.web]
325 share/transmission/web/index.html
326 share/transmission/web/images/
327  favicon.ico
328  favicon.png
329  webclip-icon.png
330 share/transmission/web/javascript/
331  common.js
332  dialog.js
333  file-row.js
334  formatter.js
335  inspector.js
336  notifications.js
337  prefs-dialog.js
338  remote.js
339  torrent-row.js
340  torrent.js
341  transmission.js
342 share/transmission/web/javascript/jquery/
343  jquery-migrate.min.js
344  jquery-ui.min.js
345  jquery.min.js
346  jquery.transmenu.min.js
347  jquery.ui-contextmenu.min.js
348  json2.min.js
349 share/transmission/web/style/jqueryui/jquery-ui.min.css
350 share/transmission/web/style/jqueryui/images/
351  ui-bg_flat_0_aaaaaa_40x100.png
352  ui-bg_flat_75_ffffff_40x100.png
353  ui-bg_glass_55_fbf9ee_1x400.png
354  ui-bg_glass_65_ffffff_1x400.png
355  ui-bg_glass_75_dadada_1x400.png
356  ui-bg_glass_75_e6e6e6_1x400.png
357  ui-bg_glass_95_fef1ec_1x400.png
358  ui-bg_highlight-soft_75_cccccc_1x100.png
359  ui-icons_222222_256x240.png
360  ui-icons_2e83ff_256x240.png
361  ui-icons_454545_256x240.png
362  ui-icons_888888_256x240.png
363  ui-icons_cd0a0a_256x240.png
364 share/transmission/web/style/transmission/
365  common.css
366  mobile.css
367 share/transmission/web/style/transmission/images/
368  arrow-down.png
369  arrow-up.png
370  blue-turtle.png
371  compact.png
372  file-priority-high.png
373  file-priority-low.png
374  file-priority-normal.png
375  filter_bar.png
376  filter_icon.png
377  inspector-files.png
378  inspector-info.png
379  inspector-peers.png
380  inspector-trackers.png
381  lock_icon.png
382  logo.png
383  progress.png
384  settings.png
385  toolbar-close.png
386  toolbar-folder.png
387  toolbar-info.png
388  toolbar-pause-all.png
389  toolbar-pause.png
390  toolbar-start-all.png
391  toolbar-start.png
392  turtle.png
393  wrench.png
394 share/transmission/web/style/transmission/images/buttons/torrent_buttons.png
395
396
397 [FILE:768:patches/patch-CMakeLists.txt]
398 --- CMakeLists.txt.orig 2018-07-09 22:28:43 UTC
399 +++ CMakeLists.txt
400 @@ -511,9 +511,9 @@ endif()
401  # endif()
402  
403  if(ENABLE_NLS)
404 -    check_library_exists(intl libintl_gettext "" HAVE_LIBINTL)
405 -    if(HAVE_LIBINTL)
406 -        set(LIBINTL_LIBRARY intl)
407 +    find_package(Intl)
408 +    if(Intl_FOUND)
409 +        set(LIBINTL_LIBRARY ${Intl_LIBRARIES})
410      endif()
411  endif()
412  
413 @@ -536,13 +536,6 @@ foreach(P daemon cli utils gtk qt)
414      endif()
415  endforeach()
416  
417 -if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
418 -    install(DIRECTORY web DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME}
419 -        PATTERN *.am EXCLUDE
420 -        PATTERN *.in EXCLUDE
421 -        PATTERN *.scss EXCLUDE)
422 -endif()
423 -
424  if(ENABLE_GTK AND ENABLE_NLS)
425      find_package(Gettext REQUIRED)
426      add_subdirectory(po)
427
428
429 [FILE:1560:patches/patch-gtk_CMakeLists.txt]
430 --- gtk/CMakeLists.txt.orig     2018-05-01 17:18:29 UTC
431 +++ gtk/CMakeLists.txt
432 @@ -48,15 +48,22 @@ add_custom_command(
433          ${CMAKE_CURRENT_SOURCE_DIR}
434  )
435  
436 +set(${PROJECT_NAME}_DESKTOP_FILE "${PROJECT_BINARY_DIR}/${TR_NAME}-gtk.desktop")
437  if(ENABLE_NLS)
438      find_program(INTLTOOL_MERGE_EXECUTABLE intltool-merge REQUIRED)
439 -    set(${PROJECT_NAME}_DESKTOP_FILE "${PROJECT_BINARY_DIR}/${TR_NAME}-gtk.desktop")
440      add_custom_command(
441          OUTPUT ${${PROJECT_NAME}_DESKTOP_FILE}
442          COMMAND ${INTLTOOL_MERGE_EXECUTABLE} --desktop-style --utf8 ${CMAKE_SOURCE_DIR}/po ${PROJECT_SOURCE_DIR}/transmission-gtk.desktop.in ${${PROJECT_NAME}_DESKTOP_FILE}
443          DEPENDS ${PROJECT_SOURCE_DIR}/transmission-gtk.desktop.in
444          VERBATIM
445      )
446 +else()
447 +    add_custom_command(
448 +        OUTPUT ${${PROJECT_NAME}_DESKTOP_FILE}
449 +        COMMAND sed s/^_// ${PROJECT_SOURCE_DIR}/transmission-gtk.desktop.in > ${${PROJECT_NAME}_DESKTOP_FILE}
450 +        DEPENDS ${PROJECT_SOURCE_DIR}/transmission-gtk.desktop.in
451 +        VERBATIM
452 +    )
453  endif()
454  
455  set(${PROJECT_NAME}_SOURCES
456 @@ -186,8 +193,4 @@ if(INSTALL_DOC)
457      install(FILES ${TR_NAME}-gtk.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
458  endif()
459  
460 -if(ENABLE_NLS)
461 -    install(FILES ${${PROJECT_NAME}_DESKTOP_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
462 -else()
463 -    install(FILES transmission-gtk.desktop.in DESTINATION ${CMAKE_INSTALL_DATADIR}/applications RENAME ${TR_NAME}-gtk.desktop)
464 -endif()
465 +install(FILES ${${PROJECT_NAME}_DESKTOP_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
466
467
468 [FILE:571:patches/patch-libtransmission_CMakeLists.txt]
469 --- libtransmission/CMakeLists.txt.orig 2018-07-10 05:34:13 UTC
470 +++ libtransmission/CMakeLists.txt
471 @@ -281,7 +281,7 @@ if(ENABLE_TESTS)
472              set(${TP}_TEST_BASENAME "${T}")
473          endif()
474          add_executable(${TP} ${${TP}_TEST_BASENAME}-test.c ${${T}-test_ADD_SOURCES})
475 -        target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test)
476 +        target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test ${DHT_LIBRARIES})
477          if(DEFINED ${T}-test_DEFINITIONS)
478              target_compile_definitions(${TP} PRIVATE ${${T}-test_DEFINITIONS})
479          endif()
480
481
482 [FILE:1343:patches/patch-libtransmission_platform-quota.c]
483 --- libtransmission/platform-quota.c.orig       2015-03-27 12:44:20 UTC
484 +++ libtransmission/platform-quota.c
485 @@ -18,6 +18,8 @@
486   #include <sys/types.h> /* types needed by quota.h */
487   #if defined(__FreeBSD__) || defined(__OpenBSD__)
488    #include <ufs/ufs/quota.h> /* quotactl() */
489 + #elif defined (__DragonFly__)
490 +  #include <vfs/ufs/quota.h> /* quotactl() */
491   #elif defined (__NetBSD__)
492    #include <sys/param.h>
493    #ifndef statfs
494 @@ -244,12 +246,17 @@ getquota (const char * device)
495  static int64_t
496  getquota (const char * device)
497  {
498 +#ifdef __DragonFly__
499 +  struct ufs_dqblk dq;
500 +#else
501    struct dqblk dq;
502 +#endif
503    int64_t limit;
504    int64_t freespace;
505    int64_t spaceused;
506  
507 -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
508 +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) \
509 + || defined(__DragonFly__)
510    if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)
511      {
512  #elif defined(__sun)
513 @@ -281,7 +288,7 @@ getquota (const char * device)
514            /* No quota enabled for this user */
515            return -1;
516          }
517 -#if defined(__FreeBSD__) || defined(__OpenBSD__)
518 +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
519        spaceused = (int64_t) dq.dqb_curblocks >> 1;
520  #elif defined(__APPLE__)
521        spaceused = (int64_t) dq.dqb_curbytes;
522
523
524 [FILE:456:patches/patch-libtransmission_tr-dht.c]
525 --- libtransmission/tr-dht.c.orig       2018-12-27 04:04:08 UTC
526 +++ libtransmission/tr-dht.c
527 @@ -694,6 +694,11 @@ dht_random_bytes (void * buf, size_t size)
528      return size;
529  }
530  
531 +int dht_sendto(int sockfd, void const* buf, int len, int flags, struct sockaddr const* to, int tolen)
532 +{
533 +    return sendto(sockfd, buf, len, flags, to, tolen);
534 +}
535 +
536  #if defined (_WIN32) && !defined (__MINGW32__)
537  int
538  dht_gettimeofday (struct timeval * tv, struct timezone * tz)
539
540
541 [FILE:198:patches/patch-qt_Application.h]
542 --- qt/Application.h.orig       2018-07-04 17:44:30 UTC
543 +++ qt/Application.h
544 @@ -15,6 +15,7 @@
545  #include <QTimer>
546  #include <QTranslator>
547  
548 +#include <time.h>
549  #include "FaviconCache.h"
550  
551  class AddData;
552
553
554 [FILE:129:files/special.mk]
555 .if "${VARIANT}" == "web"
556 do-build:
557         @echo "Skipping build of the Transmission web interface."
558
559 do-install:
560         # do nothing
561 .endif
562
563
564 [FILE:2779:files/transmission.in]
565 #!/bin/sh
566 #
567 # $FreeBSD$
568 #
569 # PROVIDE: transmission
570 # REQUIRE: DAEMON
571 # KEYWORD: shutdown
572 #
573 # Add the following lines to /etc/rc.conf to enable this service:
574 #
575 # transmission_enable:       Set to NO by default. Set it to YES to enable it.
576 # transmission_watch_dir:    Directory for torrent files to download
577 #                            automatically. Off by default unless you add
578 #                            a path.
579 # transmission_conf_dir:     Directory where transmission configuration
580 #                            data is stored.
581 #                            Default: %%PREFIX%%/etc/transmission/home
582 # transmission_download_dir: Directory to store downloaded data.
583 #                            Default: %%PREFIX%%/etc/transmission/home/Downloads
584 # transmission_user:         The user account transmission daemon runs as what
585 #                            you want it to be. It uses 'transmission' user by
586 #                            default.
587 # transmission_web_home:     Use alternative directory for the web interface
588 #                            files, such as javascript, html and graphics.
589 # transmission_chown:        By default, transmission checks and fixes the
590 #                            permissions for its home directory.  If this
591 #                            causes problems, set this variable to no.
592 #
593
594 . /etc/rc.subr
595
596 name=transmission
597 rcvar=transmission_enable
598
599 load_rc_config $name
600
601 : ${transmission_enable:=NO}
602 : ${transmission_conf_dir=%%PREFIX%%/etc/transmission/home}
603 : ${transmission_download_dir=%%PREFIX%%/etc/transmission/home/Downloads}
604 : ${transmission_user:=transmission}
605 transmission_group=${transmission_group:-$transmission_user}
606 : ${transmission_chown:=yes}
607
608 command=%%PREFIX%%/bin/transmission-daemon
609 pidfile=/var/run/transmission/daemon.pid
610 extra_commands=reload
611 start_precmd=transmission_prestart
612
613 transmission_flags=" \
614         ${transmission_watch_dir:+-c ${transmission_watch_dir}} \
615         ${transmission_conf_dir:+-g ${transmission_conf_dir}} \
616         ${transmission_download_dir:+-w ${transmission_download_dir}} \
617         ${pidfile:+-x $pidfile} \
618         ${transmission_flags}"
619
620 transmission_prestart()
621 {
622         install -d -o $transmission_user ${pidfile%/*}
623         if checkyesno transmission_chown; then
624                 mkdir -p $transmission_conf_dir $transmission_download_dir
625                 chown $transmission_user:$transmission_group $transmission_download_dir
626                 chown -R $transmission_user:$transmission_group $transmission_conf_dir
627                 chgrp $transmission_group $transmission_conf_dir
628                 chmod 750 $transmission_conf_dir
629         fi
630         if [ -n "$transmission_web_home" ]; then
631                 TRANSMISSION_WEB_HOME=$transmission_web_home
632                 export TRANSMISSION_WEB_HOME
633         fi
634 }
635
636 # Unfortunately there was a typo in a previous version, which may have
637 # left some people with /var/run/transmission/damon.pid .  Deal with
638 # this for a few months at least, until everyone will have restarted
639 # transmission
640 if [ ! -f $pidfile -a -f /var/run/transmission/damon.pid ]; then
641         pidfile=/var/run/transmission/damon.pid
642 fi
643
644 run_rc_command $1
645