aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--net-p2p/opennap/Makefile8
-rw-r--r--net-p2p/opennap/distinfo2
-rw-r--r--net-p2p/opennap/files/opennap.sh21
-rw-r--r--net-p2p/opennap/pkg-plist12
8 files changed, 58 insertions, 28 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
diff --git a/net-p2p/opennap/Makefile b/net-p2p/opennap/Makefile
index 21ada861fc81..c1ddaa00b0b8 100644
--- a/net-p2p/opennap/Makefile
+++ b/net-p2p/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/net-p2p/opennap/distinfo b/net-p2p/opennap/distinfo
index fd6503954c5a..2be43860da95 100644
--- a/net-p2p/opennap/distinfo
+++ b/net-p2p/opennap/distinfo
@@ -1 +1 @@
-MD5 (opennap-0.37.tar.gz) = 258034161c434f1c236bdc94c09fb99b
+MD5 (opennap-0.38.tar.gz) = 3d3b5b5238e430fc50111984e9ad435d
diff --git a/net-p2p/opennap/files/opennap.sh b/net-p2p/opennap/files/opennap.sh
index a124c0525b2e..05e21d30b233 100644
--- a/net-p2p/opennap/files/opennap.sh
+++ b/net-p2p/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/net-p2p/opennap/pkg-plist b/net-p2p/opennap/pkg-plist
index 950e010f4974..463331cdbb6d 100644
--- a/net-p2p/opennap/pkg-plist
+++ b/net-p2p/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