head	1.5;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2;
locks; strict;
comment	@# @;


1.5
date	2012.11.17.06.02.37;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2007.02.02.16.46.22;	author nivit;	state Exp;
branches;
next	1.3;

1.3
date	2005.09.21.12.19.05;	author sem;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.03.09.48.01;	author netchild;	state Exp;
branches;
next	1.1;

1.1
date	2002.08.31.11.25.50;	author netchild;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Switch exporter over
@
text
@#!/bin/sh
#
# $FreeBSD: head/www/interchange/pkg-install 300897 2012-07-14 14:29:18Z beat $
#

USER=interch
GROUP=${USER}
UID=95
GID=${UID}

case $2 in
PRE-INSTALL)
	USER=interch
	GROUP=${USER}
	UID=95
	GID=${UID}

	if pw group show "${GROUP}" 2>/dev/null; then
                echo "You already have a group \"${GROUP}\", so I will use it."
        else
                if pw groupadd ${GROUP} -g ${GID}; then
                        echo "Added group \"${GROUP}\"."
                else
                        echo "Adding group \"${GROUP}\" failed..."
                        exit 1
                fi
        fi

	if pw user show "${USER}" 2>/dev/null; then
                echo "You already have a user \"${USER}\", so I will use it."
        else
                if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
                        -d "${PKG_PREFIX}/interchange" \
			-s /bin/sh -c "Interchange user"
                then
                        echo "Added user \"${USER}\"."
                else
                        echo "Adding user \"${USER}\" failed..."
                        exit 1
                fi
        fi
        ;;
POST-INSTALL)
	/usr/bin/install -d -m 755 -o ${USER} -g ${GROUP} /var/run/interchange
	/usr/sbin/chown -R ${USER}:${GROUP} ${PKG_PREFIX}/interchange
	;;
esac
@


1.4
log
@- Updated to 5.4.1
- Added files/interchange.sh.in
- Removed files/interchange.sh

PR:		ports/108665
Submitted by:	loader <loader at freebsdmall.com> (maintainer)
Approved by:	alexbl (mentor, implicit)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/interchange/pkg-install,v 1.3 2005/09/21 12:19:05 sem Exp $
@


1.3
log
@- Update to 5.2.0
- OPTIONSfy
- Pass maintainership to submitter

PR:		ports/86204
Submitted by:	loader <loader@@freebsdmall.com>
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/interchange/pkg-install,v 1.2 2002/09/03 09:48:01 netchild Exp $
d44 2
a45 1
	chown -R ${USER}:${GROUP} ${PKG_PREFIX}/interchange
@


1.2
log
@Use UID 95 instead of 94, perforce already uses 94.

Noticed by:	Seth Kingsley <sethk@@meowfishies.com>
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/interchange/pkg-install,v 1.1 2002/08/31 11:25:50 netchild Exp $
a5 5
# $1 = package name
if [ "$2" != "PRE-INSTALL" ]; then
    exit 0
fi

d11 6
a16 4
pw groupshow ${GROUP} >/dev/null 2>&1 \
	|| (pw groupadd ${GROUP} -g ${GID} \
		|| (echo "Adding group '${GROUP}' failed!"; exit 1) \
		&& echo "Added group '${GROUP}'.")
d18 10
a27 6
pw usershow ${USER} >/dev/null 2>&1 \
	|| (pw useradd ${USER} -h - -u ${UID} -g ${GROUP} \
		-c "Interchange user" -d "${PKG_PREFIX}/interchange" \
		-s "/sbin/nologin" \
		|| (echo "Adding user '${USER}' failed!"; exit 1) \
		&& echo "Added user '${USER}'.")
d29 18
a46 1
exit 0
@


1.1
log
@Add interchange 4.8.6, RedHat's database-enabled e-commerce server.

The committed port is an improved and updated version of the submitted one,
thanks to Stefan (Racke) Hornburg <racke@@linuxia.de> for his helpful hints
about some configure/build internals of interchange.

I decided to take over maintainership of this port for a while until someone
more responsive than the port submitter (no answer so far from him since I
decided to take over the PR) is interested in it or until I think the testing
period of this port is over.

PR:		41390
Submitted by:	Seth Kingsley <sethk@@meowfishies.com>
Thanks to:	Stefan (Racke) Hornburg <racke@@linuxia.de>
@
text
@d3 1
a3 1
# $FreeBSD$
d13 1
a13 1
UID=94
@

