A simple curses implementation of the napster client,

originally written for windows.
 
Napster is a great tool for exploring and experiencing
artists and music you've never heard before, using protocol
for sharing MP3 files between users. With Napster, the files
stay on the user machine, never passing through the server.
 
The server has the ability to search for particular files,
initializing direct transfer between the clients.

MAINTAINER=     Peter Valchev <pvalchev@toxiclinux.org>
This commit is contained in:
reinhard 2001-02-04 18:55:33 +00:00
parent 076aee9421
commit 20aded4b5e
8 changed files with 115 additions and 0 deletions

27
audio/nap/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/04 18:55:33 reinhard Exp $
DISTNAME= nap-1.4.4
CATEGORIES= audio
NEED_VERSION= 1.352
HOMEPAGE= http://nap.sourceforge.net/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nap
MAINTAINER= Peter Valchev <pvalchev@toxiclinux.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nap
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nap
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nap
${INSTALL_DATA} ${WRKSRC}/nap.conf.dist ${PREFIX}/share/examples/nap
.include <bsd.port.mk>

3
audio/nap/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (nap-1.4.4.tar.gz) = c00062ea018579ffcccfb48703b6aab0
RMD160 (nap-1.4.4.tar.gz) = 6c3fb2ddde757f7ab56a656ec647d10533bca9cc
SHA1 (nap-1.4.4.tar.gz) = 1a6544d8b40c91decdb00e403d45658a328610dc

View File

@ -0,0 +1,47 @@
$OpenBSD: patch-configure,v 1.1.1.1 2001/02/04 18:55:33 reinhard Exp $
--- configure.orig Tue Jan 23 19:36:29 2001
+++ configure Tue Jan 23 19:36:56 2001
@@ -1155,14 +1155,14 @@ else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
-echo "configure:1160: checking for initscr in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
+echo "configure:1160: checking for initscr in -lcurses" >&5
+ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lncurses $LIBS"
+LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1168 "configure"
#include "confdefs.h"
@@ -1190,13 +1190,13 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lncurses $LIBS"
+ LIBS="-lcurses $LIBS"
else
echo "$ac_t""no" 1>&6
@@ -1387,7 +1387,7 @@ EOF
fi
-for ac_hdr in ncurses.h
+for ac_hdr in curses.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-nap_c,v 1.1.1.1 2001/02/04 18:55:33 reinhard Exp $
--- nap.c.orig Tue Jan 23 19:33:00 2001
+++ nap.c Tue Jan 23 19:33:37 2001
@@ -14,6 +14,9 @@
#ifndef MCURSES
#include <ncurses.h>
#endif
+#ifndef __OpenBSD__
+#include <curses.h>
+#endif
#include <stdlib.h>
#include <signal.h>
#include <string.h>

1
audio/nap/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
gnu curses-based napster client

12
audio/nap/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
A simple curses implementation of the napster client,
originally written for windows.
Napster is a great tool for exploring and experiencing
artists and music you've never heard before, using protocol
for sharing MP3 files between users. With Napster, the files
stay on the user machine, never passing through the server.
The server has the ability to search for particular files,
initializing direct transfer between the clients.
WWW: ${HOMEPAGE}

6
audio/nap/pkg/MESSAGE Normal file
View File

@ -0,0 +1,6 @@
NOTES on OpenBSD post-installation of GNU napster client v1.4:
By default the configuration file (nap.conf) must be in the
working dir, where you invoke the program from.
For an example see ${PREFIX}/share/examples/nap/nap.conf.dist

6
audio/nap/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/04 18:55:33 reinhard Exp $
bin/nap
share/doc/nap/README
share/examples/nap/nap.conf.dist
@dirrm share/examples/nap
@dirrm share/doc/nap