aboutsummaryrefslogtreecommitdiff
path: root/audio/opennap
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2001-01-06 08:38:56 +0000
committerClive Lin <clive@FreeBSD.org>2001-01-06 08:38:56 +0000
commit724cf311f6930c2d4ec7f419b914f6bbc09f53fc (patch)
treea21df9cb7f6f89e5d1b6e48b9b46a4c53ef22b58 /audio/opennap
parent1214435524f1c3e8cdcaf96afb3e3598c1298b7f (diff)
downloadports-724cf311f6930c2d4ec7f419b914f6bbc09f53fc.tar.gz
ports-724cf311f6930c2d4ec7f419b914f6bbc09f53fc.zip
Notes
Diffstat (limited to 'audio/opennap')
-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