diff options
author | wiz <wiz@pkgsrc.org> | 2001-01-29 11:34:21 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-01-29 11:34:21 +0000 |
commit | b979f7222ad9bade13f010cd27e5bc6afab1681c (patch) | |
tree | 86f14acd24842161759a420487862022044c2b4b /misc/jitterbug | |
parent | 6a13219ca89e5dae86f27159ff86006058c06859 (diff) | |
download | pkgsrc-b979f7222ad9bade13f010cd27e5bc6afab1681c.tar.gz |
Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
Diffstat (limited to 'misc/jitterbug')
-rw-r--r-- | misc/jitterbug/Makefile | 16 | ||||
-rw-r--r-- | misc/jitterbug/pkg/MESSAGE | 24 |
2 files changed, 18 insertions, 22 deletions
diff --git a/misc/jitterbug/Makefile b/misc/jitterbug/Makefile index ee422cff3f2..9a7f56be437 100644 --- a/misc/jitterbug/Makefile +++ b/misc/jitterbug/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2000/12/08 09:43:06 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2001/01/29 11:34:34 wiz Exp $ DISTNAME= jitterbug-1.6.2 WRKSRC= ${WRKDIR}/${PKGNAME}/source @@ -20,7 +20,6 @@ ADDGROUP= ${LOCALBASE}/sbin/groupadd PLIST_SRC= ${WRKDIR}/PLIST-src INSTALL_FILE= ${WRKDIR}/INSTALL DEINSTALL_FILE= ${WRKDIR}/DEINSTALL -MESSAGE_FILE= ${WRKDIR}/MESSAGE CONFIGDIR= ${WRKDIR}/${PKGNAME}/config DOCSDIR= ${WRKDIR}/${PKGNAME}/docs CGIBINDIR= libexec/cgi-bin @@ -60,6 +59,10 @@ JB_EMAIL?= ${JB_LOCALMAIL}@${JB_FQHOSTNAME} HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} +MESSAGE_SUBST+= JB_USER=${JB_USER} \ + JB_PACKAGE=${JB_PACKAGE} \ + JB_LOCALMAIL=${JB_LOCALMAIL} + pre-extract: .if ${JB_FQHOSTNAME} == "totally.unknown.domain" @${ECHO} @@ -161,13 +164,6 @@ pre-install: >${WRKDIR}/NEWPACKAGE @${SED} \ -e 's|@JB_USER@|${JB_USER}|g' \ - -e 's|@JB_PACKAGE@|${JB_PACKAGE}|g' \ - -e 's|@PREFIX@|${PREFIX}|g' \ - -e 's|@JB_LOCALMAIL@|${JB_LOCALMAIL}|g' \ - <${PKGDIR}/MESSAGE \ - >${MESSAGE_FILE} - @${SED} \ - -e 's|@JB_USER@|${JB_USER}|g' \ -e 's|@JB_GROUP@|${JB_GROUP}|g' \ -e 's|@JB_PACKAGE@|${JB_PACKAGE}|g' \ -e 's|@PREFIX@|${PREFIX}|g' \ @@ -232,7 +228,7 @@ do-install: ${WRKDIR}/jitterbug.auth ${PREFIX}/${JB_USER}/etc ${MKDIR} ${PREFIX}/${JB_USER}/doc ${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644 \ - ${MESSAGE_FILE} ${PREFIX}/${JB_USER}/doc/POSTINSTALL + ${MESSAGE} ${PREFIX}/${JB_USER}/doc/POSTINSTALL ${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644 \ ${WRKDIR}/NEWPACKAGE ${PREFIX}/${JB_USER}/doc ${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644 \ diff --git a/misc/jitterbug/pkg/MESSAGE b/misc/jitterbug/pkg/MESSAGE index 564d8a2e988..9c2d2ed3d32 100644 --- a/misc/jitterbug/pkg/MESSAGE +++ b/misc/jitterbug/pkg/MESSAGE @@ -1,29 +1,29 @@ - =============================================================================== +$NetBSD: MESSAGE,v 1.4 2001/01/29 11:34:34 wiz Exp $ + Jitterbug now has successfully been installed on your system. Before using jitterbug you should perform the following steps: -o Set a system password for the @JB_USER@ user (as root) +o Set a system password for the ${JB_USER} user (as root) -o Set a htpasswd for the @JB_USER@ user (using htpasswd): - htpasswd @PREFIX@/@JB_USER@/etc/jitterbug.auth @JB_USER@ +o Set a htpasswd for the ${JB_USER} user (using htpasswd): + htpasswd ${PREFIX}/${JB_USER}/etc/jitterbug.auth ${JB_USER} o Customize (if necessary) - @PREFIX@/etc/jitterbug/@JB_PACKAGE@ and - @PREFIX@/etc/jitterbug/@JB_PACKAGE@.private + ${PREFIX}/etc/jitterbug/${JB_PACKAGE} and + ${PREFIX}/etc/jitterbug/${JB_PACKAGE}.private o Customize the html documents in the project's bug tracking directory: - @PREFIX@/@JB_USER@/@JB_PACKAGE@/bug_tracking + ${PREFIX}/${JB_USER}/${JB_PACKAGE}/bug_tracking -o Add an alias for @JB_USER@ to your mail aliases: +o Add an alias for ${JB_USER} to your mail aliases: The details on how to do this depend on which MTA you use. For standard sendmail, add the following lines to your aliases files (/etc/aliases or /etc/mail/aliases): - @JB_LOCALMAIL@: "|@PREFIX@/@JB_USER@/bin/new_message @JB_PACKAGE@" + ${JB_LOCALMAIL}: "|${PREFIX}/${JB_USER}/bin/new_message ${JB_PACKAGE}" -o Append @PREFIX@/etc/jitterbug/httpd.conf.add to your httpd.conf - (typically @PREFIX@/etc/httpd/httpd.conf) and restart your httpd. +o Append ${PREFIX}/etc/jitterbug/httpd.conf.add to your httpd.conf + (typically ${PREFIX}/etc/httpd/httpd.conf) and restart your httpd. =============================================================================== - |