head	1.10;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.4
	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.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


1.10
date	2012.11.17.06.03.10;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.7;

1.7
date	2012.03.14.20.47.51;	author jgh;	state Exp;
branches;
next	1.6;

1.6
date	2012.01.01.16.47.41;	author ohauer;	state Exp;
branches;
next	1.5;

1.5
date	2011.12.13.20.24.07;	author crees;	state Exp;
branches;
next	1.4;

1.4
date	2011.08.20.17.27.52;	author ohauer;	state Exp;
branches;
next	1.3;

1.3
date	2010.06.18.09.59.04;	author linimon;	state Exp;
branches;
next	1.2;

1.2
date	2009.08.30.10.39.00;	author linimon;	state Exp;
branches;
next	1.1;

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


desc
@@


1.10
log
@Switch exporter over
@
text
@# New ports collection makefile for:	webobjects
# Date created:				Thu Apr 12 04:43:26 EST 2007
# Whom:					Quinton Dolan <q@@onthenet.com.au>
#
# $FreeBSD: head/www/webobjects/Makefile 302724 2012-08-18 14:29:08Z ohauer $
#

PORTNAME=	webobjects
PORTVERSION=	5.3.3
CATEGORIES=	www java
MASTER_SITES=	#
DISTNAME=	WebObjects${DISTVERSION}Update
EXTRACT_SUFX=	.pax.gz

MAINTAINER?=	ports@@FreeBSD.org
COMMENT=	WebObjects Application Server Runtime

IS_INTERACTIVE=	yes
RESTRICTED=	License doesn't allow redistribution

WOBINURL=	http://www.apple.com/support/downloads/webobjects533.html
WOPKGBUNDLE=	WebObjects5.3.3Update.dmg
WOBINARCHIVE=	${DISTNAME}${EXTRACT_SUFX}

NO_WRKSUBDIR=	yes
NO_BUILD=	yes
USE_RC_SUBR=	wotaskd JavaMonitor
USE_JAVA=	1.4+
EXTRACT_PRESERVE_OWNERSHIP=	yes

.include <bsd.port.pre.mk>
.include "${MASTERDIR}/Makefile.plist"

NEXT_ROOT?=	${PREFIX}/apple
NEXT_BASE=	${NEXT_ROOT:S,^${PREFIX}/,,}
NEXT_USER?=	${WWWOWN}
NEXT_GROUP?=	${WWWGRP}
SYSTEM_LIBRARY=	${NEXT_BASE}/Library
LOCAL_LIBRARY=	${NEXT_BASE}/Local/Library
LOCALLIB=	${PREFIX}/${LOCAL_LIBRARY}
WOLOCAL=	${LOCALLIB}/WebObjects
WODOCROOT?=	${WWWDIR}
WODOCROOT_REL=	${WODOCROOT:S,^${PREFIX}/,,}

PLIST_SUB=	NEXT_ROOT=${NEXT_BASE} WODOCROOT=${WODOCROOT_REL}
SUB_LIST+=	NEXT_ROOT=${NEXT_BASE} USER=${NEXT_USER} GROUP=${NEXT_GROUP} \
		JAVA=${JAVA} WODOCROOT=${WODOCROOT_REL}
SUB_FILES+=	pkg-message pkg-install pkg-deinstall

.if defined(WITH_APACHE)
USE_APACHE?=	22+
BUILD_DEPENDS+=	${APACHEMODDIR}/mod_WebObjects.so:${PORTSDIR}/www/mod_webobjects
.endif

# Check for distribution files
.if !exists(${DISTDIR}/${WOBPKGBUNDLE})
IGNORE=		may not be redistributed because of licensing reasons.  Please visit ${WOBINURL} and download ${WOBINARCHIVE} from Apple into ${DISTDIR}
.endif

do-fetch:
# See http://wiki.objectstyle.org/confluence/display/WO/Deploying+on+FreeBSD+6.x+and+7.x+%28WO+5.3.3%29
# for the gory details.
	dd if=${DISTDIR}/${WOPKGBUNDLE} bs=0x1000 skip=0xb12 \
	    of=${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}

pre-install:
	@@${FIND} ${WRKSRC} -name '*.bak' -delete
	@@${FIND} ${WRKSRC} -name '*.orig' -delete
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

do-install:
	@@${MKDIR} ${PREFIX}/${SYSTEM_LIBRARY}
	@@${MKDIR} ${PREFIX}/${LOCAL_LIBRARY}
	@@${CHMOD} -R 755 ${PREFIX}/${NEXT_BASE}
	@@${ECHO_MSG} -n ">> Installing WebObjects Runtime..."
	@@(cd ${WRKSRC}/System/Library && ${COPYTREE_BIN} \* \
		${PREFIX}/${SYSTEM_LIBRARY})
	@@(cd ${WRKSRC}/Library && ${COPYTREE_BIN} \* \
		${PREFIX}/${LOCAL_LIBRARY})
	@@${ECHO_MSG} " [ DONE ]"
	@@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}
	@@${CHMOD} 0775 ${WOLOCAL}
	@@${MKDIR} ${WOLOCAL}/Configuration
	@@${MKDIR} ${WOLOCAL}/Applications
	@@${MKDIR} ${WOLOCAL}/JavaApplications
	@@${MKDIR} ${LOCALLIB}/Frameworks
	@@${CHOWN} -R ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/Configuration
	@@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/Applications
	@@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/JavaApplications
	@@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${LOCALLIB}/Frameworks
	@@${ECHO_MSG} -n ">> Installing WebObjects Web Resources..."
	@@${MKDIR} ${WODOCROOT}
	@@(cd ${WRKSRC}/System/Library/WebObjects/WODocumentRoot && \
		${COPYTREE_SHARE} \* ${WODOCROOT})
	@@${ECHO_MSG} " [ DONE ]"

post-install:
	@@(cd ${WRKSRC}/System/Library && ${PLIST_GEN} \* ${PREFIX}/${SYSTEM_LIBRARY})
	@@(cd ${WRKSRC}/Library && ${PLIST_GEN} \* ${PREFIX}/${LOCAL_LIBRARY} "-mindepth 1" )
	@@(cd ${WRKSRC}/System/Library/WebObjects/WODocumentRoot && \
		${PLIST_GEN} \* ${WODOCROOT})
	@@${PLIST_DIRRM} ${NEXT_BASE}/Library
	@@${PLIST_DIRRMTRY} ${WODOCROOT}
	@@${PLIST_DIRRMTRY} ${WOLOCAL} Configuration Applications JavaApplications
	@@${PLIST_DIRRMTRY} ${NEXT_BASE} Local/Library/Frameworks
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.9
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d51 1
a51 1
USE_APACHE?=	20+
@


1.7
log
@- drop invalid post-deinstall target, use standard pkg-deinstall file

Feature safe:	yes
@
text
@d27 1
a27 1
USE_RC_SUBR=	wotaskd.sh JavaMonitor.sh
@


1.6
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@a108 3
post-deinstall:
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL

@


1.5
log
@- Correct use of IGNORE rather than redefining ECHO_MSG (breaks make readme)

PR:		ports/163262
Submitted by:	Jason Helfman <jhelfman@@experts-exchange.com>

- gzip handles trailing garbage; no need for perl truncate, redefine distinfo
- Don't redefine EXTRACT_AFTER_ARGS when EXTRACT_PRESERVE_OWNERSHIP will do
- Don't redefine COPYTREE when COPYTREE_BIN will do
- Correct dependency line
- Remove unnecessary PKGINSTALL definitions etc
- Actually look for correct file before complaining about it being missing
- Update wiki URL with extraction notes

Feature safe:	yes
@
text
@d51 1
a51 1
USE_APACHE?=	13+
@


1.4
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d12 1
a12 1
DISTNAME=	WebObjects5.3.3Update
d16 1
a16 1
COMMENT=	WebObjects Application Server Runtime ${PORTVERSION}
d29 1
a29 1
USE_PERL5_BUILD=yes
a48 9
PKGINSTALL=	${WRKDIR}/pkg-install
PKGMESSAGE=	${WRKDIR}/pkg-message
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall

EXTRACT_AFTER_ARGS=| ${TAR} -xpf -
COPYTREE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
		2>&1) && \
	${CHOWN} -R ${BINOWN}:${BINGRP} $$1 && \
	${FIND} $$1 -type d -exec ${CHMOD} 755 {} \;' --
d52 1
a52 1
BUILD_DEPENDS+=	${APACHEMODDIR}/mod_WebObjects.so:../../www/mod_webobjects
d56 2
a57 9
.if !defined(PACKAGE_BUILDING) && !exists(${DISTDIR}/${WOBINARCHIVE})
ECHO_MSG=	${PRINTF}
IGNORE=		cannot be downloaded automatically.
IGNORE+=	\n\
Due to licensing restrictions you must download the necessary files manually.\n\
Please open ${WOBINURL} in a\n\
web browser and download the necessary files from Apple.\n\n\
Please place the file ${WOBINARCHIVE} located in the\n\
downloaded file bundle into ${DISTDIR} and restart the build.\n\n
d61 4
a64 4
	# See http://wiki.objectstyle.org/confluence/display/WO/WebObjects+5.3.3+Deployment+on+FreeBSD+6.x
	# for the gory details.
	dd if=${DISTDIR}/${WOPKGBUNDLE} bs=0x1000 skip=0xb12 of=${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
	${PERL} -e 'truncate "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}", 29672581'
d76 1
a76 1
	@@(cd ${WRKSRC}/System/Library && ${COPYTREE} \* \
d78 1
a78 1
	@@(cd ${WRKSRC}/Library && ${COPYTREE} \* \
@


1.3
log
@Reset q@@onthenet.com.au due to maintiner-timeouts and no response to email.

Hat:		portmgr
@
text
@d60 1
a60 1
USE_APACHE?=	1.3+
@


1.2
log
@Move the definition of USE_PERL5_BUILD above the inclusion of
bsd.port.pre.mk where it belongs.

Hat:		portmgr
@
text
@d15 1
a15 1
MAINTAINER?=	q@@onthenet.com.au
@


1.1
log
@[NEW PORTS] www/webobjects(+) Apple WebObjects ports bundle

This is a bundle of several ports covering many typical requirements
for building an Apple WebObjects deployment environment. Each port
is or has a dependancy with some other port in the bundle, and have
therefore been lodged collectively.

	www/webobjects

	WebObjects runtime is the deployment environment for Apple WebObjects
	Applications.

	WebObjects is a suite of tools and object-oriented frameworks that enable
	you to create and deploy web applications and web services using Java.

	WWW: http://www.apple.com/webobjects

PR:		ports/117299
Submitted by:	Quinton Dolan <q@@onthenet.com.au>
@
text
@d29 1
a52 2
USE_PERL5_BUILD=yes

@

