aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-01-06 16:38:56 +0800
committerclive <clive@FreeBSD.org>2001-01-06 16:38:56 +0800
commitad0ce2c369ceca6cb4ee2cb0385a21a3717b05a4 (patch)
tree3ea79575515a505dfeb6c8689340bf1aef2d8006 /audio
parente1a68d729ec27d785f8c80bbfbd5362188974962 (diff)
downloadfreebsd-ports-gnome-ad0ce2c369ceca6cb4ee2cb0385a21a3717b05a4.tar.gz
freebsd-ports-gnome-ad0ce2c369ceca6cb4ee2cb0385a21a3717b05a4.tar.zst
freebsd-ports-gnome-ad0ce2c369ceca6cb4ee2cb0385a21a3717b05a4.zip
o Update opennap from 0.37 -> 0.38
o Correct pkg-plist o Fix the ${PREFIX}/etc/rc.d/opennap.sh, let it support {start|stop} PR: 23653 Submitted by: Joseph Scottj <joseph@randomnetworks.com> Timed out from: MAINTAINER
Diffstat (limited to 'audio')
-rw-r--r--audio/opennap/Makefile8
-rw-r--r--audio/opennap/distinfo2
-rw-r--r--audio/opennap/files/opennap.sh21
-rw-r--r--audio/opennap/pkg-plist12
4 files changed, 29 insertions, 14 deletions
diff --git a/audio/opennap/Makefile b/audio/opennap/Makefile
index 21ada861fc81..c1ddaa00b0b8 100644
--- a/audio/opennap/Makefile
+++ b/audio/opennap/Makefile
@@ -6,12 +6,10 @@
#
PORTNAME= opennap
-PORTVERSION= 0.37
+PORTVERSION= 0.38
CATEGORIES= audio net
-MASTER_SITES= ftp://download.sourceforge.net/pub/sourceforge/opennap/ \
- ftp://ftp.darenet.dk/mirrors/mirror.linuxberg.com/files/console/servers/ \
- ftp://ftp.netis.com/pub/mirrors2/linuxberg/files/console/servers/ \
- ftp://ftp.sblug.com/pub/unix/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= dburr@FreeBSD.ORG
diff --git a/audio/opennap/distinfo b/audio/opennap/distinfo
index fd6503954c5a..2be43860da95 100644
--- a/audio/opennap/distinfo
+++ b/audio/opennap/distinfo
@@ -1 +1 @@
-MD5 (opennap-0.37.tar.gz) = 258034161c434f1c236bdc94c09fb99b
+MD5 (opennap-0.38.tar.gz) = 3d3b5b5238e430fc50111984e9ad435d
diff --git a/audio/opennap/files/opennap.sh b/audio/opennap/files/opennap.sh
index a124c0525b2e..05e21d30b233 100644
--- a/audio/opennap/files/opennap.sh
+++ b/audio/opennap/files/opennap.sh
@@ -1,3 +1,20 @@
#!/bin/sh
-/usr/local/bin/opennap >/dev/null 2>&1 &
-echo -n ' opennap'
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ [ -x ${PREFIX}/sbin/opennap ] && ${PREFIX}/sbin/opennap > /dev/null 2>&1 & && echo -n ' opennap'
+ ;;
+stop)
+ [ -r ${PREFIX}/share/opennap/pid ] && kill -15 `cat ${PREFIX}/share/opennap/pid` > /dev/null && rm -f ${PREFIX}/share/opennap/pid &&echo -n ' opennap'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/audio/opennap/pkg-plist b/audio/opennap/pkg-plist
index 950e010f4974..463331cdbb6d 100644
--- a/audio/opennap/pkg-plist
+++ b/audio/opennap/pkg-plist
@@ -1,16 +1,16 @@
-bin/opennap
-bin/mkpass
-bin/metaserver
-bin/setup
+sbin/opennap
+sbin/metaserver
+sbin/setup
share/opennap/users
share/opennap/examples/sample.channels
share/opennap/examples/sample.conf
+share/opennap/examples/sample.filter
share/opennap/examples/sample.motd
share/opennap/examples/sample.servers
share/opennap/examples/sample.users
-@dirrm share/opennap/examples
-@dirrm share/opennap
share/doc/opennap/README
share/doc/opennap/napster.txt
+@dirrm share/opennap/examples
+@dirrm share/opennap
@dirrm share/doc/opennap
etc/rc.d/opennap.sh