aboutsummaryrefslogtreecommitdiff
path: root/java
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
parenta96818ac366f2886fa055627899b59eaa525246a (diff)
downloadports-4e657c8927bccc2fc7707a1306c50945efe37862.tar.gz
ports-4e657c8927bccc2fc7707a1306c50945efe37862.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/jboss2/Makefile18
-rw-r--r--java/jboss3/Makefile16
-rw-r--r--java/jboss4/Makefile16
-rw-r--r--java/jboss5/Makefile16
4 files changed, 57 insertions, 9 deletions
diff --git a/java/jboss2/Makefile b/java/jboss2/Makefile
index 80dd8b1be84c..b94d024c601c 100644
--- a/java/jboss2/Makefile
+++ b/java/jboss2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ${APP_TITLE:L}
PORTVERSION= 2.4.10
+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 ]"
.for f in ${REPLACE_FILES}
@@ -139,7 +151,7 @@ do-install:
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Fixing permissions..."
- @${CHMOD} 755 `find ${APP_HOME} -type d`
+ @${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Creating PID file..."
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`
diff --git a/java/jboss4/Makefile b/java/jboss4/Makefile
index 0de2ee499485..ea9000c03f49 100644
--- a/java/jboss4/Makefile
+++ b/java/jboss4/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`
diff --git a/java/jboss5/Makefile b/java/jboss5/Makefile
index 0de2ee499485..ea9000c03f49 100644
--- a/java/jboss5/Makefile
+++ b/java/jboss5/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`