aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2009-12-18 07:23:35 +0800
committerpgollucci <pgollucci@FreeBSD.org>2009-12-18 07:23:35 +0800
commit6d1dadf748631eb466830da9dee82796ef72ab4c (patch)
tree1391b228535c5d3763e37b83f111df66bbc88e15 /net-p2p
parent7ee52e434de89066f7db9a63b53109845da44f78 (diff)
downloadfreebsd-ports-gnome-6d1dadf748631eb466830da9dee82796ef72ab4c.tar.gz
freebsd-ports-gnome-6d1dadf748631eb466830da9dee82796ef72ab4c.tar.zst
freebsd-ports-gnome-6d1dadf748631eb466830da9dee82796ef72ab4c.zip
- USE_RC_SUBR != yes
PR: ports/136848 Approved by: maintainer Submitted by: myself (pgollucci@)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/gift/Makefile9
-rw-r--r--net-p2p/gift/files/giftd.sh49
-rw-r--r--net-p2p/gift/pkg-plist1
3 files changed, 1 insertions, 58 deletions
diff --git a/net-p2p/gift/Makefile b/net-p2p/gift/Makefile
index 250544dbfac1..86a762fa1b6b 100644
--- a/net-p2p/gift/Makefile
+++ b/net-p2p/gift/Makefile
@@ -27,7 +27,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= yes
-USE_RC_SUBR= yes
+USE_RC_SUBR= giftd
MAN1= giftd.1
@@ -36,19 +36,12 @@ DOC_FILES= AUTHORS COPYING src/ChangeLog \
.include <bsd.port.pre.mk>
-SED_SCRIPT+= -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%RC_SUBR%%,${RC_SUBR},g'
-
post-patch:
@${REINPLACE_CMD} -e \
's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/lib/Makefile.in
-post-build:
- @${SED} ${SED_SCRIPT} <${FILESDIR}/giftd.sh >${WRKDIR}/giftd.sh
-
post-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/giftd.sh ${PREFIX}/etc/rc.d/
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
diff --git a/net-p2p/gift/files/giftd.sh b/net-p2p/gift/files/giftd.sh
index dd5d98f1c844..e69de29bb2d1 100644
--- a/net-p2p/gift/files/giftd.sh
+++ b/net-p2p/gift/files/giftd.sh
@@ -1,49 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: giftd
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-
-# Define these giftd_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/giftd
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-
-giftd_enable="${giftd_enable-NO}"
-giftd_flags="-d -q"
-# giftd_user=""
-# giftd_local_dir=""
-
-. "%%RC_SUBR%%"
-
-name="giftd"
-rcvar=`set_rcvar`
-command="%%PREFIX%%/bin/giftd"
-
-required_dirs=${giftd_local_dir}
-start_precmd="giftd_check_vars"
-
-giftd_check_vars()
-{
- if [ -z ${giftd_user} ]; then
- giftd_user=$(whoami)
- fi
-
- if [ $giftd_user = 'root' ]; then
- warn "You should set giftd_user to a non-root user for security reasons"
- fi
-
- if [ -z ${giftd_local_dir} ]; then
- giftd_local_dir="$(pw usershow $giftd_user | awk -F : '{ print $9 }')/.giFT"
- fi
-
- rc_flags="${giftd_flags} --local-dir=${giftd_local_dir}"
-}
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/net-p2p/gift/pkg-plist b/net-p2p/gift/pkg-plist
index 430220dff674..52e96872fb60 100644
--- a/net-p2p/gift/pkg-plist
+++ b/net-p2p/gift/pkg-plist
@@ -1,4 +1,3 @@
-etc/rc.d/giftd.sh
bin/gift-setup
bin/giftd
include/libgift/array.h