head	1.8;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.3;
locks; strict;
comment	@# @;


1.8
date	2012.11.17.06.02.57;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2011.11.03.00.38.47;	author eadler;	state Exp;
branches;
next	1.6;

1.6
date	2009.09.02.15.01.55;	author amdmi3;	state Exp;
branches;
next	1.5;

1.5
date	2009.08.02.20.15.46;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2009.05.02.14.36.14;	author hq;	state Exp;
branches;
next	1.3;

1.3
date	2009.02.15.22.18.58;	author hq;	state Exp;
branches;
next	1.2;

1.2
date	2009.02.06.23.49.44;	author hq;	state Exp;
branches;
next	1.1;

1.1
date	2009.02.06.13.55.50;	author hq;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for:	pebble
# Date created:		2009-02-06
# Whom:			Herve Quiroz <hq@@FreeBSD.org>
#
# $FreeBSD: head/www/pebble/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	pebble
PORTVERSION=	2.3.2
PORTREVISION=	1
CATEGORIES=	www java
MASTER_SITES=	SF

MAINTAINER=	hq@@FreeBSD.org
COMMENT=	Lightweight, open source, Java EE blogging tool

PATCH_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
		unzip:${PORTSDIR}/archivers/unzip
RUN_DEPENDS=	${LOCALBASE}/apache-tomcat-6.0/bin/catalina.sh:${PORTSDIR}/www/tomcat6

USE_ZIP=	yes

NO_BUILD=	yes

WEBAPP_SUBDIR=	apache-tomcat-6.0/webapps
WEBAPP_DIR=	${PREFIX}/${WEBAPP_SUBDIR}

PEBBLE_HOME?=	/var/lib/${PORTNAME}
PEBBLE_PROPERTIES=	${PREFIX}/etc/pebble.properties
SUB_LIST+=	PEBBLE_HOME=${PEBBLE_HOME} PEBBLE_PROPERTIES=${PEBBLE_PROPERTIES}
SUB_FILES=	pebble.properties pkg-message

PKGMESSAGE=	${WRKSRC}/pkg-message

.if !defined(NOPORTDOCS)
PORTDOCS=	configuration.html credits.html images index.html \
		installation.html license.txt multiblog.html screen.css \
		screenshots.html security.html upgrading1x.html \
		upgrading2x.html
.endif
PLIST_FILES=	${WEBAPP_SUBDIR}/${PORTNAME}.war
PEBBLE_CONTEXT=	WEB-INF/applicationContext-pebble.xml

do-patch:
	cd ${WRKSRC} && ${UNZIP_CMD} -o pebble.war "${PEBBLE_CONTEXT}"
	${SED} -i.bak 's,/WEB-INF/pebble\.properties,file:${PEBBLE_PROPERTIES},' "${WRKSRC}/${PEBBLE_CONTEXT}"
	cd ${WRKSRC} && ${LOCALBASE}/bin/zip -u pebble.war ${PEBBLE_CONTEXT}

do-install:
	${MKDIR} "${PEBBLE_HOME}"
	${CHOWN} "www:www" "${PEBBLE_HOME}"
	${INSTALL_DATA} ${WRKDIR}/pebble.properties ${PEBBLE_PROPERTIES}.sample
	if [ ! -f ${PEBBLE_PROPERTIES} ]; then ${INSTALL_DATA} ${WRKDIR}/pebble.properties ${PEBBLE_PROPERTIES} ; fi
	${INSTALL_DATA} ${WRKSRC}/pebble.war ${WEBAPP_DIR}/${PORTNAME}.war
.if !defined(NOPORTDOCS)
	cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
	cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.7
log
@- fix explicit use of unzip in ports

PR:		ports/153429
Submitted by:	Alex Kozlov <spam@@rm-rf.kiev.ua>
Approved by:	maintainers (hq, gabor, amdmi3)
Approved by:	maintainer timeout
Approved by:	bapt,sahil (mentors, implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirrors actually have all distfiles
- Merge all SF mirrors to MASTER_SITE_SOURCEFORGE, resort according to quick download speed survey
- Fix MASTER_SITES for all port that have used SOURCEFORGE_EXTENTED

Approved by:	portmgr (pav)
@
text
@d45 1
a45 1
	cd ${WRKSRC} && ${LOCALBASE}/bin/unzip -o pebble.war "${PEBBLE_CONTEXT}"
@


1.5
log
@- Chase tomcat6's change of installation prefix, bump portrevisions just in
  case (untested)

Reported by:	pointyhat
@
text
@d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	pebble
@


1.4
log
@Update to 2.3.2
@
text
@d10 1
d20 1
a20 1
RUN_DEPENDS=	${LOCALBASE}/apache-tomcat6.0/bin/catalina.sh:${PORTSDIR}/www/tomcat6
d26 1
a26 1
WEBAPP_SUBDIR=	apache-tomcat6.0/webapps
@


1.3
log
@Fix packing list

Reported by:	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	2.3.1
@


1.2
log
@Add missing PATCH_DEPENDS=unzip

Reported by:	QAT
@
text
@d41 1
a41 1
PLIST_FILES=	${WEBAPP_SUBDIR}/${PORTNAME}.war etc/pebble.properties.sample
@


1.1
log
@Pebble is a lightweight, open source, Java EE blogging tool. It's small, fast
and feature-rich with unrivalled ease of installation and use. Blog content is
stored as XML files on disk and served up dynamically, so there's no need to
install a database. All maintenance and administration can be performed through
your web browser, making Pebble ideal for anybody who is constantly on the move
or doesn't have direct access to their host.

WWW:	http://pebble.sourceforge.net
@
text
@d17 2
a18 1
PATCH_DEPENDS=	zip:${PORTSDIR}/archivers/zip
d45 1
a45 1
	cd ${WRKSRC} && ${UNZIP_CMD} -o pebble.war "${PEBBLE_CONTEXT}"
@

