diff options
author | jmmv <jmmv> | 2003-08-04 11:00:31 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-08-04 11:00:31 +0000 |
commit | 065a187381394074d508a0023b252420b5e8f2df (patch) | |
tree | 60c6bb2cb155f92582be8304a81c521a199b7254 /www | |
parent | 063c554285ebafb21bb7dd6eb129804708ac19d8 (diff) | |
download | pkgsrc-065a187381394074d508a0023b252420b5e8f2df.tar.gz |
Convert to the bsd.pkg.install.mk framework:
- Honour PKG_SYSCONFDIR.
- Use CONF_FILES to install the default configuration file.
- Use RCD_SCRIPTS to handle the startup script.
Bump PKGREVISION to 1.
Diffstat (limited to 'www')
-rw-r--r-- | www/hiawatha/MESSAGE | 17 | ||||
-rw-r--r-- | www/hiawatha/Makefile | 49 | ||||
-rw-r--r-- | www/hiawatha/files/hiawatha.sh | 7 |
3 files changed, 34 insertions, 39 deletions
diff --git a/www/hiawatha/MESSAGE b/www/hiawatha/MESSAGE index 9c0fe05162c..cd77dd76989 100644 --- a/www/hiawatha/MESSAGE +++ b/www/hiawatha/MESSAGE @@ -1,23 +1,14 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.3 2002/09/24 12:30:47 wiz Exp $ +$NetBSD: MESSAGE,v 1.4 2003/08/04 11:00:31 jmmv Exp $ - Hiawatha has now been successfully installed. - - In order to use Hiawatha, you will need to create spool - directories, named +In order to use Hiawatha, you will need to create spool directories, named /var/spool/hiawatha/SPOOL${PORT} - for each TCP port on which hiawatha will be listening -- - for example +for each TCP port on which hiawatha will be listening -- for example /var/spool/hiawatha/SPOOL8080 - for the example hiawatha.cfg distributed with this - package. - - You can start hiawatha by running - - ${PREFIX}/etc/rc.d/hiawatha start +for the example hiawatha.cfg distributed with this package. =========================================================================== diff --git a/www/hiawatha/Makefile b/www/hiawatha/Makefile index fc5d430da9a..226302c85d2 100644 --- a/www/hiawatha/Makefile +++ b/www/hiawatha/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.11 2003/07/17 22:55:35 grant Exp $ +# $NetBSD: Makefile,v 1.12 2003/08/04 11:00:31 jmmv Exp $ # DISTNAME= hiawatha PKGNAME= hiawatha-0.1 +PKGREVISION= 1 WRKSRC= ${WRKDIR} CATEGORIES= textproc www MASTER_SITES= ${HOMEPAGE} ${MASTER_SITE_BACKUP} @@ -19,38 +20,40 @@ DEPENDS+= saxon-[0-9]*:../../textproc/saxon NO_CONFIGURE= NO_BUILD= +USE_BUILDLINK2= yes USE_JAVA= run -DIST_SUBDIR= ${PKGNAME} +USE_PKGINSTALL= yes + +DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_CMD= unzip -aq ${DOWNLOADED_DISTFILE} +RCD_SCRIPTS= hiawatha + +EGDIR= ${PREFIX}/share/examples/hiawatha +CONF_FILES= ${EGDIR}/hiawatha.cfg ${PKG_SYSCONFDIR}/hiawatha.cfg + +OWN_DIRS= /var/spool/hiawatha + post-extract: - ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/hiawatha.sh \ - > ${WRKDIR}/hiawatha.sh - ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/hiawatha.cfg \ - > ${WRKDIR}/hiawatha.cfg + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g" \ + < ${FILESDIR}/hiawatha.cfg > ${WRKDIR}/hiawatha.cfg do-install: ${INSTALL_DATA_DIR} ${PREFIX}/lib/java/hiawatha ${INSTALL_DATA} ${WRKSRC}/hiawatha.jar ${PREFIX}/lib/java/hiawatha ${INSTALL_DATA} ${WRKSRC}/xsls.jar ${PREFIX}/lib/java/hiawatha - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha - ${INSTALL_DATA} ${WRKSRC}/simple.cfg \ - ${PREFIX}/share/examples/hiawatha - ${INSTALL_DATA} ${WRKSRC}/SeeAlso/pault_com.cfg \ - ${PREFIX}/share/examples/hiawatha - if [ ! -f ${PREFIX}/etc/hiawatha.cfg ]; \ - then \ - ${INSTALL_DATA} ${WRKDIR}/hiawatha.cfg ${PREFIX}/etc \ - ; fi - ${INSTALL_DATA} ${WRKDIR}/hiawatha.cfg ${PREFIX}/share/examples/hiawatha - cd ${WRKSRC} && ${PAX} -s '/^WEBROOT/pault.com/' -rw WEBROOT ${PREFIX}/share/examples/hiawatha - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha/WEBROOT - ${INSTALL_DATA} ${FILESDIR}/index.xml ${PREFIX}/share/examples/hiawatha/WEBROOT - ${INSTALL_DATA} ${FILESDIR}/index.xsl ${PREFIX}/share/examples/hiawatha/WEBROOT - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha/WEBROOT/images - ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/examples/hiawatha/WEBROOT/images - ${INSTALL_SCRIPT} ${WRKDIR}/hiawatha.sh ${PREFIX}/etc/rc.d/hiawatha + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/simple.cfg ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/SeeAlso/pault_com.cfg ${EGDIR} + ${INSTALL_DATA} ${WRKDIR}/hiawatha.cfg ${EGDIR} + cd ${WRKSRC} && ${PAX} -s '/^WEBROOT/pault.com/' -rw WEBROOT ${EGDIR} + ${INSTALL_DATA_DIR} ${EGDIR}/WEBROOT + ${INSTALL_DATA} ${FILESDIR}/index.xml ${EGDIR}/WEBROOT + ${INSTALL_DATA} ${FILESDIR}/index.xsl ${EGDIR}/WEBROOT + ${INSTALL_DATA_DIR} ${EGDIR}/WEBROOT/images + ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${EGDIR}/WEBROOT/images .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/hiawatha/files/hiawatha.sh b/www/hiawatha/files/hiawatha.sh index 78701bb3f44..679b96f37f2 100644 --- a/www/hiawatha/files/hiawatha.sh +++ b/www/hiawatha/files/hiawatha.sh @@ -1,11 +1,12 @@ -#! /bin/sh +#!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: hiawatha.sh,v 1.1.1.1 2001/04/15 02:56:40 jwise Exp $ +# $NetBSD: hiawatha.sh,v 1.2 2003/08/04 11:00:32 jmmv Exp $ # # PROVIDE: hiawatha # REQUIRE: DAEMON PREFIX=@PREFIX@ +PKG_SYSCONFDIR=@PKG_SYSCONFDIR@ pidfile=/var/run/hiawatha.pid @@ -19,7 +20,7 @@ CLASSPATH=${PREFIX}/lib/java/hiawatha/hiawatha.jar:${PREFIX}/lib/java/hiawatha/x export CLASSPATH name="hiawatha" -command="${JAVA_HOME}/bin/java com.pault.hiawatha.Server ${PREFIX}/etc/hiawatha.cfg" +command="${JAVA_HOME}/bin/java com.pault.hiawatha.Server ${PKG_SYSCONFDIR}/hiawatha.cfg" if [ ! -d /var/spool/hiawatha ] then |