From owner-freebsd-ports Sun May 2 4:40:40 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B574915ABB for ; Sun, 2 May 1999 04:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA04963; Sun, 2 May 1999 04:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from initio.no (dhcp-061105.uninett.no [158.38.61.105]) by hub.freebsd.org (Postfix) with ESMTP id 09237152FE for ; Sun, 2 May 1999 04:36:14 -0700 (PDT) (envelope-from oyvindmo@initio.no) Received: (from oyvindmo@localhost) by initio.no (8.9.2/8.9.2) id NAA32226; Sun, 2 May 1999 13:36:12 +0200 (CEST) (envelope-from oyvindmo) Message-Id: <199905021136.NAA32226@initio.no> Date: Sun, 2 May 1999 13:36:12 +0200 (CEST) From: oyvindmo@initio.no Reply-To: oyvindmo@initio.no To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11439: New port: audio/juke Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11439 >Category: ports >Synopsis: New port: audio/juke >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 2 04:40:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Oyvind Moll >Release: FreeBSD 3.1-STABLE i386 >Organization: Initio IT-losninger AS >Environment: FreeBSD taiga.initio.no 3.1-STABLE FreeBSD 3.1-STABLE #0: Thu Mar 4 00:55:30 CET 1999 root@taiga.initio.no:/usr/src/sys/compile/TAIGA i386 >Description: Port of juke, a small curses based juke box program, which uses command line players to play files. http://www.nocrew.org/software/juke/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # juke # juke/files # juke/files/md5 # juke/patches # juke/patches/patch-aa # juke/patches/patch-ab # juke/pkg # juke/pkg/COMMENT # juke/pkg/DESCR # juke/pkg/PLIST # juke/pkg/MESSAGE # juke/Makefile # echo c - juke mkdir -p juke > /dev/null 2>&1 echo c - juke/files mkdir -p juke/files > /dev/null 2>&1 echo x - juke/files/md5 sed 's/^X//' >juke/files/md5 << 'END-of-juke/files/md5' XMD5 (juke-0.5.tar.gz) = 089fcdf1576eb1911e97049c54cc5c08 END-of-juke/files/md5 echo c - juke/patches mkdir -p juke/patches > /dev/null 2>&1 echo x - juke/patches/patch-aa sed 's/^X//' >juke/patches/patch-aa << 'END-of-juke/patches/patch-aa' X--- ../juke.orig/src/conf.h Thu Apr 15 21:44:53 1999 X+++ ./src/conf.h Sun May 2 12:16:58 1999 X@@ -1,6 +1,11 @@ X #define CFG_ARGS 10 X #define CFG_STRLEN 100 X X+#ifndef PREFIX X+#define PREFIX "/usr/local" X+#endif X+#define CFG_RCFILE PREFIX "/etc/juke.conf" X+ X struct CFG_FORMAT { X int args; X int match_len; END-of-juke/patches/patch-aa echo x - juke/patches/patch-ab sed 's/^X//' >juke/patches/patch-ab << 'END-of-juke/patches/patch-ab' X--- ../juke.orig/src/conf.c Thu Apr 15 21:44:53 1999 X+++ ./src/conf.c Sun May 2 12:18:07 1999 X@@ -207,11 +207,11 @@ X return; X } X } X- cfg->file_len = load_file ("/etc/juke.conf", (void **)&cfg->file); X+ cfg->file_len = load_file (CFG_RCFILE, (void **)&cfg->file); X if (cfg->file_len != ERROR) { X evaluate (cfg); X if (! cfg->formats) { X- fprintf (stderr, "error: No formats in /etc/juke.config\n"); X+ fprintf (stderr, "error: No formats in " CFG_RCFILE "\n"); X exit (ERROR); X } X build_arg_lists (cfg); END-of-juke/patches/patch-ab echo c - juke/pkg mkdir -p juke/pkg > /dev/null 2>&1 echo x - juke/pkg/COMMENT sed 's/^X//' >juke/pkg/COMMENT << 'END-of-juke/pkg/COMMENT' XA simple curses/ncurses based juke box program. END-of-juke/pkg/COMMENT echo x - juke/pkg/DESCR sed 's/^X//' >juke/pkg/DESCR << 'END-of-juke/pkg/DESCR' XJuke X---- X XJuke is a simple curses/ncurses based juke box program. XIt uses command line based players to play all kinds Xof music formats. X Xhttp://www.nocrew.org/software/juke/ X X-- XPort by Oyvind Moll END-of-juke/pkg/DESCR echo x - juke/pkg/PLIST sed 's/^X//' >juke/pkg/PLIST << 'END-of-juke/pkg/PLIST' Xbin/juke Xetc/juke.conf.sample END-of-juke/pkg/PLIST echo x - juke/pkg/MESSAGE sed 's/^X//' >juke/pkg/MESSAGE << 'END-of-juke/pkg/MESSAGE' XA sample configuration file has been copied to XPREFIX/etc/juke.conf.sample. Juke will not work without either XPREFIX/etc/juke.conf or the running user's ~/.juke.conf being Xin place. END-of-juke/pkg/MESSAGE echo x - juke/Makefile sed 's/^X//' >juke/Makefile << 'END-of-juke/Makefile' X# New ports collection makefile for: juke X# Version required: 0.5 X# Date created: 2 May 1999 X# Whom: oyvindmo@initio.no X# X# $Id$ X# X XDISTNAME= juke-0.5 XCATEGORIES= audio XMASTER_SITES= http://www.nocrew.org/software/juke/archive/ X XMAINTAINER= oyvindmo@initio.no X XGNU_CONFIGURE= yes X Xpost-install: X ${INSTALL_DATA} ${WRKSRC}/juke.conf ${PREFIX}/etc/juke.conf.sample X @${SED} 's,PREFIX,${PREFIX},' ${PKGDIR}/MESSAGE > ${WRKSRC}/MESSAGE X @${CAT} ${WRKSRC}/MESSAGE X X.include END-of-juke/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message