- remove license type and post-install target
- add HOMEPAGE to DESCR - add proper INSTALL/DEINSTALL scripts - silence configure script
This commit is contained in:
parent
5dca194f6e
commit
797c2444d6
@ -1,23 +1,24 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2000/06/10 17:39:21 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2000/09/21 07:47:06 brad Exp $
|
||||
|
||||
DISTNAME= rplay-3.3.0
|
||||
DISTNAME= rplay-3.3.0
|
||||
CATEGORIES= audio
|
||||
NEED_VERSION= 1.300
|
||||
NEED_VERSION= 1.330
|
||||
MASTER_SITES= http://rplay.doit.org/dist/
|
||||
|
||||
HOMEPAGE= http://rplay.doit.org/
|
||||
|
||||
LIB_DEPENDS= gsm.1.0::audio/gsm
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
LICENSE_TYPE= GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= gsm.1.0::audio/gsm
|
||||
|
||||
USE_GMAKE= Yes
|
||||
SYSCONFDIR= /etc/rplay
|
||||
CONFIGURE_STYLE=gnu dest
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
|
||||
post-configure:
|
||||
.for ff in rplay.conf.5 rplay.helpers.5 rplay.hosts.5 rplayd.8
|
||||
@ -27,14 +28,6 @@ post-configure:
|
||||
.endfor
|
||||
|
||||
post-build:
|
||||
@cd ${WRKSRC}/doc && make info
|
||||
|
||||
post-install:
|
||||
@if [ ! -d /etc/rplay ]; then \
|
||||
echo "Installing default configs..."; \
|
||||
mkdir -p /etc/rplay; \
|
||||
echo localhost >/etc/rplay/rplay.hosts; \
|
||||
touch /etc/rplay/rplay.{conf,helpers,servers}; \
|
||||
fi
|
||||
@cd ${WRKSRC}/doc && ${MAKE_PROGRAM} info
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
25
audio/rplay/pkg/DEINSTALL
Normal file
25
audio/rplay/pkg/DEINSTALL
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2000/09/21 07:47:06 brad Exp $
|
||||
#
|
||||
# rplay 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
|
@ -4,3 +4,5 @@ supports SunOS 4.1.X, Solaris 2.X, Linux, SGI IRIX 4 & 5, HP9000/705,
|
||||
HP9000/710, FreeBSD and now OpenBSD. The rplay clients and client library
|
||||
should work on any system that supports Berkeley sockets. X Windows is not
|
||||
required.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
||||
|
69
audio/rplay/pkg/INSTALL
Normal file
69
audio/rplay/pkg/INSTALL
Normal file
@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2000/09/21 07:47:06 brad Exp $
|
||||
#
|
||||
# Pre/post-installation setup of rplay
|
||||
|
||||
# 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}
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration files in $CONFIG_DIR,"
|
||||
echo "| have NOT been changed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -d -o root -g wheel -m 755 $CONFIG_DIR
|
||||
echo localhost > $CONFIG_DIR/rplay.hosts
|
||||
chown root.wheel $CONFIG_DIR/rplay.hosts
|
||||
chmod 644 $CONFIG_DIR/rplay.hosts
|
||||
touch $CONFIG_DIR/rplay.{conf,helpers,servers}
|
||||
chown root.wheel $CONFIG_DIR/rplay.{conf,helpers,servers}
|
||||
chmod 644 $CONFIG_DIR/rplay.{conf,helpers,servers}
|
||||
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
|
||||
}
|
||||
|
||||
# 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/rplay.hosts ]; then
|
||||
do_install $1
|
||||
else
|
||||
do_notice $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,15 +1,19 @@
|
||||
@comment $OpenBSD: PLIST,v 1.7 2000/06/10 17:39:21 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.8 2000/09/21 07:47:07 brad Exp $
|
||||
bin/rplay
|
||||
bin/rptp
|
||||
include/rplay.h
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/RPLAY.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/RPTP.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/librplay.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/rplay.info
|
||||
bin/rplay
|
||||
bin/rptp
|
||||
include/rplay.h
|
||||
info/RPLAY.info
|
||||
info/RPTP.info
|
||||
info/librplay.info
|
||||
info/rplay.info
|
||||
@exec install-info --info-dir=%D/info %D/info/RPLAY.info
|
||||
@exec install-info --info-dir=%D/info %D/info/RPTP.info
|
||||
@exec install-info --info-dir=%D/info %D/info/librplay.info
|
||||
@exec install-info --info-dir=%D/info %D/info/rplay.info
|
||||
lib/librplay.a
|
||||
man/man1/rplay.1
|
||||
man/man1/rptp.1
|
||||
@ -19,12 +23,3 @@ man/man5/rplay.hosts.5
|
||||
man/man5/rplay.servers.5
|
||||
man/man8/rplayd.8
|
||||
sbin/rplayd
|
||||
@exec if [ ! -d /etc/rplay ]; then echo "Installing default configs..."; mkdir -p /etc/rplay; echo localhost >/etc/rplay/rplay.hosts; touch /etc/rplay/rplay.{conf,helpers,servers}; fi
|
||||
@unexec if [ -d /etc/rplay ]; then echo "***"; echo "*** Finished uninstalling rplay."; echo "*** Configuration files stored in /etc/rplay have not been removed."; echo "*** You may wish to remove them manually."; fi
|
||||
@exec install-info --info-dir=%D/info %D/info/RPLAY.info
|
||||
@exec install-info --info-dir=%D/info %D/info/RPTP.info
|
||||
@exec install-info --info-dir=%D/info %D/info/librplay.info
|
||||
@exec install-info --info-dir=%D/info %D/info/rplay.info
|
||||
@comment requires XForms
|
||||
@comment bin/xrplay
|
||||
@comment man/man1/xrplay.1
|
||||
|
1
audio/rplay/scripts/configure
vendored
1
audio/rplay/scripts/configure
vendored
@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
chmod -R +w ${WRKSRC}
|
||||
echo -n "Removing disgusting malloc.h includes. Please wait.."
|
||||
for i in `find ${WRKSRC} -name '*.[ch]' | xargs fgrep -l malloc.h`; do
|
||||
sed -e 's/malloc.h/stdlib.h/' < $i > $i.bak && mv $i.bak $i
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user