aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2007-04-30 14:25:38 +0000
committerMartin Matuska <mm@FreeBSD.org>2007-04-30 14:25:38 +0000
commit29e5caa31921238e9ca7619a9127fb8c7dfcfa00 (patch)
tree47964ad4bf9b32b6e667271e99d2943dba5db228 /www
parente9aefb6dad08d638fc0a49d98f6fda78880debc5 (diff)
downloadports-29e5caa31921238e9ca7619a9127fb8c7dfcfa00.tar.gz
ports-29e5caa31921238e9ca7619a9127fb8c7dfcfa00.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/aolserver/Makefile5
-rw-r--r--www/aolserver/files/pkg-install.in32
2 files changed, 23 insertions, 14 deletions
diff --git a/www/aolserver/Makefile b/www/aolserver/Makefile
index c6a7b3f9202a..6cc4cce37b48 100644
--- a/www/aolserver/Makefile
+++ b/www/aolserver/Makefile
@@ -7,7 +7,7 @@
PORTNAME= aolserver
PORTVERSION= 4.5.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
@@ -47,6 +47,9 @@ OPTIONS= HTMLDOCS "Install HTML documentation" off \
.include <bsd.port.pre.mk>
+SUB_LIST+= MKDIR="${MKDIR}" ECHO_CMD="${ECHO_CMD}" \
+ CHOWN="${CHOWN}" CHMOD="${CHMOD}"
+
.if (${ARCH} == "ia64")
BROKEN= does not compile on ia64
.endif
diff --git a/www/aolserver/files/pkg-install.in b/www/aolserver/files/pkg-install.in
index 901d0c348501..e77b789c4e74 100644
--- a/www/aolserver/files/pkg-install.in
+++ b/www/aolserver/files/pkg-install.in
@@ -1,21 +1,27 @@
#! /bin/sh
PATH=/bin:/usr/sbin:/usr/bin
-EXAMPLESDIR=%%EXAMPLESDIR%%
-AOLSERVERBASE=%%AOLSERVERBASE%%
-AOLSERVERUSER=%%AOLSERVERUSER%%
-AOLSERVERGROUP=%%AOLSERVERGROUP%%
+EXAMPLESDIR="%%EXAMPLESDIR%%"
+AOLSERVERBASE="%%AOLSERVERBASE%%"
+AOLSERVERUSER="%%AOLSERVERUSER%%"
+AOLSERVERGROUP="%%AOLSERVERGROUP%%"
+
+MKDIR="%%MKDIR%%"
+ECHO_CMD="%%ECHO_CMD%%"
+CHOWN="%%CHOWN%%"
+CHMOD="%%CHMOD%%"
post-install() {
- echo "Running post-install script"
- echo "Setting file permissions"
- mkdir -p ${AOLSERVERBASE}/servers/server1/pages
- mkdir -p ${AOLSERVERBASE}/servers/server1/modules/nslog
- mkdir -p ${AOLSERVERBASE}/log
- echo "Welcome. You have made it. Aolserver has started." >> ${AOLSERVERBASE}/servers/server1/pages/index.html
- chown ${AOLSERVERUSER}:${AOLSERVERGROUP} ${AOLSERVERBASE}/servers/server1/modules/nslog
- chown ${AOLSERVERUSER}:${AOLSERVERGROUP} ${AOLSERVERBASE}/log
- chmod 755 ${AOLSERVERBASE}
+ ${ECHO_CMD} "Running post-install script"
+ ${ECHO_CMD} "Setting file permissions"
+ ${MKDIR} -p ${AOLSERVERBASE}/servers/server1/pages
+ ${MKDIR} -p ${AOLSERVERBASE}/servers/server1/modules/nslog
+ ${MKDIR} -p ${AOLSERVERBASE}/log
+ [ -f ${AOLSERVERBASE}/servers/server1/pages/index.html ] || \
+ ${ECHO_CMD} "Welcome. You have made it. Aolserver has started." > ${AOLSERVERBASE}/servers/server1/pages/index.html
+ ${CHOWN} ${AOLSERVERUSER}:${AOLSERVERGROUP} ${AOLSERVERBASE}/servers/server1/modules/nslog
+ ${CHOWN} ${AOLSERVERUSER}:${AOLSERVERGROUP} ${AOLSERVERBASE}/log
+ ${CHMOD} 755 ${AOLSERVERBASE}
}
case $2 in