1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
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/
16 SITES[main]= https://github.com/transmission/transmission-releases/raw/master/
17 DISTFILE[1]= transmission-2.94.tar.xz:main
21 SPKGS[standard]= single
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
32 LICENSE= GPLv2:single GPLv3:single
33 LICENSE_TERMS= single:{{WRKSRC}}/COPYING
34 LICENSE_FILE= GPLv2:stock
38 CPE_VENDOR= transmissionbt
39 FPC_EQUIVALENT= net-p2p/transmission
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
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
55 [WEB].DESCRIPTION= Build transmission web interface
56 [WEB].BUILDRUN_DEPENDS_OFF= curl:primary:standard
57 libevent:single:standard
59 libb64:single:standard
60 libnatpmp:single:standard
61 libutp:single:standard
62 miniupnpc:single:standard
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
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
81 -DCMAKE_PREFIX_PATH:PATH="{{PREFIX}}/lib/qt5/cmake/"
82 [QT].MAKE_ARGS_ON= DESTDIR="{{STAGEDIR}}"
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
95 [GTK].RUN_DEPENDS_ON= xdg-utils:single:standard
96 [GTK].USES_ON= gettext-tools:build
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
105 post-install-DAEMON-ON:
106 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/transmission/home
109 ${FIND} ${WRKSRC}/web \( \
117 ${COPYTREE_SHARE} web ${STAGEDIR}${PREFIX}/share/transmission)
118 ${RM} ${STAGEDIR}${PREFIX}/share/transmission/web/LICENSE
120 post-install-WEB-OFF:
121 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
122 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
124 [FILE:168:descriptions/desc.single.standard]
125 Transmission is a cross-platform BitTorrent client that is opensource,
126 easy, lean, native and powerful.
128 This package contains the Command-Line Interface (CLI) client.
131 [FILE:354:descriptions/desc.single.daemon]
132 Transmission is a cross-platform BitTorrent client that is opensource,
133 easy, lean, native and powerful.
135 This package contains the Transmission daemon.
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.
142 [FILE:148:descriptions/desc.single.gtk]
143 Transmission is a cross-platform BitTorrent client that is opensource,
144 easy, lean, native and powerful.
146 This package contains the GTK+ GUI client.
149 [FILE:370:descriptions/desc.single.qt]
150 Transmission is a cross-platform BitTorrent client that is opensource,
151 easy, lean, native and powerful.
153 This package contains the Qt GUI client.
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).
160 [FILE:523:descriptions/desc.single.web]
161 Transmission is a cross-platform BitTorrent client that is opensource,
162 easy, lean, native and powerful.
164 This package contains the Transmission Web Interface.
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,
174 35442cc849f91f8df982c3d0d479d650c6ca19310a994eccdaa79a4af3916b7d 3365952 transmission-2.94.tar.xz
177 [FILE:195:manifests/plist.single.standard]
184 transmission-cli.1.gz
185 transmission-create.1.gz
186 transmission-edit.1.gz
187 transmission-show.1.gz
190 [FILE:142:manifests/plist.single.daemon]
195 transmission-daemon.1.gz
196 transmission-remote.1.gz
197 @dir etc/transmission/home
200 [FILE:4708:manifests/plist.single.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
301 [FILE:464:manifests/plist.single.qt]
303 share/applications/transmission-qt.desktop
304 share/man/man1/transmission-qt.1.gz
305 share/transmission/translations/
313 transmission_it_IT.qm
317 transmission_pl_PL.qm
318 transmission_pt_BR.qm
321 transmission_zh_CN.qm
324 [FILE:1648:manifests/plist.single.web]
325 share/transmission/web/index.html
326 share/transmission/web/images/
330 share/transmission/web/javascript/
342 share/transmission/web/javascript/jquery/
343 jquery-migrate.min.js
346 jquery.transmenu.min.js
347 jquery.ui-contextmenu.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/
367 share/transmission/web/style/transmission/images/
372 file-priority-high.png
373 file-priority-low.png
374 file-priority-normal.png
380 inspector-trackers.png
388 toolbar-pause-all.png
390 toolbar-start-all.png
394 share/transmission/web/style/transmission/images/buttons/torrent_buttons.png
397 [FILE:768:patches/patch-CMakeLists.txt]
398 --- CMakeLists.txt.orig 2018-07-09 22:28:43 UTC
400 @@ -511,9 +511,9 @@ endif()
404 - check_library_exists(intl libintl_gettext "" HAVE_LIBINTL)
406 - set(LIBINTL_LIBRARY intl)
409 + set(LIBINTL_LIBRARY ${Intl_LIBRARIES})
413 @@ -536,13 +536,6 @@ foreach(P daemon cli utils gtk qt)
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)
424 if(ENABLE_GTK AND ENABLE_NLS)
425 find_package(Gettext REQUIRED)
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}
436 +set(${PROJECT_NAME}_DESKTOP_FILE "${PROJECT_BINARY_DIR}/${TR_NAME}-gtk.desktop")
438 find_program(INTLTOOL_MERGE_EXECUTABLE intltool-merge REQUIRED)
439 - set(${PROJECT_NAME}_DESKTOP_FILE "${PROJECT_BINARY_DIR}/${TR_NAME}-gtk.desktop")
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
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
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)
461 - install(FILES ${${PROJECT_NAME}_DESKTOP_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
463 - install(FILES transmission-gtk.desktop.in DESTINATION ${CMAKE_INSTALL_DATADIR}/applications RENAME ${TR_NAME}-gtk.desktop)
465 +install(FILES ${${PROJECT_NAME}_DESKTOP_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
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}")
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})
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
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>
494 @@ -244,12 +246,17 @@ getquota (const char * device)
496 getquota (const char * device)
498 +#ifdef __DragonFly__
499 + struct ufs_dqblk dq;
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)
513 @@ -281,7 +288,7 @@ getquota (const char * device)
514 /* No quota enabled for this user */
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;
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)
531 +int dht_sendto(int sockfd, void const* buf, int len, int flags, struct sockaddr const* to, int tolen)
533 + return sendto(sockfd, buf, len, flags, to, tolen);
536 #if defined (_WIN32) && !defined (__MINGW32__)
538 dht_gettimeofday (struct timeval * tv, struct timezone * tz)
541 [FILE:198:patches/patch-qt_Application.h]
542 --- qt/Application.h.orig 2018-07-04 17:44:30 UTC
546 #include <QTranslator>
549 #include "FaviconCache.h"
554 [FILE:129:files/special.mk]
555 .if "${VARIANT}" == "web"
557 @echo "Skipping build of the Transmission web interface."
564 [FILE:2779:files/transmission.in]
569 # PROVIDE: transmission
573 # Add the following lines to /etc/rc.conf to enable this service:
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
579 # transmission_conf_dir: Directory where transmission configuration
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
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.
597 rcvar=transmission_enable
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}
608 command=%%PREFIX%%/bin/transmission-daemon
609 pidfile=/var/run/transmission/daemon.pid
610 extra_commands=reload
611 start_precmd=transmission_prestart
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}"
620 transmission_prestart()
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
630 if [ -n "$transmission_web_home" ]; then
631 TRANSMISSION_WEB_HOME=$transmission_web_home
632 export TRANSMISSION_WEB_HOME
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
640 if [ ! -f $pidfile -a -f /var/run/transmission/damon.pid ]; then
641 pidfile=/var/run/transmission/damon.pid