View | Details | Raw Unified | Return to bug 239465 | Differences between
and this patch

Collapse All | Expand All

(-)audio/spotifyd/Makefile (-2 / +6 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	spotifyd
3
PORTNAME=	spotifyd
4
DISTVERSION=	0.2.9
4
DISTVERSION=	0.2.9
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	audio
6
CATEGORIES=	audio
7
7
8
MAINTAINER=	tobik@FreeBSD.org
8
MAINTAINER=	tobik@FreeBSD.org
Lines 15-20 LIB_DEPENDS= libogg.so:audio/libogg Link Here
15
15
16
USES=		cargo ssl:build
16
USES=		cargo ssl:build
17
USE_GITHUB=	yes
17
USE_GITHUB=	yes
18
USE_RC_SUBR=	${PORTNAME}
19
18
GH_ACCOUNT=	Spotifyd
20
GH_ACCOUNT=	Spotifyd
19
GH_TUPLE=	plietar:dns-parser:1d3e5a5591bc72eb061c23bd426c4a25f2f73791:dnsparser \
21
GH_TUPLE=	plietar:dns-parser:1d3e5a5591bc72eb061c23bd426c4a25f2f73791:dnsparser \
20
		librespot-org:librespot:5d2cb32e20815f3b7879962e8af2fb9ef4c3870d:librespot \
22
		librespot-org:librespot:5d2cb32e20815f3b7879962e8af2fb9ef4c3870d:librespot \
Lines 337-343 CARGO_BUILD_ARGS= --no-default-features Link Here
337
CARGO_INSTALL_ARGS=	--no-default-features
339
CARGO_INSTALL_ARGS=	--no-default-features
338
CARGO_TEST_ARGS=	--no-default-features
340
CARGO_TEST_ARGS=	--no-default-features
339
341
340
PLIST_FILES=	bin/spotifyd
342
PLIST_FILES=	bin/spotifyd \
343
		"@sample ${PREFIX}/etc/spotifyd.conf.sample"
341
PORTDOCS=	README.md
344
PORTDOCS=	README.md
342
345
343
OPTIONS_DEFINE=		DBUS DOCS PORTAUDIO PULSEAUDIO
346
OPTIONS_DEFINE=		DBUS DOCS PORTAUDIO PULSEAUDIO
Lines 359-364 post-patch: Link Here
359
362
360
post-install:
363
post-install:
361
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotifyd
364
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotifyd
365
	${INSTALL_DATA} ${FILESDIR}/spotifyd.conf ${STAGEDIR}${PREFIX}/etc/spotifyd.conf.sample
362
366
363
post-install-DOCS-on:
367
post-install-DOCS-on:
364
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
368
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)audio/spotifyd/files/spotifyd.conf (+3 lines)
Added Link Here
1
[global]
2
username = user
3
password = pass
(-)audio/spotifyd/files/spotifyd.in (+38 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: spotifyd
4
# REQUIRE: DAEMON NETWORKING
5
# KEYWORD: shutdown
6
7
#
8
# Add the following lines to /etc/rc.conf.local, /etc/rc.conf or
9
# /etc/rc.conf.d/spotifyd to enable this service:
10
#
11
# spotifyd_enable (bool):       Set to NO by default.
12
#                               Set it to "YES" to enable spotifyd.
13
# spotifyd_config (str):        Set to $PREFIX/etc/etc/spotifyd.conf by default.
14
#                               Path to configuration file.
15
16
. /etc/rc.subr
17
18
name=spotifyd
19
rcvar=spotifyd_enable
20
start_precmd="${name}_precmd"
21
22
load_rc_config $name
23
24
: ${spotifyd_enable:="NO"}
25
: ${spotifyd_config:="%%PREFIX%%/etc/spotifyd.conf"}
26
27
pidfile="/var/run/${name}/${name}.pid"
28
procname="%%PREFIX%%/bin/${name}"
29
command="/usr/sbin/daemon"
30
spotifyd_args="-c ${spotifyd_config}"
31
command_args="-S -m 3 -s "info" -l "daemon" -p ${pidfile} ${procname} --no-daemon ${spotifyd_args}"
32
33
spotifyd_precmd()
34
{
35
        /usr/bin/install -d -m 0755 -o ${spotifyd_user} /var/run/${name}
36
}
37
38
run_rc_command "$1"

Return to bug 239465