blob: 830cdf5735e4ea8013f68981cefcece8e7015443 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Herve Quiroz <hq@FreeBSD.org>
# $FreeBSD$
PORTNAME= pebble
PORTVERSION= 2.3.2
PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= SF
MAINTAINER= ports@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
USES= zip:infozip
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
OPTIONS_DEFINE= DOCS
PORTDOCS= configuration.html credits.html images index.html \
installation.html license.txt multiblog.html screen.css \
screenshots.html security.html upgrading1x.html \
upgrading2x.html
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} "${STAGEDIR}${PEBBLE_HOME}"
${CHOWN} "www:www" "${STAGEDIR}${PEBBLE_HOME}"
${INSTALL_DATA} ${WRKDIR}/pebble.properties ${STAGEDIR}${PEBBLE_PROPERTIES}.sample
@${MKDIR} ${STAGEDIR}${WEBAPP_DIR}
${INSTALL_DATA} ${WRKSRC}/pebble.war ${STAGEDIR}${WEBAPP_DIR}/${PORTNAME}.war
cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
.include <bsd.port.mk>
|