head	1.5;
access;
symbols
	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;
locks; strict;
comment	@# @;


1.5
date	2009.04.11.09.58.39;	author miwi;	state dead;
branches;
next	1.4;

1.4
date	2007.04.11.19.23.37;	author miwi;	state Exp;
branches;
next	1.3;

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

1.2
date	2005.11.02.02.11.52;	author edwin;	state Exp;
branches;
next	1.1;

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


desc
@@


1.5
log
@2009-03-22 science/oof: Broken with GCC 4.2 and beyond
2009-04-06 www/raqdevil: Master site gone, distfiles not fetchable
@
text
@#!/bin/sh

PREF=${PREFIX:-$PKG_PREFIX}
PATH=/bin:/usr/sbin:/usr/bin

case $2 in
POST-INSTALL)
	GROUP=users

	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

	${TOUCH} /etc/mail/access;

	mkdir -p ${PREF}/raqdevil/ui/web/base/sitestats/img;
	chown www:wheel ${PREF}/raqdevil/ui/web/base/sitestats/img;
	mkdir -p ${PREF}/raqdevil/sessions;

	${TOUCH} ${PREF}/etc/apache2/httpd.local.conf
	${TOUCH} ${PREF}/etc/apache2/httpd.raqdevil.conf

	# generate certificates if required
	CERTPATH=${PREF}/admserv/certs
	KEYPATH=${CERTPATH}/key
	CSRPATH=${CERTPATH}/request
	CRTPATH=${CERTPATH}/certificate

	mkdir -p ${CERTPATH}

	if [ ! -f ${KEYPATH} ]; then
	        openssl genrsa -out ${KEYPATH} 2048
	fi
	if [ ! -f ${CSRPATH} ]; then
	        openssl req -new -key ${KEYPATH} -out ${CSRPATH}
	fi
	if [ ! -f ${CRTPATH} ]; then
	        openssl x509 -req -days 365 -in ${CSRPATH} -signkey ${KEYPATH} -out ${CRTPATH}
	fi

	# fix up the apache httpd.conf file using database values
	# probably should use /usr/local/raqdevil/bin/cce_construct instead
	# to make a package install work correctly
	${PREF}/raqdevil/constructor/base/apache/processAdvise.pl


	( cd /etc/namedb; sh /etc/namedb/make-localhost )
	;;
esac
@


1.4
log
@- Unbreak
- Remove EXPIRATION_DATE
- Fix plist
- Set NO_PACKAGE as workaround for pointyhat and tinderbox.

Notes: we work on a correct patchset with the authors :)

PR:		111460
Submitted by:	Cstdenis <cstdenis@@ctgameinfo.com>
Thanks to:      netchild@@, mike (co author), and many other guys for helping
Approved by:	Devon H. O'Dell (maintainer)
@
text
@@


1.3
log
@- Update to 1.0

PR:		ports/91855
Submitted by:	Devon H. O'Dell <dodell@@iXsystems.com> (maintainer)
@
text
@d21 1
a21 1
	/usr/bin/touch /etc/mail/access;
d27 2
a28 2
	/usr/bin/touch ${PREF}/etc/apache2/httpd.local.conf
	/usr/bin/touch ${PREF}/etc/apache2/httpd.raqdevil.conf
@


1.2
log
@[patch] Update www/raqdevil to 0.9.6

	We've released an 0.9.6 version of RAQdevil. The shar last
	time was apparently quite mangled, so I'm not sure that the
	current port actually works. Sorry for any miscommunication
	about that.

PR:		ports/88308
Submitted by:	Devon H. O'Dell <dodell@@offmyserver.com>
@
text
@d4 1
a4 1
PATH=/bin:/usr/sbin
d21 1
a21 1
	/usr/bin/touch /etc/mail/access
a24 2
	mkdir -p ${PREF}/raqdevil/skel/spam;
	mkdir -p ${PREF}/raqdevil/skel/quarantine;
d27 27
@


1.1
log
@new port www/raqdevil

	This pr is a duplicate of ports/87108, which doesn't have the shar.

	This shar creates a raqdevil/ directory which is suitable
	for addition in the FreeBSD ports tree.

        From the pkg-descr:

	RAQdevil is a web control panel application, developed by
	OffMyServer and based upon the Sun Cobalt RaQ550 software.
	The RAQdevil is software that provides web based management
	of multiple aspects of a server. RAQdevil manages system
	users, web sites, email, DNS, and other common server
	components used for web hosting.

        http://www.raqdevil.com/

	I submitted a shar for 0.9 as well, but cannot find the
	original report via the web interface. This shar supercedes
	0.9.

PR:		ports/87129
Submitted by:	Devon H. O'Dell <dodell@@offmyserver.com>
@
text
@d3 1
d23 5
a27 7
	if [ \! -d /usr/local/raqdevil/ui/web/base/sitestats/img ]; then
		mkdir -p /usr/local/raqdevil/ui/web/base/sitestats/img;
		chown www:wheel /usr/local/raqdevil/ui/web/base/sitestats/img;
		mkdir -p /usr/local/raqdevil/skel/spam;
		mkdir -p /usr/local/raqdevil/skel/quarantine;
		mkdir -p /usr/local/raqdevil/sessions;
	fi;
@

