aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2003-10-08 20:39:57 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2003-10-08 20:39:57 +0000
commit1b312f03b2475d46266c28b010ec97b340d5ca5a (patch)
tree90e3a2d3e38d43ae224f3f51e80ba78185464c4f /net
parentb1bdd1d3ea6b578037089dad95d91e77b9463dd8 (diff)
downloadports-1b312f03b2475d46266c28b010ec97b340d5ca5a.tar.gz
ports-1b312f03b2475d46266c28b010ec97b340d5ca5a.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/xbms/Makefile6
-rw-r--r--net/xbms/files/patch-Makefile20
-rw-r--r--net/xbms/files/xbms.sh.sample35
-rw-r--r--net/xbms/pkg-plist2
4 files changed, 54 insertions, 9 deletions
diff --git a/net/xbms/Makefile b/net/xbms/Makefile
index cfa0f61e8f21..0f3c62f06afd 100644
--- a/net/xbms/Makefile
+++ b/net/xbms/Makefile
@@ -20,7 +20,9 @@ USE_REINPLACE= yes
post-patch:
${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/server.c
-post-install:
- ${CP} ${WRKSRC}/xbms.conf ${PREFIX}/etc/xbms.conf.sample
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xbms ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/xbms.conf ${PREFIX}/etc/xbms.conf.sample
+ ${INSTALL_DATA} ${FILESDIR}/xbms.sh.sample ${PREFIX}/etc/rc.d/xbms.sh.sample
.include <bsd.port.mk>
diff --git a/net/xbms/files/patch-Makefile b/net/xbms/files/patch-Makefile
index 204925462391..f423049875e5 100644
--- a/net/xbms/files/patch-Makefile
+++ b/net/xbms/files/patch-Makefile
@@ -1,9 +1,15 @@
---- Makefile.orig Thu Jan 16 16:27:25 2003
-+++ Makefile Thu Jan 16 16:27:36 2003
-@@ -1,5 +1,5 @@
- CC = gcc -Wall
--BINDIR = /usr/local/bin
-+BINDIR = ${PREFIX}/bin
+
+$FreeBSD$
+
+--- Makefile.orig Sun Feb 23 13:11:59 2003
++++ Makefile Wed Oct 8 22:37:15 2003
+@@ -1,8 +1,7 @@
+-CC = gcc -Wall
+ BINDIR = /usr/local/bin
all: server
server:
- $(CC) -O3 -pthread -o xbms server.c
+- $(CC) -O3 -pthread -o xbms server.c
++ $(CC) $(CFLAGS) -pthread -o xbms server.c
+ install: all
+ rm -f $(BINDIR)/xbms
+ cp xbms $(BINDIR)
diff --git a/net/xbms/files/xbms.sh.sample b/net/xbms/files/xbms.sh.sample
new file mode 100644
index 000000000000..4cee985339ab
--- /dev/null
+++ b/net/xbms/files/xbms.sh.sample
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Start or stop the xbms server
+#
+# $FreeBSD$
+
+pidfile="/var/run/xbms.pid"
+name="xbms"
+
+case "$1" in
+ start)
+ echo -n " xbms"
+ if [ -f /usr/local/etc/xbms.conf.sample ]; then
+ /usr/local/bin/xbms
+ fi
+ ;;
+
+ stop)
+ if [ ! -f /var/run/xbms.pid ]; then
+ echo "XBMS not running"
+ exit 64
+ fi
+ kill `cat /var/run/xbms.pid`
+ ;;
+status)
+ ps -auxww | egrep ${name} | egrep -v "($0|egrep)"
+ ;;
+
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop | status}"
+ echo ""
+ exit 64
+ ;;
+esac
diff --git a/net/xbms/pkg-plist b/net/xbms/pkg-plist
index 0de8bbc30d2e..004b9769cfa4 100644
--- a/net/xbms/pkg-plist
+++ b/net/xbms/pkg-plist
@@ -1,2 +1,4 @@
+@comment $FreeBSD$
bin/xbms
etc/xbms.conf.sample
+etc/rc.d/xbms.sh.sample