Subject: pkg/13044: New package submission: xtide
To: None <gnats-bugs@gnats.netbsd.org>
From: None <paul@whooppee.com>
List: netbsd-bugs
Date: 05/26/2001 10:43:59
>Number: 13044
>Category: pkg
>Synopsis: New package submission: xtide
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat May 26 10:43:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Paul Goyette
>Release: 2001 April 7
>Organization:
----------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Network Engineer | BCD7 5301 9513 58A6 0DBC | paul@whooppee.com |
| & World Cruiser | 91EB ADB1 A280 3B79 9221 | pgoyette@juniper.net |
----------------------------------------------------------------------
>Environment:
System: NetBSD pc1.whooppee.com 1.5T NetBSD 1.5T (PC1) #16: Sat Apr 7 15:55:47 PDT 2001 paul@pc3.whooppee.com:/usr/src/sys/arch/i386/compile/PC1 i386
Architecture: i386
Machine: i386
>Description:
Add new package, xtide. xtide provides tide prediction charts
for hundreds of locations.
>How-To-Repeat:
N/A
>Fix:
The following shar archive will produce the appropriate files
for pkgsrc/misc/xtide. Note: xtide is GPLd
# 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:
#
# .
# ./Makefile
# ./pkg
# ./pkg/DESCR
# ./pkg/PLIST
# ./files
# ./files/xtide.conf
# ./patches
# ./patches/patch-aa
# ./patches/patch-ab
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
XDISTNAME= xtide-2.4
XPKGNAME= ${DISTNAME}
XCATEGORIES= misc x11
XMASTER_SITES= ftp://ftp.flaterco.com/xtide/
XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics.txt.gz offsets.xml.gz
X
XMAINTAINER= paul@whooppee.com
XHOMEPAGE= www://www.flaterco.com
XCOMMENT= X11 tide predictor
X
X# LICENSE= GPL
X
XDEPENDS+= png>0.96:../../graphics/png
X
XEXTRACT_ONLY= ${XTIDE_SRCS}
XXTIDE_SRCS= ${DISTNAME}${EXTRACT_SUFX}
X
XHAS_CONFIGURE= yes
XCONFIGURE_SCRIPT= ./configure
XCONFIGURE_ARGS= --prefix=${PREFIX}
X
Xpost-patch:
X @( \
X cd ${WRKSRC}/DOCUMENTATION; \
X for f in *; do \
X ${MV} $$f $$f.bak; \
X ${SED} -e 's?/local?/pkg?g' -e 's?/etc?/usr/pkg/etc?g' \
X < $$f.bak > $$f ; \
X done; \
X )
X
Xpost-install:
X ${INSTALL_DATA_DIR} ${PREFIX}/share/xtide
X cd ${WRKDIR};
X ${GZCAT} ${DISTDIR}/harmonics.txt.gz > harmonics.txt
X ${GZCAT} ${DISTDIR}/offsets.xml.gz > offsets.xml
X ${CP} ${FILESDIR}/xtide.conf ${PREFIX}/etc
X ${MV} harmonics.txt ${PREFIX}/share/xtide
X ${MV} offsets.xml ${PREFIX}/share/xtide
X
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
Xxtide produces graphical tide prediction charts.
END-of-./pkg/DESCR
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
Xbin/xtide
Xbin/tide
Xsbin/xttpd
Xman/man1/xtide.1
Xman/man1/tide.1
Xman/man8/xttpd.8
Xshare/xtide/harmonics.txt
Xshare/xtide/offsets.xml
X@dirrm share/xtide
Xetc/xtide.conf
END-of-./pkg/PLIST
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/xtide.conf
sed 's/^X//' >./files/xtide.conf << 'END-of-./files/xtide.conf'
X/usr/pkg/share/xtide/harmonics.txt:/usr/pkg/share/xtide/offsets.xml
END-of-./files/xtide.conf
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X*** errors.cc.orig Sat May 26 08:45:23 2001
X***************
X*** 128,138 ****
X break;
X case NO_HFILE_PATH:
X errout += "NO_HFILE_PATH\n\
X! If /etc/xtide.conf is not provided, you must set the environment variable\n\
X HFILE_PATH to point to your harmonics files. Example:\n\
X! export HFILE_PATH=/usr/local/share/xtide/harmonics.txt:\\\n\
X! /usr/local/share/xtide/offsets.xml\n\
X! Please refer to the documentation for usage of /etc/xtide.conf.";
X break;
X case IMPOSSIBLE_CONVERSION:
X errout += "IMPOSSIBLE_CONVERSION\n\
X--- 128,138 ----
X break;
X case NO_HFILE_PATH:
X errout += "NO_HFILE_PATH\n\
X! If /usr/pkg/etc/xtide.conf is not provided, you must set the environment variable\n\
X HFILE_PATH to point to your harmonics files. Example:\n\
X! export HFILE_PATH=/usr/pkg/share/xtide/harmonics.txt:\\\n\
X! /usr/pkg/share/xtide/offsets.xml\n\
X! Please refer to the documentation for usage of /usr/pkg/etc/xtide.conf.";
X break;
X case IMPOSSIBLE_CONVERSION:
X errout += "IMPOSSIBLE_CONVERSION\n\
END-of-./patches/patch-aa
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X*** TideContext.cc Sat May 26 08:48:02 2001
X***************
X*** 42,53 ****
X colors = in_colors;
X settings = in_settings;
X
X! // Get HFILE_PATH from environment or /etc/xtide.conf and create
X // persistent HarmonicsPath
X Dstr hfile_path (getenv ("HFILE_PATH"));
X if (hfile_path.isNull()) {
X FILE *configfile;
X! if ((configfile = fopen ("/etc/xtide.conf", "r"))) {
X hfile_path.getline (configfile);
X fclose (configfile);
X }
X--- 42,53 ----
X colors = in_colors;
X settings = in_settings;
X
X! // Get HFILE_PATH from environment or /usr/pkg/etc/xtide.conf and create
X // persistent HarmonicsPath
X Dstr hfile_path (getenv ("HFILE_PATH"));
X if (hfile_path.isNull()) {
X FILE *configfile;
X! if ((configfile = fopen ("/usr/pkg/etc/xtide.conf", "r"))) {
X hfile_path.getline (configfile);
X fclose (configfile);
X }
END-of-./patches/patch-ab
exit
>Release-Note:
>Audit-Trail:
>Unformatted: