Lines 50-55
Link Here
|
50 |
JAR_FILE= bin/bootstrap.jar |
50 |
JAR_FILE= bin/bootstrap.jar |
51 |
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work |
51 |
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work |
52 |
|
52 |
|
|
|
53 |
CONF_EXT= pkg-dist |
54 |
|
53 |
.include <bsd.port.pre.mk> |
55 |
.include <bsd.port.pre.mk> |
54 |
|
56 |
|
55 |
pre-patch: |
57 |
pre-patch: |
Lines 114-121
Link Here
|
114 |
@${ECHO_CMD} " [ DONE ]" |
116 |
@${ECHO_CMD} " [ DONE ]" |
115 |
|
117 |
|
116 |
@${ECHO_CMD} -n ">> Copying files to destination directory..." |
118 |
@${ECHO_CMD} -n ">> Copying files to destination directory..." |
|
|
119 |
@${CP} ${WRKDIR}/server.xml ${WRKSRC}/conf/ |
120 |
# Do _not_ overwrite local config files. That is just evil. |
121 |
@(cd ${WRKSRC};${FIND} conf -type f) \ |
122 |
| while read a; do \ |
123 |
mv ${WRKSRC}/$$a ${WRKSRC}/$$a.${CONF_EXT}; \ |
124 |
if [ ! -e "${APP_HOME}/$$a" ]; then \ |
125 |
echo " Installing local configuration file: ${APP_HOME}/$$a"; \ |
126 |
cp ${WRKSRC}/$$a.${CONF_EXT} ${WRKSRC}/$$a; \ |
127 |
else \ |
128 |
echo " Preserving local configuration file: ${APP_HOME}/$$a"; \ |
129 |
fi; \ |
130 |
done |
117 |
@${CP} -R ${WRKSRC}/* ${APP_HOME} |
131 |
@${CP} -R ${WRKSRC}/* ${APP_HOME} |
118 |
@${CP} ${WRKDIR}/server.xml ${APP_HOME}/conf/ |
|
|
119 |
@${ECHO_CMD} " [ DONE ]" |
132 |
@${ECHO_CMD} " [ DONE ]" |
120 |
|
133 |
|
121 |
@${ECHO_CMD} -n ">> Compiling and installing control program..." |
134 |
@${ECHO_CMD} -n ">> Compiling and installing control program..." |