Skip to content

Commit

Permalink
Corrections to the xd-torrent port
Browse files Browse the repository at this point in the history
  • Loading branch information
daviduhden committed Sep 11, 2024
1 parent 0c00d09 commit 0ac3d69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
13 changes: 1 addition & 12 deletions xd-torrent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,12 @@ HOMEPAGE = https://xd-torrent.github.io/
PERMIT_PACKAGE = Yes

MODULES = lang/go
BUILD_DEPENDS = devel/git

USE_GMAKE = Yes
SEPARATE_BUILD= Yes

do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/XD ${PREFIX}/bin
${INSTALL_DATA_DIR} ${SYSCONFDIR}/xd
${INSTALL_DATA} ${FILESDIR}/*.ini ${SYSCONFDIR}/xd/
${INSTALL_DATA_DIR} ${LOCALSTATEDIR}/xd
${INSTALL_DATA_DIR} ${LOCALSTATEDIR}/xd/metadata
${INSTALL_DATA_DIR} ${LOCALSTATEDIR}/xd/downloads
${INSTALL_DATA_DIR} ${LOCALSTATEDIR}/xd/seeding
${INSTALL_PROGRAM} ${WRKDIST}/XD ${PREFIX}/bin/

post-install:
ln -s XD ${PREFIX}/bin/XD-CLI
chmod 755 ${PREFIX}/bin/XD-CLI

.include "modules.inc"
.include <bsd.port.mk>
3 changes: 0 additions & 3 deletions xd-torrent/pkg/PLIST
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
@rcscript ${RCDIR}/xd
@bin bin/XD
bin/XD-CLI
@sample ${SYSCONFDIR}/xd/
@sample ${SYSCONFDIR}/xd/torrents.ini
@sample ${SYSCONFDIR}/xd/trackers.ini
@owner _xd
@group _xd
@sample ${LOCALSTATEDIR}/xd/
Expand Down
2 changes: 1 addition & 1 deletion xd-torrent/pkg/xd.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

daemon="${TRUEPREFIX}/bin/XD"
daemon_user="_xd"
daemon_flags="${SYSCONFDIR}/xd/torrents.ini"
daemon_flags="${LOCALSTATEDIR}/xd/torrents.ini"

. /etc/rc.d/rc.subr

Expand Down

0 comments on commit 0ac3d69

Please sign in to comment.