head	1.5;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2;
locks; strict;
comment	@# @;


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

1.4
date	2012.03.28.21.10.24;	author jgh;	state Exp;
branches;
next	1.3;

1.3
date	2007.12.14.20.37.54;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2007.09.15.09.16.59;	author beech;	state Exp;
branches;
next	1.1;

1.1
date	2007.09.06.12.00.07;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Switch exporter over
@
text
@#! /bin/sh

# $FreeBSD: head/www/abyssws/pkg-install 300897 2012-07-14 14:29:18Z beat $

PATH=/bin:/usr/sbin
WSHOME=${PKG_PREFIX}/lib/abyssws

USER=abyssws
GROUP=${USER}

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}; 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} -g ${GROUP} -h - \
			-d ${WSHOME} -c "Abyss Web Server"
		then
			echo "Added user \"${USER}\"."
		else
			echo "Adding user \"${USER}\" failed..."
			exit 1
		fi
	fi

	if ! [ -x ~${USER} ] ; then 
		mkdir -p ${WSHOME}
		chown ${USER}:${GROUP} ${WSHOME}
	fi

	
	;;

POST-INSTALL)
	chown -R ${USER}:${GROUP} ${WSHOME}
	chmod -R u+w,o-rx ${WSHOME}
	chmod u+s ${WSHOME}/abyssws
	
	
	;;

esac
@


1.4
log
@- drop invalid post-deinstall target, and add pkg-deinstall script
- while here adjust install scripts

PR:	ports/166094
Submitted by:	jgh
Approved by:	maintainer timeout ( 14 days )
Feature safe:	yes
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/abyssws/pkg-install,v 1.3 2007/12/14 20:37:54 pav Exp $
@


1.3
log
@- Correctly define dependency
- For FreeBSD 6.X and later
- Correctly preserve index.html
- Remove user and group left behind at deinstall

PR:		ports/117003
Submitted by:	Dan Voisine <voisined@@wit.edu> (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/abyssws/pkg-install,v 1.2 2007/09/15 09:16:59 beech Exp $
a51 25
POST-DEINSTALL)
	if ! [ -x ${WSHOME} ] ; then
	    if pw group show "${GROUP}" 2>/dev/null; then
		if pw groupdel ${GROUP}; then
		    echo "Removed group \"${GROUP}\"."
		else
		    echo "Removing group \"${GROUP}\" failed..."
		    exit 1
		fi
	    else
		echo "Group \"${GROUP}\" doesn't exist!"
	    fi

	    if pw user show "${USER}" 2>/dev/null; then
		if pw userdel ${USER}; then
		    echo "Removed user \"${USER}\"."
		else
		    echo "Removing user \"${USER}\" failed..."
		    exit 1
		fi
	    else
		echo "User \"${USER}\" doesn't exist!"
	    fi
	fi
	;;
@


1.2
log
@- Make fetchable
- Fix install and package permissions

PR:		ports/116265
Submitted by:	Daniel Voisine <voisined@@wit.edu>
Approved by:	sat (mentor)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/abyssws/pkg-install,v 1.1 2007/09/06 12:00:07 edwin Exp $
d42 1
a42 4
	if [ -r ${WSHOME}/htdocs/index.html ] ; then
	       mv ${WSHOME}/htdocs/index.html ${WSHOME}/htdocs/index.html.bak
	fi

d50 25
a74 2
	if [ -r ${WSHOME}/htdocs/index.html.bak ] ; then
	       mv ${WSHOME}/htdocs/index.html.bak ${WSHOME}/htdocs/index.html
a75 1

a77 1

@


1.1
log
@New Port: www/abyssws - compact and easy to use web server

	Abyss Web Server is a compact and easy to use web server.

	Despite its small footprint, it supports HTTP/1.1, dynamic
	content generation through CGI/FastCGI scripts, ISAPI
	extensions, native ASP.NET support, Server Side Includes
	(SSI), custom error pages, password protection, IP address
	control, anti-leeching, and bandwidth throttling.

	It also features an automatic antihacking system as well
	as a multilingual remote web management interface that makes
	its configuration as easy as browsing a web site.

	It supports a wide range of Web technologies and can run
	advanced PHP, Perl, Python, ASP, ASP.NET, and Ruby on Rails
	Web applications which can be backed by databases such as
	MySQL, SQLite, MS SQL Server, MS Access, or Oracle.

	WWW: http://www.aprelium.com/

PR:		ports/115840
Submitted by:	Daniel Voisine <voisined@@wit.edu>
@
text
@d3 1
a3 1
# $FreeBSD$
d41 5
d52 5
@

