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