summaryrefslogtreecommitdiff
path: root/net-p2p/libswift/files/libswift.in
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2025-05-04 13:40:43 +0200
committerRene Ladan <rene@FreeBSD.org>2025-05-04 13:40:43 +0200
commit8e18c01407a236d1061762c543362878451f1f74 (patch)
tree77b8bc6ac7501479853443507209843d7c04ad17 /net-p2p/libswift/files/libswift.in
parentnet-p2p/p5-Net-BitTorrent-File: Remove expired port (diff)
net-p2p/libswift: Remove expired port
2025-04-30 net-p2p/libswift: Upstream archived repo on Feb 19, 2024 and no active development in several years
Diffstat (limited to 'net-p2p/libswift/files/libswift.in')
-rw-r--r--net-p2p/libswift/files/libswift.in48
1 files changed, 0 insertions, 48 deletions
diff --git a/net-p2p/libswift/files/libswift.in b/net-p2p/libswift/files/libswift.in
deleted file mode 100644
index 9bc41cdf9fb7..000000000000
--- a/net-p2p/libswift/files/libswift.in
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: libswift
-# REQUIRE: LOGIN NETWORKING SERVERS
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
-# to enable this service:
-#
-# libswift_enable (bool): Set to NO by default.
-# Set it to YES to enable swift.
-#
-# libswift_user (user): Set to www by default.
-# libswift_group (group): Set to www by default.
-# libswift_port (num): Port for daemon to listen on, 7777 by default.
-# libswift_dir (string): Optional full path to streaming content directory.
-
-. /etc/rc.subr
-
-name=libswift
-rcvar=libswift_enable
-
-load_rc_config ${name}
-
-# defaults
-libswift_enable=${libswift_enable:-"NO"}
-libswift_user=${libswift_user:-"www"}
-libswift_port=${libswift_port:-"7777"}
-libswift_dir=${libswift_dir:-"/var/db/${name}"}
-libswift_options=${libswift_options:-" --dir ${libswift_dir} --listen ${libswift_port}"}
-
-# daemon
-
-libswift_pidfile="%%SWIFT_PIDDIR%%${name}.pid"
-procname="%%PREFIX%%/bin/${name}"
-
-command=/usr/sbin/daemon
-command_args=" -c -f -p ${libswift_pidfile} ${procname} ${libswift_flags} ${libswift_options}"
-
-start_precmd=libswift_precmd
-
-libswift_precmd()
-{
- # create empty pidfile with correct permissions
- install -o ${libswift_user} /dev/null ${libswift_pidfile}
-}
-
-run_rc_command "$1"