aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-03 13:05:50 +0800
committermiwi <miwi@FreeBSD.org>2014-06-03 13:05:50 +0800
commitfbca4851352dc3905e069875395f43612f0ade43 (patch)
tree868eddf89e9c09046dd0b045e8d2dabdfe384957 /www
parentab0b485324cf86d9203a6a250af07d9e699b8501 (diff)
downloadfreebsd-ports-gnome-fbca4851352dc3905e069875395f43612f0ade43.tar.gz
freebsd-ports-gnome-fbca4851352dc3905e069875395f43612f0ade43.tar.zst
freebsd-ports-gnome-fbca4851352dc3905e069875395f43612f0ade43.zip
- Stage support
PR: 190313
Diffstat (limited to 'www')
-rw-r--r--www/pebble/Makefile15
-rw-r--r--www/pebble/pkg-plist3
2 files changed, 10 insertions, 8 deletions
diff --git a/www/pebble/Makefile b/www/pebble/Makefile
index 065563b9f254..3eb76a94e250 100644
--- a/www/pebble/Makefile
+++ b/www/pebble/Makefile
@@ -37,21 +37,20 @@ PORTDOCS= configuration.html credits.html images index.html \
PLIST_FILES= ${WEBAPP_SUBDIR}/${PORTNAME}.war
PEBBLE_CONTEXT= WEB-INF/applicationContext-pebble.xml
-NO_STAGE= yes
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
+ ${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
.if !defined(NOPORTDOCS)
- cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
- cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
+ cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
.endif
post-install:
diff --git a/www/pebble/pkg-plist b/www/pebble/pkg-plist
index 65471589990f..b57a142f7a2e 100644
--- a/www/pebble/pkg-plist
+++ b/www/pebble/pkg-plist
@@ -1,3 +1,6 @@
@exec mkdir -p %%PEBBLE_HOME%%
@unexec if cmp -s %D/etc/pebble.properties.sample %D/etc/pebble.properties; then rm -f %D/etc/pebble.properties; fi
etc/pebble.properties.sample
+@exec cp -n %D/%F %B/pebble.properties
+@unexec rmdir "/var/lib/pebble" >/dev/null 2>&1 || :
+@unexec rmdir "/var/lib" >/dev/null 2>&1 || :