Index: head/net-p2p/Makefile =================================================================== --- head/net-p2p/Makefile (revision 512296) +++ head/net-p2p/Makefile (revision 512297) @@ -1,99 +1,100 @@ # $FreeBSD$ # COMMENT = Peer-to-peer network applications SUBDIR += amule SUBDIR += amule-devel SUBDIR += awgg SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitflu SUBDIR += bnbt SUBDIR += btpd SUBDIR += couchpotato SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent SUBDIR += dclib SUBDIR += deluge SUBDIR += deluge-cli SUBDIR += ed2k SUBDIR += edonkey-tool-hash SUBDIR += eiskaltdcpp-cli SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib SUBDIR += frost SUBDIR += gkremldk SUBDIR += go-ethereum SUBDIR += gtk-gnutella SUBDIR += gtorrentviewer SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libbt SUBDIR += liberator SUBDIR += libktorrent SUBDIR += libpdtp SUBDIR += libswift SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar SUBDIR += lidarr SUBDIR += linuxdcpp SUBDIR += litecoin SUBDIR += litecoin-daemon SUBDIR += litecoin-utils SUBDIR += microdc2 SUBDIR += minder SUBDIR += mktorrent SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += namecoin-utils SUBDIR += ncdc SUBDIR += opendchub SUBDIR += p5-Net-BitTorrent SUBDIR += p5-Net-BitTorrent-File SUBDIR += p5-Net-BitTorrent-PeerPacket SUBDIR += p5-Net-DirectConnect SUBDIR += p5-WWW-BitTorrent SUBDIR += phex SUBDIR += py-libtorrent-rasterbar SUBDIR += py-py2play SUBDIR += py-transmissionrpc SUBDIR += py-tremc SUBDIR += py-vertex SUBDIR += qbittorrent SUBDIR += qtum SUBDIR += radarr SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += shx SUBDIR += sonarr + SUBDIR += sonarr-devel SUBDIR += squall SUBDIR += torrent-file-editor SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-cli SUBDIR += transmission-daemon SUBDIR += transmission-gtk SUBDIR += transmission-qt SUBDIR += transmission-remote-gui SUBDIR += tribler SUBDIR += uhub SUBDIR += vuze SUBDIR += xmrig SUBDIR += zetacoin SUBDIR += zetacoin-daemon SUBDIR += zetacoin-utils .include Index: head/net-p2p/sonarr-devel/Makefile =================================================================== --- head/net-p2p/sonarr-devel/Makefile (nonexistent) +++ head/net-p2p/sonarr-devel/Makefile (revision 512297) @@ -0,0 +1,47 @@ +# $FreeBSD$ + +PORTNAME= sonarr +PORTVERSION= 3.0.3.644 +PORTREVISION= 0 +CATEGORIES= net-p2p +MASTER_SITES= http://download.sonarr.tv/v3/phantom-develop/${PORTVERSION}/ +PKGNAMESUFFIX= -devel +DISTNAME= Sonarr.phantom-develop.${PORTVERSION}.linux + +MAINTAINER= feld@FreeBSD.org +COMMENT= PVR for Usenet and BitTorrent users + +LICENSE= GPLv3 + +RUN_DEPENDS= mono>4.6.1:lang/mono \ + mediainfo>0:multimedia/mediainfo \ + sqlite3>0:databases/sqlite3 +LIB_DEPENDS= libcurl.so:ftp/curl + +USE_RC_SUBR= sonarr + +NO_ARCH= YES +NO_BUILD= YES +WRKSRC= ${WRKDIR}/Sonarr + +USERS= sonarr +GROUPS= sonarr + +OPTIONS_DEFINE= X11 + +# Permits image resizing +X11_LIB_DEPENDS+=libgdiplus.so:x11-toolkits/libgdiplus + +CONFLICTS= sonarr-2* + +.include + +do-install: + ${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR} + +post-install: + @${FIND} -s ${STAGEDIR}${DATADIR} -not -type d | ${SORT} | \ + ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} + +.include Property changes on: head/net-p2p/sonarr-devel/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/sonarr-devel/distinfo =================================================================== --- head/net-p2p/sonarr-devel/distinfo (nonexistent) +++ head/net-p2p/sonarr-devel/distinfo (revision 512297) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568844081 +SHA256 (Sonarr.phantom-develop.3.0.3.644.linux.tar.gz) = e2baed5e3ec1c1804813a173313101c9fabb4921da09aa42ca0197ff371246d4 +SIZE (Sonarr.phantom-develop.3.0.3.644.linux.tar.gz) = 10146222 Property changes on: head/net-p2p/sonarr-devel/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/sonarr-devel/files/sonarr.in =================================================================== --- head/net-p2p/sonarr-devel/files/sonarr.in (nonexistent) +++ head/net-p2p/sonarr-devel/files/sonarr.in (revision 512297) @@ -0,0 +1,45 @@ +#!/bin/sh +# +# Author: Mark Felder +# +# $FreeBSD$ +# + +# PROVIDE: sonarr +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable sonarr: +# sonarr_enable="YES" + +. /etc/rc.subr + +name="sonarr" +rcvar=sonarr_enable + +load_rc_config $name + +: ${sonarr_enable="NO"} +: ${sonarr_user:="sonarr"} +: ${sonarr_data_dir:="%%PREFIX%%/sonarr"} + +pidfile="${sonarr_data_dir}/sonarr.pid" +procname="%%PREFIX%%/bin/mono" +command="/usr/sbin/daemon" +command_args="-f ${procname} %%DATADIR%%/Sonarr.exe --nobrowser --data=${sonarr_data_dir}" +start_precmd=sonarr_precmd + +sonarr_precmd() +{ + export XDG_CONFIG_HOME=${sonarr_data_dir} + + if [ ! -d ${sonarr_data_dir} ]; then + install -d -o ${sonarr_user} ${sonarr_data_dir} + fi + + # Unwritable pids allow the service to start, but fails to work + # Rare, but if you are debugging as root and accidentally start the service... + /bin/rm -f ${pidfile} +} + +run_rc_command "$1" Property changes on: head/net-p2p/sonarr-devel/files/sonarr.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/sonarr-devel/pkg-descr =================================================================== --- head/net-p2p/sonarr-devel/pkg-descr (nonexistent) +++ head/net-p2p/sonarr-devel/pkg-descr (revision 512297) @@ -0,0 +1,3 @@ +Sonarr is a PVR for Usenet and BitTorrent users. + +WWW: https://sonarr.tv Property changes on: head/net-p2p/sonarr-devel/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property