head	1.36;
access;
symbols
	pkgsrc-2013Q2:1.36.0.4
	pkgsrc-2013Q2-base:1.36
	pkgsrc-2012Q4:1.36.0.2
	pkgsrc-2012Q4-base:1.36
	pkgsrc-2012Q2:1.35.0.2
	pkgsrc-2012Q2-base:1.35
	pkgsrc-2012Q1:1.34.0.4
	pkgsrc-2012Q1-base:1.34
	pkgsrc-2011Q4:1.34.0.2
	pkgsrc-2011Q4-base:1.34
	pkgsrc-2011Q3:1.33.0.8
	pkgsrc-2011Q3-base:1.33
	pkgsrc-2011Q2:1.33.0.6
	pkgsrc-2011Q2-base:1.33
	pkgsrc-2011Q1:1.33.0.4
	pkgsrc-2011Q1-base:1.33
	pkgsrc-2010Q4:1.33.0.2
	pkgsrc-2010Q4-base:1.33
	pkgsrc-2010Q3:1.32.0.14
	pkgsrc-2010Q3-base:1.32
	pkgsrc-2010Q2:1.32.0.12
	pkgsrc-2010Q2-base:1.32
	pkgsrc-2010Q1:1.32.0.10
	pkgsrc-2010Q1-base:1.32
	pkgsrc-2009Q4:1.32.0.8
	pkgsrc-2009Q4-base:1.32
	pkgsrc-2009Q3:1.32.0.6
	pkgsrc-2009Q3-base:1.32
	pkgsrc-2009Q2:1.32.0.4
	pkgsrc-2009Q2-base:1.32
	pkgsrc-2009Q1:1.32.0.2
	pkgsrc-2009Q1-base:1.32
	pkgsrc-2008Q4:1.31.0.10
	pkgsrc-2008Q4-base:1.31
	pkgsrc-2008Q3:1.31.0.8
	pkgsrc-2008Q3-base:1.31
	cube-native-xorg:1.31.0.6
	cube-native-xorg-base:1.31
	pkgsrc-2008Q2:1.31.0.4
	pkgsrc-2008Q2-base:1.31
	cwrapper:1.31.0.2
	pkgsrc-2008Q1:1.30.0.6
	pkgsrc-2008Q1-base:1.30
	pkgsrc-2007Q4:1.30.0.4
	pkgsrc-2007Q4-base:1.30
	pkgsrc-2007Q3:1.30.0.2
	pkgsrc-2007Q3-base:1.30
	pkgsrc-2007Q2:1.29.0.4
	pkgsrc-2007Q2-base:1.29
	pkgsrc-2007Q1:1.29.0.2
	pkgsrc-2007Q1-base:1.29
	pkgsrc-2006Q4:1.28.0.8
	pkgsrc-2006Q4-base:1.28
	pkgsrc-2006Q3:1.28.0.6
	pkgsrc-2006Q3-base:1.28
	pkgsrc-2006Q2:1.28.0.4
	pkgsrc-2006Q2-base:1.28
	pkgsrc-2006Q1:1.28.0.2
	pkgsrc-2006Q1-base:1.28
	pkgsrc-2005Q4:1.25.0.2
	pkgsrc-2005Q4-base:1.25
	pkgsrc-2005Q3:1.24.0.14
	pkgsrc-2005Q3-base:1.24
	pkgsrc-2005Q2:1.24.0.12
	pkgsrc-2005Q2-base:1.24
	pkgsrc-2005Q1:1.24.0.10
	pkgsrc-2005Q1-base:1.24
	pkgsrc-2004Q4:1.24.0.8
	pkgsrc-2004Q4-base:1.24
	pkgsrc-2004Q3:1.24.0.6
	pkgsrc-2004Q3-base:1.24
	pkgsrc-2004Q2:1.24.0.4
	pkgsrc-2004Q2-base:1.24
	pkgsrc-2004Q1:1.24.0.2
	pkgsrc-2004Q1-base:1.24
	pkgsrc-2003Q4:1.22.0.2
	pkgsrc-2003Q4-base:1.22
	netbsd-1-6-1:1.20.0.6
	netbsd-1-6-1-base:1.20
	netbsd-1-6:1.20.0.8
	netbsd-1-6-RELEASE-base:1.20
	pkgviews:1.20.0.4
	pkgviews-base:1.20
	buildlink2:1.20.0.2
	buildlink2-base:1.20
	netbsd-1-5-PATCH003:1.20
	netbsd-1-5-PATCH001:1.19
	netbsd-1-5-RELEASE:1.12
	netbsd-1-4-PATCH003:1.12
	netbsd-1-4-PATCH002:1.9
	comdex-fall-1999:1.4
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.36
date	2012.07.14.22.21.31;	author dholland;	state dead;
branches;
next	1.35;

1.35
date	2012.04.07.17.35.09;	author dholland;	state Exp;
branches;
next	1.34;

1.34
date	2011.11.11.18.43.43;	author joerg;	state Exp;
branches
	1.34.4.1;
next	1.33;

1.33
date	2010.12.31.07.57.14;	author obache;	state Exp;
branches;
next	1.32;

1.32
date	2009.01.14.12.20.57;	author sketch;	state Exp;
branches;
next	1.31;

1.31
date	2008.06.16.14.39.35;	author joerg;	state Exp;
branches;
next	1.30;

1.30
date	2007.07.04.20.54.48;	author jlam;	state Exp;
branches;
next	1.29;

1.29
date	2007.01.31.00.04.12;	author wiz;	state Exp;
branches;
next	1.28;

1.28
date	2006.03.14.01.14.30;	author jlam;	state Exp;
branches;
next	1.27;

1.27
date	2006.03.10.20.18.38;	author jlam;	state Exp;
branches;
next	1.26;

1.26
date	2006.01.10.18.50.09;	author rillig;	state Exp;
branches;
next	1.25;

1.25
date	2005.12.05.20.50.39;	author rillig;	state Exp;
branches;
next	1.24;

1.24
date	2004.02.09.09.17.50;	author wennmach;	state Exp;
branches;
next	1.23;

1.23
date	2004.01.20.12.21.02;	author agc;	state Exp;
branches;
next	1.22;

1.22
date	2003.07.17.21.49.15;	author grant;	state Exp;
branches;
next	1.21;

1.21
date	2003.06.18.09.22.23;	author agc;	state Exp;
branches;
next	1.20;

1.20
date	2001.12.05.15.00.47;	author agc;	state Exp;
branches;
next	1.19;

1.19
date	2001.04.09.11.45.35;	author wiz;	state Exp;
branches;
next	1.18;

1.18
date	2001.03.01.19.07.52;	author jlam;	state Exp;
branches;
next	1.17;

1.17
date	2001.02.25.04.18.02;	author hubertf;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.17.18.09.08;	author wiz;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.08.14.01.59;	author wennmach;	state Exp;
branches;
next	1.14;

1.14
date	2001.01.29.11.34.34;	author wiz;	state Exp;
branches;
next	1.13;

1.13
date	2000.12.08.09.43.06;	author wiz;	state Exp;
branches;
next	1.12;

1.12
date	2000.09.12.17.23.01;	author wennmach;	state Exp;
branches;
next	1.11;

1.11
date	2000.08.22.15.04.19;	author wennmach;	state Exp;
branches;
next	1.10;

1.10
date	2000.08.18.16.22.38;	author wiz;	state Exp;
branches;
next	1.9;

1.9
date	2000.01.06.17.02.47;	author wennmach;	state Exp;
branches;
next	1.8;

1.8
date	99.12.20.05.31.05;	author sakamoto;	state Exp;
branches;
next	1.7;

1.7
date	99.12.20.05.28.50;	author sakamoto;	state Exp;
branches;
next	1.6;

1.6
date	99.12.17.11.11.10;	author agc;	state Exp;
branches;
next	1.5;

1.5
date	99.11.03.14.44.30;	author wennmach;	state Exp;
branches;
next	1.4;

1.4
date	99.10.26.16.38.09;	author wennmach;	state Exp;
branches;
next	1.3;

1.3
date	99.10.22.14.43.06;	author agc;	state Exp;
branches;
next	1.2;

1.2
date	99.10.11.13.39.03;	author wennmach;	state Exp;
branches;
next	1.1;

1.1
date	99.10.05.12.37.18;	author wennmach;	state Exp;
branches
	1.1.1.1;
next	;

1.34.4.1
date	2012.04.08.09.18.55;	author sbd;	state Exp;
branches;
next	;

1.1.1.1
date	99.10.05.12.37.18;	author wennmach;	state Exp;
branches;
next	;


desc
@@


1.36
log
@Remove misc/jitterbug as promised. Has been unbuildable for a long time,
and is dead upstream.
@
text
@# $NetBSD: Makefile,v 1.35 2012/04/07 17:35:09 dholland Exp $

DISTNAME=	jitterbug-1.6.2
PKGREVISION=	2
CATEGORIES=	misc
MASTER_SITES=	ftp://jitterbug.samba.org/pub/jitterbug/

MAINTAINER=	wennmach@@NetBSD.org
HOMEPAGE=	http://jitterbug.samba.org/
COMMENT=	Web-oriented bug-tracking tool

PKG_DESTDIR_SUPPORT=	destdir

BROKEN=	Not buildable and dead upstream.

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}/source
CONFIGDIR=	${WRKDIR}/${PKGNAME_NOREV}/config
DOCSDIR=	${WRKDIR}/${PKGNAME_NOREV}/docs
CGIBINDIR=	libexec/cgi-bin

.include "../../mk/bsd.prefs.mk"

JB_PACKAGE?=	test

JB_USER?=	jitter
JB_USERID?=	509

JB_GROUP?=	jitter
JB_GROUPID?=	509

JB_DATADIR=	${JB_USER}/${JB_PACKAGE}/bug_tracking
JB_CONFIGDIR=	${JB_USER}/config

JB_LOCALMAIL?=	${JB_PACKAGE}-bugs

JB_HOSTNAME!=	${UNAME} -n
JB_SHORTNAME=	${JB_HOSTNAME:C/\..*//}
.if !defined(JB_FQHOSTNAME)
JB_FQHOSTNAME=	${JB_HOSTNAME}
.endif
JB_EMAIL?=	${JB_LOCALMAIL}@@${JB_FQHOSTNAME}

PKG_GROUPS=		${JB_GROUP}
PKG_GID.${JB_GROUP}=	${JB_GROUPID}
PKG_UID.${JB_USER}=	${JB_USERID}
PKG_USERS=		${JB_USER}:${JB_GROUP}

PKG_GROUPS_VARS+=	JB_GROUP
PKG_USERS_VARS+=	JB_USER

USERGROUP_PHASE=	pre-install

GNU_CONFIGURE=	yes

MESSAGE_SUBST+=	JB_USER=${JB_USER:Q}		\
		JB_PACKAGE=${JB_PACKAGE:Q}	\
		JB_LOCALMAIL=${JB_LOCALMAIL:Q}

PLIST_SUBST+=	JB_DATADIR=${JB_DATADIR:Q}
PLIST_SUBST+=	CGIBINDIR=${CGIBINDIR:Q}
PLIST_SUBST+=	JB_PACKAGE=${JB_PACKAGE:Q}
PLIST_SUBST+=	JB_USER=${JB_USER:Q}
PLIST_SUBST+=	JB_GROUP=${JB_GROUP:Q}

FILES_SUBST+=	JB_USER=${JB_USER} JB_USERID=${JB_USERID}		\
		JB_GROUP=${JB_GROUP} JB_GROUPID=${JB_GROUPID}		\
		JB_PACKAGE=${JB_PACKAGE}				\
		ADDUSER=${ADDUSER} ADDGROUP=${ADDGROUP}			\
		CHGRP=${CHGRP} ID=${ID} TOUCH=${TOUCH} RM=${RM}

pre-extract:
	@@(if [ "X${JB_HOSTNAME}" = "X${JB_SHORTNAME}" ]; then                 \
	${ECHO};                                                              \
	${ECHO} "Warning: could not determine your fully qualified host";     \
	${ECHO} "         name. Please set the JB_FQHOSTNAME environment";    \
	${ECHO} "         variable or set the correct fully qualified";       \
	${ECHO} "         domain name in ${PREFIX}/${JB_CONFIGDIR}/jitterbug.config"; \
	${ECHO} "         after installation.";                               \
	fi)
.if ${JB_PACKAGE} == "test"
	@@${ECHO}
	@@${ECHO} "You should define the JB_PACKAGE environment variable:"
	@@${ECHO} "JB_PACKAGE    -- the name of your bug category"
	@@${ECHO}
	@@${ECHO} "pkgsrc will build jitterbug with \$$JB_PACKAGE = \"test\""
	@@${ECHO} "so that you can easily evaluate this package."
	@@${ECHO} "If you decide to use jitterbug for a real application"
	@@${ECHO} "you can safely deinstall jitterbug and reinstall it with"
	@@${ECHO} "\$$JB_PACKAGE set to something more senseful."
	@@${ECHO}
	@@${ECHO} "You may override the following environment variables:"
	@@${ECHO} "JB_USER       -- jitterbug user (default='${JB_USER}')"
	@@${ECHO} "JB_USERID     -- jitterbug user id (default=${JB_USERID})"
	@@${ECHO} "JB_GROUP      -- jitterbug group name (default='${JB_GROUP}')"
	@@${ECHO} "JB_GROUPID    -- jitterbug group id (default=${JB_GROUPID})"
	@@${ECHO} "JB_FQHOSTNAME -- fully qualified host name"
	@@${ECHO} "JB_LOCALMAIL  -- local mail alias for \$$JB_PACKAGE category."
	@@${ECHO}
	@@${ECHO} "jitterbug will send and receive e-mail for \$$JB_PACKAGE"
	@@${ECHO} "  as '\$$JB_LOCALMAIL'@@${JB_FQHOSTNAME}"
	@@${ECHO} "  (default='${JB_LOCALMAIL}@@${JB_FQHOSTNAME}')"
	@@${ECHO}
.endif
.if ${JB_FQHOSTNAME} == ${JB_SHORTNAME}
	@@${ECHO} "Warning: Could not determine your fully qualified hostname."
	@@${ECHO} "You must set the JB_FQHOSTNAME environment variable."
	@@${ECHO}
	@@${FALSE}
.endif
	@@(case "X${JB_USER}" in                                               \
	Xbin|Xetc|Xinclude|Xinfo|Xlib|Xlibdata|Xlibexec|Xman|Xsbin|Xshare)    \
		gooduser=no;                                                  \
		;;                                                            \
	*)                                                                    \
		gooduser=yes;                                                 \
		;;                                                            \
	esac;                                                                 \
	if [ $$gooduser = "no" ]; then                                        \
		${ECHO} "You have choosen JB_USER=${JB_USER} which";          \
		${ECHO} "will cause trouble, because gnats would get";        \
		${ECHO} "installed to ${PREFIX}/share ${JB_USER}. So";        \
		${ECHO} "please set JB_USER to something more reasonable";    \
		${ECHO} "like 'jitter'.";                                     \
		${ECHO} "";                                                   \
		${FALSE};                                                     \
		fi)

post-patch:
	@@${SED} -e 's|@@PREFIX@@|${PREFIX}|g'                                   \
		< ${WRKSRC}/jconfig.h                                         \
		> ${WRKSRC}/jconfig.h.tmp
	@@${MV} -f ${WRKSRC}/jconfig.h.tmp ${WRKSRC}/jconfig.h

pre-install:
.if !defined(JB_USER)
	@@${ECHO} "Arrrgggghhh. JB_USER not defined. Please send-pr!"
	@@${FALSE}
.endif
	@@${SED}                                                               \
		-e 's|@@JB_USER@@|${JB_USER}|g'                                 \
			<${FILESDIR}/jitterbug.auth                           \
			>${WRKDIR}/jitterbug.auth
	@@${SED}                                                               \
		-e 's|@@JB_USER@@|${JB_USER}|g'                                 \
		-e 's|@@JB_PACKAGE@@|${JB_PACKAGE}|g'                           \
		-e 's|@@PREFIX@@|${PREFIX}|g'                                   \
			<${FILESDIR}/NEWPACKAGE                               \
			>${WRKDIR}/NEWPACKAGE
	@@${SED}								      \
		-e 's|@@JB_PACKAGE@@|${JB_PACKAGE}|g'			      \
		-e 's|@@JB_USER@@|${JB_USER}|g'				      \
		-e 's|@@PREFIX@@|${PREFIX}|g'				      \
			< ${FILESDIR}/httpd.conf			      \
			> ${WRKDIR}/httpd.conf

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/footer.html ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/footer.html ] ||               \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/footer.html ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/guest.prefs ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/guest.prefs ] ||               \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/guest.prefs ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/guestintro.html ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/guestintro.html ] ||           \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/guestintro.html ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/intro.html ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/intro.html ] ||                \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/intro.html ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/reportform.html ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/reportform.html ] ||           \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/reportform.html ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${CONFIGDIR}/users ${DESTDIR}${PREFIX}/${JB_CONFIGDIR}
	[ -f ${DESTDIR}${PREFIX}/${JB_DATADIR}/users ] ||                     \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${CONFIGDIR}/users ${DESTDIR}${PREFIX}/${JB_DATADIR}
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/${CGIBINDIR}
	${INSTALL} -c -o ${ROOT_USER} -g nobody -m 4710                       \
		${WRKSRC}/jitterbug ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}
	${LN} -f ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}               \
	         ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHOWN} ${ROOT_USER} ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHGRP} nobody ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHMOD} 4710 ${DESTDIR}${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/${JB_USER}/bin
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 755                     \
		${WRKSRC}/new_message ${DESTDIR}${PREFIX}/${JB_USER}/bin
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${WRKSRC}/jitterbug ${DESTDIR}${PREFIX}/${JB_USER}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${JB_USER}/etc
	[ -f ${DESTDIR}${PREFIX}/${JB_USER}/etc ] ||                          \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 755             \
		${WRKDIR}/jitterbug.auth ${DESTDIR}${PREFIX}/${JB_USER}/etc
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${JB_USER}/doc
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${WRKDIR}/NEWPACKAGE ${DESTDIR}${PREFIX}/${JB_USER}/doc
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${DOCSDIR}/CONFIG.txt ${DESTDIR}${PREFIX}/${JB_USER}/doc
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${DOCSDIR}/INSTALL ${DESTDIR}${PREFIX}/${JB_USER}/doc
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
		${DOCSDIR}/JitterBug.txt ${DESTDIR}${PREFIX}/${JB_USER}/doc
	@@${SED}                                                               \
		-e 's|@@JB_EMAIL@@|${JB_EMAIL}|g'                               \
		-e 's|@@JB_DATADIR@@|${JB_DATADIR}|g'                           \
		-e 's|@@JB_USERID@@|${JB_USERID}|g'                             \
		-e 's|@@JB_GROUPID@@|${JB_GROUPID}|g'                           \
		-e 's|@@PREFIX@@|${PREFIX}|g'                                   \
		<${FILESDIR}/jitterbug.config                                 \
		>${DESTDIR}${PREFIX}/${JB_CONFIGDIR}/jitterbug.config
	${CHOWN} -R ${JB_USER} ${DESTDIR}${PREFIX}/${JB_USER}
	${CHGRP} -R ${JB_GROUP} ${DESTDIR}${PREFIX}/${JB_USER}
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/etc/jitterbug
	[ -f ${DESTDIR}${PREFIX}/etc/jitterbug/${JB_PACKAGE} ] ||             \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${DESTDIR}${PREFIX}/${JB_CONFIGDIR}/jitterbug.config          \
		${DESTDIR}${PREFIX}/etc/jitterbug/${JB_PACKAGE}
	[ -f ${DESTDIR}${PREFIX}/etc/jitterbug/${JB_PACKAGE}.private ] ||     \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${DESTDIR}${PREFIX}/${JB_CONFIGDIR}/jitterbug.config          \
		${DESTDIR}${PREFIX}/etc/jitterbug/${JB_PACKAGE}.private
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644        	      \
		${WRKDIR}/httpd.conf			                      \
		${DESTDIR}${PREFIX}/etc/jitterbug/httpd.conf.add

.include "../../mk/bsd.pkg.mk"
@


1.35
log
@Mark BROKEN; is not buildable and is dead upstream. Will be removed in
due course.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2011/11/11 18:43:43 joerg Exp $
@


1.34
log
@Add DESTDIR support.

XXX The @@exec logic in PLIST is a mess and needs fixing.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2010/12/31 07:57:14 obache Exp $
d14 2
@


1.34.4.1
log
@Pullup ticket #3710 - requested by dholland
Mark packages as broken.

Revisions pulled up:
- chat/centericq/Makefile                                       1.76
- devel/ArX/Makefile                                            1.33
- lang/gcc3-java/Makefile                                       1.28
- lang/gcc3/Makefile                                            1.66
- misc/jitterbug/Makefile                                       1.35
- www/sope/Makefile                                             1.18

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:31:12 UTC 2012

   Modified Files:
   	pkgsrc/chat/centericq: Makefile

   Log Message:
   Mark BROKEN; has not been buildable in some years. Will be removed in
   due course unless someone fixes it. (Successor is chat/centerim.)

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:32:40 UTC 2012

   Modified Files:
   	pkgsrc/devel/ArX: Makefile

   Log Message:
   Mark BROKEN; has not been buildable (in various differing ways) for
   some time. Will be removed in due course unless someone fixes it.
   Dead upstream; no successor. If you need this, speak up on pkgsrc-users.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:33:54 UTC 2012

   Modified Files:
   	pkgsrc/lang/gcc3: Makefile

   Log Message:
   Disable gcc3-java as it does not build, has not built in years, and
   attempts to fix it have failed.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:34:31 UTC 2012

   Modified Files:
   	pkgsrc/lang/gcc3-java: Makefile

   Log Message:
   Mark BROKEN. Has not built in a long time if ever; attempts to fix it
   have failed. Also, gcc3 is obsolete.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:35:09 UTC 2012

   Modified Files:
   	pkgsrc/misc/jitterbug: Makefile

   Log Message:
   Mark BROKEN; is not buildable and is dead upstream. Will be removed in
   due course.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 17:36:40 UTC 2012

   Modified Files:
   	pkgsrc/www/sope: Makefile

   Log Message:
   Mark BROKEN; has not been buildable in years. Will be removed in due
   course unless fixed. As far as anyone has been able to figure out so
   far, this is actually an older version of devel/SOPE.
@
text
@d1 1
a1 1
# $NetBSD$
a13 2
BROKEN=	Not buildable and dead upstream.

@


1.33
log
@This package is using GNU Configure script.
Changed to GNU_CONFIGURE=yes so that pksrc hooks for GNU Configure will be
invoked and fixes PR#44299.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2009/01/14 12:20:57 sketch Exp $
d12 2
d49 2
d155 2
a156 2
	${INSTALL_DATA_DIR} ${PREFIX}/${JB_CONFIGDIR}
	${INSTALL_DATA_DIR} ${PREFIX}/${JB_DATADIR}
d158 2
a159 2
		${CONFIGDIR}/footer.html ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/footer.html ] ||                         \
d161 1
a161 1
		${CONFIGDIR}/footer.html ${PREFIX}/${JB_DATADIR}
d163 2
a164 2
		${CONFIGDIR}/guest.prefs ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/guest.prefs ] ||                         \
d166 1
a166 1
		${CONFIGDIR}/guest.prefs ${PREFIX}/${JB_DATADIR}
d168 2
a169 2
		${CONFIGDIR}/guestintro.html ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/guestintro.html ] ||                     \
d171 1
a171 1
		${CONFIGDIR}/guestintro.html ${PREFIX}/${JB_DATADIR}
d173 2
a174 2
		${CONFIGDIR}/intro.html ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/intro.html ] ||                          \
d176 1
a176 1
		${CONFIGDIR}/intro.html ${PREFIX}/${JB_DATADIR}
d178 2
a179 2
		${CONFIGDIR}/reportform.html ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/reportform.html ] ||                     \
d181 1
a181 1
		${CONFIGDIR}/reportform.html ${PREFIX}/${JB_DATADIR}
d183 2
a184 2
		${CONFIGDIR}/users ${PREFIX}/${JB_CONFIGDIR}
	[ -f ${PREFIX}/${JB_DATADIR}/users ] ||                               \
d186 10
a195 9
		${CONFIGDIR}/users ${PREFIX}/${JB_DATADIR}
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${CGIBINDIR}
	${INSTALL} -c -o ${ROOT_USER} -g nobody -m 4710                               \
		${WRKSRC}/jitterbug ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}
	${LN} -f ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE} ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHOWN} ${ROOT_USER} ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHGRP} nobody ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${CHMOD} 4710 ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${JB_USER}/bin
d197 1
a197 1
		${WRKSRC}/new_message ${PREFIX}/${JB_USER}/bin
d199 3
a201 3
		${WRKSRC}/jitterbug ${PREFIX}/${JB_USER}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/${JB_USER}/etc
	[ -f ${PREFIX}/${JB_USER}/etc ] ||                                    \
d203 2
a204 2
		${WRKDIR}/jitterbug.auth ${PREFIX}/${JB_USER}/etc
	${INSTALL_DATA_DIR} ${PREFIX}/${JB_USER}/doc
d206 1
a206 1
		${WRKDIR}/NEWPACKAGE ${PREFIX}/${JB_USER}/doc
d208 1
a208 1
		${DOCSDIR}/CONFIG.txt ${PREFIX}/${JB_USER}/doc
d210 1
a210 1
		${DOCSDIR}/INSTALL ${PREFIX}/${JB_USER}/doc
d212 1
a212 1
		${DOCSDIR}/JitterBug.txt ${PREFIX}/${JB_USER}/doc
d220 9
a228 9
		>${PREFIX}/${JB_CONFIGDIR}/jitterbug.config
	${CHOWN} -R ${JB_USER} ${PREFIX}/${JB_USER}
	${CHGRP} -R ${JB_GROUP} ${PREFIX}/${JB_USER}
	${INSTALL_DATA_DIR} ${PREFIX}/etc/jitterbug
	[ -f ${PREFIX}/etc/jitterbug/${JB_PACKAGE} ] ||                       \
		${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644             \
		${PREFIX}/${JB_CONFIGDIR}/jitterbug.config                    \
		${PREFIX}/etc/jitterbug/${JB_PACKAGE}
	[ -f ${PREFIX}/etc/jitterbug/${JB_PACKAGE}.private ] ||               \
d230 2
a231 2
		${PREFIX}/${JB_CONFIGDIR}/jitterbug.config                    \
		${PREFIX}/etc/jitterbug/${JB_PACKAGE}.private
d234 1
a234 1
		${PREFIX}/etc/jitterbug/httpd.conf.add
@


1.32
log
@Get rid of `hostname -s` in pkgsrc, on Solaris it sets the hostname to "-s".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2008/06/16 14:39:35 joerg Exp $
d47 1
a47 2
HAS_CONFIGURE=	yes
CONFIGURE_ARGS+=	--prefix=${PREFIX:Q}
@


1.31
log
@Welcome to the pkginstall user/group framework. Bump revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2007/07/04 20:54:48 jlam Exp $
d32 2
a33 2
JB_HOSTNAME=	`hostname -s`
JB_LONGNAME=	`hostname`
d35 1
a35 1
JB_FQHOSTNAME=	${JB_LONGNAME}
d67 1
a67 1
	@@(if [ "X${JB_HOSTNAME}" = "X${JB_LONGNAME}" ]; then                  \
d99 1
a99 1
.if ${JB_FQHOSTNAME} == ${JB_HOSTNAME}
@


1.30
log
@Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2007/01/31 00:04:12 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
a11 11
BROKEN_IN=		pkgsrc-2006Q4

.if exists(/usr/sbin/user)
ADDUSER=		/usr/sbin/useradd
ADDGROUP=		/usr/sbin/groupadd
.else
DEPENDS+=		user>=20000313:../../sysutils/user
ADDUSER=		${LOCALBASE}/sbin/useradd
ADDGROUP=		${LOCALBASE}/sbin/groupadd
.endif

a12 2
DEINSTALL_SRC=	${PKGDIR}/DEINSTALL
INSTALL_SRC=	${PKGDIR}/INSTALL
d39 5
a201 2
		${MESSAGE} ${PREFIX}/${JB_USER}/doc/POSTINSTALL
	${INSTALL} -c -o ${JB_USER} -g ${JB_GROUP} -m 644                     \
@


1.29
log
@Mark as BROKEN_IN pkgsrc-2006Q4, based on
ftp://asim.lip6.fr/outgoing/packages/i386/3.1/20070114.1132/broken.html
(latest 3.1/i386 bulk build of 2006Q4).

Feel free to fix them...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/03/14 01:14:30 jlam Exp $
d52 3
@


1.28
log
@Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2006/03/10 20:18:38 jlam Exp $
d12 2
@


1.27
log
@Use the pkginstall framework to generate the INSTALL/DEINSTALL scripts
instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2006/01/10 18:50:09 rillig Exp $
d22 1
a23 1
DEINSTALL_SRC=	${PKGDIR}/DEINSTALL
@


1.26
log
@Replaced explicit call to ${SED} with PLIST_SUBST, which makes the bogus
lines starting with "@@" disappear from the PLIST file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/12/05 20:50:39 rillig Exp $
d22 2
a23 2
INSTALL_FILE=	${WRKDIR}/INSTALL
DEINSTALL_FILE=	${WRKDIR}/DEINSTALL
d63 6
a138 13
		-e 's|@@JB_USERID@@|${JB_USERID}|g'                             \
		-e 's|@@JB_GROUP@@|${JB_GROUP}|g'                               \
		-e 's|@@JB_GROUPID@@|${JB_GROUPID}|g'                           \
		-e 's|@@ADDUSER@@|${ADDUSER}|g'				      \
		-e 's|@@ADDGROUP@@|${ADDGROUP}|g'				      \
		-e 's|@@CHGRP@@|${CHGRP}|g'                                     \
		-e 's|@@ID@@|${ID}|g'                                           \
		-e 's|@@TOUCH@@|${TOUCH}|g'                                     \
		-e 's|@@RM@@|${RM}|g'                                           \
			<${PKGDIR}/INSTALL                                    \
			>${INSTALL_FILE}
	@@${SED}                                                               \
		-e 's|@@JB_USER@@|${JB_USER}|g'                                 \
a146 6
	@@${SED}                                                               \
		-e 's|@@JB_USER@@|${JB_USER}|g'                                 \
		-e 's|@@JB_GROUP@@|${JB_GROUP}|g'                               \
		-e 's|@@JB_PACKAGE@@|${JB_PACKAGE}|g'                           \
			<${PKGDIR}/DEINSTALL                                  \
			>${DEINSTALL_FILE}
a152 1
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
@


1.25
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2004/02/09 09:17:50 wennmach Exp $
a21 1
PLIST_SRC=	${WRKDIR}/PLIST-src
d57 6
a144 8
		-e 's|@@JB_DATADIR@@|${JB_DATADIR}|g'                           \
		-e 's|@@CGIBINDIR@@|${CGIBINDIR}|g'                             \
		-e 's|@@JB_PACKAGE@@|${JB_PACKAGE}|g'                           \
		-e 's|@@JB_USER@@|${JB_USER}|g'                                 \
		-e 's|@@JB_GROUP@@|${JB_GROUP}|g'                               \
			<${PKGDIR}/PLIST                                      \
			>${PLIST_SRC}
	@@${SED}                                                               \
@


1.24
log
@Add security fix for CAN-2004-0028 based on the patches provided
by the Debian project.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2004/01/20 12:21:02 agc Exp $
d52 1
a52 1
CONFIGURE_ARGS=	--prefix=${PREFIX}
d54 3
a56 3
MESSAGE_SUBST+=	JB_USER=${JB_USER}		\
		JB_PACKAGE=${JB_PACKAGE}	\
		JB_LOCALMAIL=${JB_LOCALMAIL}
@


1.23
log
@Move WRKSRC definition away from the first paragraph in a Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2003/07/17 21:49:15 grant Exp $
d4 1
@


1.22
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2003/06/18 09:22:23 agc Exp $
a3 1
WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}/source
d20 1
@


1.21
log
@When constructing the WRKSRC definition, use ${PKGNAME_NOREV} rather than
${PKGNAME}, so that the WRKSRC definition is immune from any subsequent
PKGREVISION changes. With thanks to jmc for the nudge.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2001/12/05 15:00:47 agc Exp $
d8 1
a8 1
MAINTAINER=	wennmach@@netbsd.org
@


1.20
log
@s/root/${ROOT_USER}/g, now that the definition appears in the
defs.${OPSYS}.mk files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2001/04/09 11:45:35 wiz Exp $
d4 1
a4 1
WRKSRC=		${WRKDIR}/${PKGNAME}/source
d24 2
a25 2
CONFIGDIR=	${WRKDIR}/${PKGNAME}/config
DOCSDIR=	${WRKDIR}/${PKGNAME}/docs
@


1.19
log
@Remove unneeded '-' before ${MKDIR} or ${INSTALL_DATA_DIR}
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2001/03/01 19:07:52 jlam Exp $
d204 1
a204 1
	${INSTALL} -c -o root -g nobody -m 4710                               \
d207 1
a207 1
	${CHOWN} root ${PREFIX}/${CGIBINDIR}/${JB_PACKAGE}.private
@


1.18
log
@Mechanical changes to use ${PKG_PREFIX} instead of substituting for
@@PREFIX@@ in DEINSTALL/INSTALL scripts.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/02/25 04:18:02 hubertf Exp $
d172 1
a172 1
	-${INSTALL_DATA_DIR} ${PREFIX}/${JB_DATADIR}
d203 1
a203 1
	-${INSTALL_PROGRAM_DIR} ${PREFIX}/${CGIBINDIR}
d240 1
a240 1
	-${INSTALL_DATA_DIR} ${PREFIX}/etc/jitterbug
@


1.17
log
@Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2001/02/17 18:09:08 wiz Exp $
a129 1
		-e 's|@@PREFIX@@|${PREFIX}|g'                                   \
a159 1
		-e 's|@@PREFIX@@|${PREFIX}|g'                                   \
d168 1
a168 1
	${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
@


1.16
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/02/08 14:01:59 wennmach Exp $
d173 2
a174 2
	${MKDIR} ${PREFIX}/${JB_CONFIGDIR}
	-${MKDIR} ${PREFIX}/${JB_DATADIR}
d205 1
a205 1
	-${MKDIR} ${PREFIX}/${CGIBINDIR}
d212 1
a212 1
	${MKDIR} ${PREFIX}/${JB_USER}/bin
d217 1
a217 1
	${MKDIR} ${PREFIX}/${JB_USER}/etc
d221 1
a221 1
	${MKDIR} ${PREFIX}/${JB_USER}/doc
d242 1
a242 1
	-${MKDIR} ${PREFIX}/etc/jitterbug
@


1.15
log
@Avoid the use of the `host' program to determine the fully qualified host
name. This may caused problems on some machines with non-standard network
setup.

Pointed out by Jon Buller and by Dan MacMahill.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2001/01/29 11:34:34 wiz Exp $
d10 1
@


1.14
log
@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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2000/12/08 09:43:06 wiz Exp $
a28 7
HOSTCMD=	/usr/bin/false
.if exists(/usr/sbin/host)
HOSTCMD=	/usr/sbin/host
.elif exists(/usr/bin/host)
HOSTCMD=	/usr/bin/host
.endif

d42 2
d45 1
a45 6
JB_TMP!=	${HOSTCMD} `/bin/hostname` 2>/dev/null
.if (${JB_TMP} == "")
JB_FQHOSTNAME="totally.unknown.domain"
.else
JB_FQHOSTNAME!= echo ${JB_TMP} | /usr/bin/awk '{ print $$1; exit}'
.endif
d57 8
a64 7
.if ${JB_FQHOSTNAME} == "totally.unknown.domain"
	@@${ECHO}
	@@${ECHO} "Warning: could not determine your fully qualified host"
	@@${ECHO} "         name. Please set the JB_FQHOSTNAME environment"
	@@${ECHO} "         variable accordingly and/or fix your name server."
	@@${ECHO} "         Building for domain 'totally.unknown.domain'"
.endif
@


1.13
log
@Replace REQ file by INSTALL file. Do user handling like it's done in
sysutils/amanda-common/pkg/INSTALL.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2000/09/12 17:23:01 wennmach Exp $
a22 1
MESSAGE_FILE=	${WRKDIR}/MESSAGE
d62 4
a166 7
		-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'                                 \
d231 1
a231 1
		${MESSAGE_FILE} ${PREFIX}/${JB_USER}/doc/POSTINSTALL
@


1.12
log
@Overhaul of the jitterbug package.
No longer modify /etc/aliases and httpd.conf (fixes PR 10126).
Also, jitterbug does not depend on apache any longer.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2000/08/22 15:04:19 wennmach Exp $
d21 1
a21 1
REQ_FILE=	${WRKDIR}/REQ
d138 6
a143 2
			<${PKGDIR}/REQ                                        \
			>${REQ_FILE}
d182 1
a182 1
	${SH} ${REQ_FILE} ${PKGNAME} INSTALL
@


1.11
log
@Do not bail out if host returns an empty string or does not work.
This way to obtain the fully qualified domain name of the machine
only generates warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2000/08/18 16:22:38 wiz Exp $
a10 2
DEPENDS+=	apache-1.3.*:../../www/apache

d89 1
d91 2
a92 1
	@@${ECHO} "as '\$$JB_LOCALMAIL'@@${JB_FQHOSTNAME}"
d127 1
a127 1
	@@${ECHO} "Arrrgggghhh. JB_USER not defined. Send-pr!"
a134 2
		-e 's|@@JB_LOCALMAIL@@|${JB_LOCALMAIL}|g'                       \
		-e 's|@@JB_PACKAGE@@|${JB_PACKAGE}|g'                           \
a137 1
		-e 's|@@FILESDIR@@|${FILESDIR}|g'                               \
d162 1
d172 6
d213 1
d259 3
@


1.10
log
@use the `user' package instead of `addnerd'.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2000/01/06 17:02:47 wennmach Exp $
d53 6
a58 1
JB_FQHOSTNAME!=	(${HOSTCMD} `/bin/hostname` 2>/dev/null || echo totally.unknown.domain) | /usr/bin/awk '{ print $$1; exit }'
d81 1
a81 1
	@@${ECHO} "you can safly deinstall jitterbug and reinstall it with"
@


1.9
log
@Make this Makefile work again.

A block of garbage was imported by someone in version 1.6 and somebody else
removed the wrong pieces in version 1.7. And if someone (or somebody else)
wants to replace awk by ${AWK}, please test thoroughly before committing.

Thomas Klausner (wiz@@netbsd.org) pointed me to this broken Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1999/11/03 14:44:30 wennmach Exp $
a10 1
DEPENDS+=	addnerd-1.6:../../sysutils/addnerd
d13 9
d133 2
a134 1
		-e 's|@@LOCALBASE@@|${LOCALBASE}|g'                             \
@


1.8
log
@s|/usr/bin/awk|${AWK}|
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/12/20 05:28:50 sakamoto Exp $
d45 1
a45 2
JB_HOSTNAME!=	/bin/hostname
JB_FQHOSTNAME!=	${NSLOOKUP} ${JB_HOSTNAME} | ${AWK} '/^Name: / { print $$2; exit }'
@


1.7
log
@Eliminate "<<<<<<< Makefile", "=======", ">>>>>>> 1.5" and old block.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1999/12/17 11:11:10 agc Exp $
d46 1
a46 1
JB_FQHOSTNAME!=	${NSLOOKUP} ${JB_HOSTNAME} | /usr/bin/awk '/^Name: / { print $$2; exit }'
@


1.6
log
@Correct the addnerd dependency by adding a version number for this
package.  Pointed out by David Brownlee.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1999/11/03 14:44:30 wennmach Exp $
a44 1
<<<<<<< Makefile
a46 3
=======
JB_FQHOSTNAME!=	(${HOSTCMD} `/bin/hostname` 2>/dev/null || echo totally.unknown.domain) | /usr/bin/awk '{ print $$1; exit }'
>>>>>>> 1.5
@


1.5
log
@Revert to the "host" command (from "nslookup") for looking up fully qualified
host names. Make this fail-safe in case host has no working domain name server.

Fixes "make show-downlevel" lossage, mentionned by Thomas Klausner
<wiz@@danbala.ifoer.tuwien.ac.at> in private email.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1999/10/26 16:38:09 wennmach Exp $
d11 1
a11 1
DEPENDS+=	addnerd:../../sysutils/addnerd
d45 4
d50 1
@


1.4
log
@Make this pkg work even if 'hostname' does not return the fully qualified
hostname, without requiring the environment variable JB_FQHOSTNAME to be set.
Should also work on Solaris.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1999/10/22 14:43:06 agc Exp $
d24 5
a28 4
.if exists(/usr/sbin/nslookup)
NSLOOKUP=	/usr/sbin/nslookup
.elif exists(/usr/bin/nslookup)
NSLOOKUP=	/usr/bin/nslookup
d45 1
a45 2
JB_HOSTNAME!=	/bin/hostname
JB_FQHOSTNAME!=	${NSLOOKUP} ${JB_HOSTNAME} | /usr/bin/grep Name: | /usr/bin/awk '{ print $$2 }'
d53 7
d82 1
a82 1
.if (${JB_FQHOSTNAME} == ${JB_HOSTNAME})
@


1.3
log
@Move the inclusion of bsd.prefs.mk before the first use of any variable
which may be defined in /etc/mk.conf
Use a complicated echo & sed combination, rather than hostname -s, which
doesn't work on Solaris.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1999/10/11 13:39:03 wennmach Exp $
d24 6
d42 1
d44 2
a45 1
JB_FQHOSTNAME!=	hostname
a46 1
JB_HOSTNAME!=	echo '${JB_FQHOSTNAME}' | sed -e 's|\..*||'
d72 1
a72 1
	@@${ECHO} "as \$$JB_LOCALMAIL@@\$$JB_FQHOSTNAME"
@


1.2
log
@Fixed some minor problems of this pkg, including:

o do not require $JB_PACKAGE to be set to a bug category; if $JB_PACKAGE
  is not set, the default category "test" is used

o the above will also fix the error messages on nbftp occuring in
  update-distfiles (hi veego!)

o make proper use of "DEINSTALL" and "MESSAGE" files so that installing
  (and deinstalling) of jitterbug from pkgsrc/as binary makes no difference

o when echoing the defaults for JB_USER, JB_USERID, etc, use the actual
  variables, not hardcoded values

o ownership of jitterbig.config fixed (@@JB_USER@@ instead of root)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 1999/10/05 12:37:18 wennmach Exp $
d14 1
a14 1
PLIST_SRC=	${WRKDIR}/PLIST.tmp
d22 2
d39 1
a39 1
JB_HOSTNAME!=	hostname -s
a43 2

.include "../../mk/bsd.prefs.mk"
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d16 2
d22 2
a24 1

a27 1

d45 2
a46 2
fetch-depends:
.if !defined(JB_PACKAGE)
d48 1
a48 1
	@@${ECHO} "You must define the following environment variable:"
d51 6
d58 4
a61 4
	@@${ECHO} "JB_USER       -- jitterbug user (default 'jitter')"
	@@${ECHO} "JB_USERID     -- jitterbug user id (default 509)"
	@@${ECHO} "JB_GROUP      -- jitterbug group name (default 'jitter')"
	@@${ECHO} "JB_GROUPID    -- jitterbug group id (default 509)"
a66 1
	@@${FALSE}
a73 2

pre-extract:
d103 1
a103 1
	@@${SED}  \
d115 1
a115 1
	@@${SED}  \
d123 1
a123 1
	@@${SED}  \
d127 1
a127 1
	@@${SED}  \
d133 1
a133 1
	@@${SED}  \
d137 9
a145 2
			<${FILESDIR}/POSTINSTALL                              \
			>${WRKDIR}/POSTINSTALL
d198 1
a198 1
		${WRKDIR}/POSTINSTALL ${PREFIX}/${JB_USER}/doc
a206 3
	${CHOWN} -R ${JB_USER} ${PREFIX}/${JB_USER}
	${CHGRP} -R ${JB_GROUP} ${PREFIX}/${JB_USER}
	-${MKDIR} ${PREFIX}/etc/jitterbug
d215 3
a225 13

post-install:
.if !defined(BATCH)
	@@${ECHO} " "
	@@${ECHO} "Please observe the following POSTINSTALL notes:"
	@@${ECHO} "(POSTINSTALL is also installed in ${PREFIX}/${JB_USER}/doc)"
	@@${ECHO} " "
	@@${ECHO} "=============================================================================="
	@@${CAT} ${WRKDIR}/POSTINSTALL
	@@${ECHO} " "
	@@${ECHO} "=============================================================================="
	@@${ECHO} " "
.endif
@


1.1.1.1
log
@Initial import of jitterbug-1.6.2: a web-oriented bug-tracking tool
@
text
@@
