upgrade to opennap 0.41

This commit is contained in:
brad 2001-03-31 22:41:48 +00:00
parent 84a5edf350
commit 9e8946d0ff
9 changed files with 124 additions and 43 deletions

View File

@ -1,8 +1,10 @@
# $OpenBSD: Makefile,v 1.3 2000/09/24 07:04:01 brad Exp $
# $OpenBSD: Makefile,v 1.4 2001/03/31 22:41:48 brad Exp $
DISTNAME= opennap-0.36
COMMENT= "OpenNAP open-source Napster(tm) server"
DISTNAME= opennap-0.41
CATEGORIES= audio net
NEED_VERSION= 1.330
NEED_VERSION= 1.364
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= opennap
@ -15,6 +17,8 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SYSCONFDIR= /etc/opennap
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-resume
@ -22,10 +26,8 @@ CONFIGURE_ARGS= --enable-resume
DOCS= README napster.txt
post-install:
(echo "${PREFIX}/share/opennap"; echo "admin"; echo "opennap"; echo "") | ${WRKSRC}/setup
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opennap
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opennap
@chown -R nobody:nobody ${PREFIX}/share/opennap
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/opennap
${INSTALL_DATA} ${WRKSRC}/sample.* ${PREFIX}/share/examples/opennap

View File

@ -1,3 +1,3 @@
MD5 (opennap-0.36.tar.gz) = 89a93049a1b774613b8097d921e0e55e
RMD160 (opennap-0.36.tar.gz) = dc564e93bba5e6aa7c3051a59e547d43af8e8856
SHA1 (opennap-0.36.tar.gz) = 92c9f43b360f42999d4ac3e1621cd4e69788d39a
MD5 (opennap-0.41.tar.gz) = 0fd69f9f58010ae43579559ce79e0280
RMD160 (opennap-0.41.tar.gz) = f67d2fff2754c74f3705dd20c2c777e4a47c408d
SHA1 (opennap-0.41.tar.gz) = cc48ad7b35613f612bf325db21231e8ef9342c7e

View File

@ -1,16 +0,0 @@
--- Makefile.in.orig Mon Sep 11 01:53:36 2000
+++ Makefile.in Mon Sep 11 01:55:31 2000
@@ -186,11 +186,11 @@
metaserver: $(metaserver_OBJECTS) $(metaserver_DEPENDENCIES)
@rm -f metaserver
- $(LINK) $(metaserver_LDFLAGS) $(metaserver_OBJECTS) $(metaserver_LDADD) $(LIBS)
+ $(LINK) $(metaserver_LDFLAGS) $(metaserver_OBJECTS) $(metaserver_LDADD)
setup: $(setup_OBJECTS) $(setup_DEPENDENCIES)
@rm -f setup
- $(LINK) $(setup_LDFLAGS) $(setup_OBJECTS) $(setup_LDADD) $(LIBS)
+ $(LINK) $(setup_LDFLAGS) $(setup_OBJECTS) $(setup_LDADD)
tags: TAGS

View File

@ -0,0 +1,11 @@
--- configure.orig Sun Mar 25 23:43:51 2001
+++ configure Sun Mar 25 23:44:19 2001
@@ -1834,7 +1834,7 @@
else
rm -rf conftest*
- SHAREDIR=\${pkgdatadir}
+ SHAREDIR=\${sysconfdir}
fi
rm -f conftest*

View File

@ -1 +0,0 @@
OpenNAP open-source Napster(tm) server

View File

@ -0,0 +1,25 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2001/03/31 22:41:49 brad Exp $
#
# opennap de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
if [ -d $CONFIG_DIR ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf $CONFIG_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

74
audio/opennap/pkg/INSTALL Normal file
View File

@ -0,0 +1,74 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2001/03/31 22:41:49 brad Exp $
#
# Pre/post-installation setup of opennap
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/opennap
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration files in $CONFIG_DIR,"
echo "| have NOT been changed. You may want to compare them to the"
echo "| current sample files in $SAMPLE_CONFIG_DIR,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -d -o nobody -g nogroup -m 700 $CONFIG_DIR
echo "admin opennap email@here.com Elite 0 0" > $CONFIG_DIR/users
chown nobody:nogroup $CONFIG_DIR/users
chmod 600 $CONFIG_DIR/users
echo
echo "+---------------"
echo "| The $1 configuration files have been installed into"
echo "| $CONFIG_DIR. Please view these files and change the configuration"
echo "| to meet your needs."
echo "|"
echo "| A default administrator user has been created. The user name"
echo "| is 'admin', password 'opennap'. You will probably want to"
echo "| change these. To do so, edit the file $CONFIG_DIR/users."
echo "|"
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d $CONFIG_DIR ]; then
do_install $1
elif [ ! -f $CONFIG_DIR/users ]; then
do_install $1
else
do_notice $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,13 +0,0 @@
*************************************************
A default administrator user has been created. The user name is 'admin',
password 'opennap'. You will probably want to change these. To do so,
edit the file ${PREFIX}/share/opennap/users.
Example configuration files are located in ${PREFIX}/share/examples/opennap.
Copy them to ${PREFIX}/share/opennap, removing the 'sample.' prefix
(e.g., 'sample.conf' becomes 'conf') and edit to your preferences.
Documentation is installed under ${PREFIX}/share/doc/opennap. If you
would like to link your server to the global Napigator search system,
go to http://www.napigator.com and follow the directions under
"CAN I RUN MY OWN NAP SERVER?"
*************************************************

View File

@ -1,16 +1,15 @@
@comment $OpenBSD: PLIST,v 1.2 2001/02/08 19:32:17 espie Exp $
@comment $OpenBSD: PLIST,v 1.3 2001/03/31 22:41:50 brad Exp $
sbin/opennap
sbin/metaserver
sbin/setup
share/doc/opennap/README
share/doc/opennap/napster.txt
share/examples/opennap/sample.block
share/examples/opennap/sample.channels
share/examples/opennap/sample.conf
share/examples/opennap/sample.config
share/examples/opennap/sample.filter
share/examples/opennap/sample.motd
share/examples/opennap/sample.servers
share/examples/opennap/sample.users
share/opennap/users
@exec chmod -R og-rwx %B
@dirrm share/doc/opennap
@dirrm share/examples/opennap/
@dirrm share/opennap