aboutsummaryrefslogtreecommitdiff
path: root/java/jboss3
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2003-07-11 07:14:31 +0000
committerErnst de Haan <znerd@FreeBSD.org>2003-07-11 07:14:31 +0000
commit4e657c8927bccc2fc7707a1306c50945efe37862 (patch)
treeb1800205e68e8ab07b25f090f171f3da255725ea /java/jboss3
parenta96818ac366f2886fa055627899b59eaa525246a (diff)
downloadports-4e657c8927bccc2fc7707a1306c50945efe37862.tar.gz
ports-4e657c8927bccc2fc7707a1306c50945efe37862.zip
Notes
Diffstat (limited to 'java/jboss3')
-rw-r--r--java/jboss3/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/java/jboss3/Makefile b/java/jboss3/Makefile
index 0de2ee499485..ea9000c03f49 100644
--- a/java/jboss3/Makefile
+++ b/java/jboss3/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ${APP_TITLE:L}
PORTVERSION= 3.0.7
+PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -49,8 +50,19 @@ WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
.include <bsd.port.pre.mk>
post-patch:
- @${ECHO_CMD} -n ">> Removing unneeded files..."
- @${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
+ @${ECHO_CMD} -n ">> Deleting the symbol CR (carriage return) in some files and removing unneeded files..."
+ @${FIND} ${WRKSRC} -type f \
+ -iname '*.mf' -or \
+ -iname '*.dtd' -or \
+ -iname '*.txt' -or \
+ -iname '*.xml' -or \
+ -iname '*.conf' -or \
+ -iname '*.java' -or \
+ -iname '*.html' -or \
+ -iname '*.policy' -or \
+ -iname '*.properties' | \
+ ${XARGS} -n 10 -x ${SED} -i .orig -e "s|"`printf '\015'`"||g"
+ @cd ${WRKSRC} && ${FIND} . -type f -name "*.orig" -print -or -iname "*.bat" -print -or -iname "*.exe" -print | ${XARGS} ${RM} -f
@${ECHO_CMD} " [ DONE ]"
@${CHMOD} -R 0644 ${WRKSRC}
@${CHMOD} 0755 `${FIND} ${WRKSRC} -type d`