head	1.2;
access;
symbols
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2011.06.30.17.44.05;	author crees;	state dead;
branches;
next	1.1;

1.1
date	2001.02.16.13.35.31;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Use USERS and GROUPS
- Mark BROKEN and deprecate -- no commits since 2006 and maintainer timeout

PR:		ports/157537
Submitted by:	Chris Rees <utisoft@@gmail.com>
Approved by:	rene (mentor), maintainer timeout (2 weeks)
@
text
@#!/bin/sh

PATH=/bin:/usr/sbin
USER=bbs
GROUP=bbs
UID=9999
GID=99

case $2 in
PRE-INSTALL)

	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 /usr/local/bbs -s /sbin/nologin -c "Firebird BBS"
		then
			echo "Added user \"${USER}\"."
		else
			echo "Adding user \"${USER}\" failed..."
			exit 1
		fi
	fi

	;;

esac
@


1.1
log
@Firebird BBS is widely used telnet based Bulletin Board System in
Chinese Internet Community.
In Taiwan, there're over 300 BBS sites using Firebird, about 50 sites in china,
and about 20 worldwide (USA, UK, Canada, Austrailla and many countries can be
find Firebird) and over thousands of users on-line at the same time in biggest
BBS site.
For more information, ref: http://www.firebird.org.tw/

PR:		ports/24899
Submitted by:	Edward Ping-Da Chuan <edwardc@@firebird.com.tw>
@
text
@@

