aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2007-02-16 06:30:10 +0800
committerbrooks <brooks@FreeBSD.org>2007-02-16 06:30:10 +0800
commit5504676e5cc6f16f95d9aa85147041e9a60151e0 (patch)
tree78c374723af29a3ec7a5de795bb516a066087df7 /sysutils
parentb1ba3888ecf88baa29d695937c5f6845ee878a96 (diff)
downloadfreebsd-ports-gnome-5504676e5cc6f16f95d9aa85147041e9a60151e0.tar.gz
freebsd-ports-gnome-5504676e5cc6f16f95d9aa85147041e9a60151e0.tar.zst
freebsd-ports-gnome-5504676e5cc6f16f95d9aa85147041e9a60151e0.zip
Fix the build on amd64 and make a few adjustments to make portlint
happier.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/sge/Makefile22
-rw-r--r--sysutils/sge/Makefile.man1
-rw-r--r--sysutils/sge/pkg-plist3
-rw-r--r--sysutils/sge60/Makefile22
-rw-r--r--sysutils/sge60/Makefile.man1
-rw-r--r--sysutils/sge60/pkg-plist3
-rw-r--r--sysutils/sge61/Makefile22
-rw-r--r--sysutils/sge61/Makefile.man1
-rw-r--r--sysutils/sge61/pkg-plist3
-rw-r--r--sysutils/sge62/Makefile22
-rw-r--r--sysutils/sge62/Makefile.man1
-rw-r--r--sysutils/sge62/pkg-plist3
12 files changed, 56 insertions, 48 deletions
diff --git a/sysutils/sge/Makefile b/sysutils/sge/Makefile
index e6c4968f2ead..5f42b14c9557 100644
--- a/sysutils/sge/Makefile
+++ b/sysutils/sge/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/122/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@@ -39,18 +40,12 @@ NOT_FOR_ARCHS= alpha
USE_GETTEXT= yes
USE_GMAKE= yes
USE_OPENSSL= yes
-INSTALLS_SHLIB= yes
-LDCONFIG_DIRS= ${SGE_ROOT}/lib/${SGE_ARCH}
-
-# We have to use fetch because the master site required cookies to
-# download the file.
-FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget
-DISABLE_SIZE= yes
-FETCH_CMD= wget -c
+USE_LDCONFIG= ${SGE_ROOT}/lib/${SGE_ARCH}
SGE_BASE?= sge
SGE_ROOT= ${TARGETDIR}/${SGE_BASE}
SGE_ARCH= fbsd-${ARCH}
+SGE_BUILD_ARCH= FREEBSD_${ARCH:U}
SGE_VERSION= 6.0.10
SGE_RELEASE= 6.0u10
@@ -117,6 +112,7 @@ ANT?= ${LOCALBASE}/bin/ant
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant
PLIST_SUB+= DRMAA=
AIMK_ENV+= JAVA_HOME=${JAVA_HOME}
+CATEGORIES+= java
.else
AIMK_ARGS+= -no-java -no-jni
PLIST_SUB+= DRMAA="@comment "
@@ -145,11 +141,16 @@ post-patch:
-e "s|%%X11BASE%%|${X11BASE}|g" \
${WRKSRC}/aimk \
${WRKSRC}/dist/pvm/src/aimk
+ @test -d ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} || \
+ (${CP} -r ${WRKSRC}/3rdparty/qtcsh/FREEBSD_I386 \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} && \
+ ${REINPLACE_CMD} -e 's|FREEBSD_I386|${SGE_BUILD_ARCH}|' \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile)
@${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \
-e 's|^CPP = gcc -E|CPP = ${CPP}|' \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/Makefile \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/glob/Makefile \
- ${WRKSRC}/3rdparty/qtcsh/FREEBSD_*/Makefile
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile
@${RM} ${WRKSRC}/dist/util/arch_variables.orig
@${RM} ${WRKSRC}/dist/util/install_modules/inst_common.sh.orig
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
@@ -234,7 +235,8 @@ build-plist: build
${SORT} -r | \
${SED} -e 's|${WRKSRC}/../doc|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' \
>> ${PLIST}
- @echo '@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
+ @echo '@dirrmtry %%SGE_BASE%%' >> ${PLIST}
+ @echo '@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
@echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man
@echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man
@echo "#" >> ${.CURDIR}/Makefile.man
diff --git a/sysutils/sge/Makefile.man b/sysutils/sge/Makefile.man
index a529e70febde..78a78104b497 100644
--- a/sysutils/sge/Makefile.man
+++ b/sysutils/sge/Makefile.man
@@ -28,7 +28,6 @@ MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_num_attr_values.3
MLINKS+=drmaa_submit.3 drmaa_get_num_job_ids.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_vector_attribute.3
-MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_attributes.3 drmaa_get_vector_attribute_names.3
MLINKS+=drmaa_jobcontrol.3 drmaa_job_ps.3
MLINKS+=drmaa_attributes.3 drmaa_release_attr_names.3
diff --git a/sysutils/sge/pkg-plist b/sysutils/sge/pkg-plist
index ad8e89ecf86e..aca9785026d3 100644
--- a/sysutils/sge/pkg-plist
+++ b/sysutils/sge/pkg-plist
@@ -845,4 +845,5 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel/commd
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
+@dirrmtry %%SGE_BASE%%
+@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
diff --git a/sysutils/sge60/Makefile b/sysutils/sge60/Makefile
index e6c4968f2ead..5f42b14c9557 100644
--- a/sysutils/sge60/Makefile
+++ b/sysutils/sge60/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/122/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@@ -39,18 +40,12 @@ NOT_FOR_ARCHS= alpha
USE_GETTEXT= yes
USE_GMAKE= yes
USE_OPENSSL= yes
-INSTALLS_SHLIB= yes
-LDCONFIG_DIRS= ${SGE_ROOT}/lib/${SGE_ARCH}
-
-# We have to use fetch because the master site required cookies to
-# download the file.
-FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget
-DISABLE_SIZE= yes
-FETCH_CMD= wget -c
+USE_LDCONFIG= ${SGE_ROOT}/lib/${SGE_ARCH}
SGE_BASE?= sge
SGE_ROOT= ${TARGETDIR}/${SGE_BASE}
SGE_ARCH= fbsd-${ARCH}
+SGE_BUILD_ARCH= FREEBSD_${ARCH:U}
SGE_VERSION= 6.0.10
SGE_RELEASE= 6.0u10
@@ -117,6 +112,7 @@ ANT?= ${LOCALBASE}/bin/ant
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant
PLIST_SUB+= DRMAA=
AIMK_ENV+= JAVA_HOME=${JAVA_HOME}
+CATEGORIES+= java
.else
AIMK_ARGS+= -no-java -no-jni
PLIST_SUB+= DRMAA="@comment "
@@ -145,11 +141,16 @@ post-patch:
-e "s|%%X11BASE%%|${X11BASE}|g" \
${WRKSRC}/aimk \
${WRKSRC}/dist/pvm/src/aimk
+ @test -d ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} || \
+ (${CP} -r ${WRKSRC}/3rdparty/qtcsh/FREEBSD_I386 \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} && \
+ ${REINPLACE_CMD} -e 's|FREEBSD_I386|${SGE_BUILD_ARCH}|' \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile)
@${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \
-e 's|^CPP = gcc -E|CPP = ${CPP}|' \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/Makefile \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/glob/Makefile \
- ${WRKSRC}/3rdparty/qtcsh/FREEBSD_*/Makefile
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile
@${RM} ${WRKSRC}/dist/util/arch_variables.orig
@${RM} ${WRKSRC}/dist/util/install_modules/inst_common.sh.orig
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
@@ -234,7 +235,8 @@ build-plist: build
${SORT} -r | \
${SED} -e 's|${WRKSRC}/../doc|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' \
>> ${PLIST}
- @echo '@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
+ @echo '@dirrmtry %%SGE_BASE%%' >> ${PLIST}
+ @echo '@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
@echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man
@echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man
@echo "#" >> ${.CURDIR}/Makefile.man
diff --git a/sysutils/sge60/Makefile.man b/sysutils/sge60/Makefile.man
index a529e70febde..78a78104b497 100644
--- a/sysutils/sge60/Makefile.man
+++ b/sysutils/sge60/Makefile.man
@@ -28,7 +28,6 @@ MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_num_attr_values.3
MLINKS+=drmaa_submit.3 drmaa_get_num_job_ids.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_vector_attribute.3
-MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_attributes.3 drmaa_get_vector_attribute_names.3
MLINKS+=drmaa_jobcontrol.3 drmaa_job_ps.3
MLINKS+=drmaa_attributes.3 drmaa_release_attr_names.3
diff --git a/sysutils/sge60/pkg-plist b/sysutils/sge60/pkg-plist
index ad8e89ecf86e..aca9785026d3 100644
--- a/sysutils/sge60/pkg-plist
+++ b/sysutils/sge60/pkg-plist
@@ -845,4 +845,5 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel/commd
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
+@dirrmtry %%SGE_BASE%%
+@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
diff --git a/sysutils/sge61/Makefile b/sysutils/sge61/Makefile
index e6c4968f2ead..5f42b14c9557 100644
--- a/sysutils/sge61/Makefile
+++ b/sysutils/sge61/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/122/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@@ -39,18 +40,12 @@ NOT_FOR_ARCHS= alpha
USE_GETTEXT= yes
USE_GMAKE= yes
USE_OPENSSL= yes
-INSTALLS_SHLIB= yes
-LDCONFIG_DIRS= ${SGE_ROOT}/lib/${SGE_ARCH}
-
-# We have to use fetch because the master site required cookies to
-# download the file.
-FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget
-DISABLE_SIZE= yes
-FETCH_CMD= wget -c
+USE_LDCONFIG= ${SGE_ROOT}/lib/${SGE_ARCH}
SGE_BASE?= sge
SGE_ROOT= ${TARGETDIR}/${SGE_BASE}
SGE_ARCH= fbsd-${ARCH}
+SGE_BUILD_ARCH= FREEBSD_${ARCH:U}
SGE_VERSION= 6.0.10
SGE_RELEASE= 6.0u10
@@ -117,6 +112,7 @@ ANT?= ${LOCALBASE}/bin/ant
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant
PLIST_SUB+= DRMAA=
AIMK_ENV+= JAVA_HOME=${JAVA_HOME}
+CATEGORIES+= java
.else
AIMK_ARGS+= -no-java -no-jni
PLIST_SUB+= DRMAA="@comment "
@@ -145,11 +141,16 @@ post-patch:
-e "s|%%X11BASE%%|${X11BASE}|g" \
${WRKSRC}/aimk \
${WRKSRC}/dist/pvm/src/aimk
+ @test -d ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} || \
+ (${CP} -r ${WRKSRC}/3rdparty/qtcsh/FREEBSD_I386 \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} && \
+ ${REINPLACE_CMD} -e 's|FREEBSD_I386|${SGE_BUILD_ARCH}|' \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile)
@${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \
-e 's|^CPP = gcc -E|CPP = ${CPP}|' \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/Makefile \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/glob/Makefile \
- ${WRKSRC}/3rdparty/qtcsh/FREEBSD_*/Makefile
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile
@${RM} ${WRKSRC}/dist/util/arch_variables.orig
@${RM} ${WRKSRC}/dist/util/install_modules/inst_common.sh.orig
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
@@ -234,7 +235,8 @@ build-plist: build
${SORT} -r | \
${SED} -e 's|${WRKSRC}/../doc|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' \
>> ${PLIST}
- @echo '@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
+ @echo '@dirrmtry %%SGE_BASE%%' >> ${PLIST}
+ @echo '@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
@echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man
@echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man
@echo "#" >> ${.CURDIR}/Makefile.man
diff --git a/sysutils/sge61/Makefile.man b/sysutils/sge61/Makefile.man
index a529e70febde..78a78104b497 100644
--- a/sysutils/sge61/Makefile.man
+++ b/sysutils/sge61/Makefile.man
@@ -28,7 +28,6 @@ MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_num_attr_values.3
MLINKS+=drmaa_submit.3 drmaa_get_num_job_ids.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_vector_attribute.3
-MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_attributes.3 drmaa_get_vector_attribute_names.3
MLINKS+=drmaa_jobcontrol.3 drmaa_job_ps.3
MLINKS+=drmaa_attributes.3 drmaa_release_attr_names.3
diff --git a/sysutils/sge61/pkg-plist b/sysutils/sge61/pkg-plist
index ad8e89ecf86e..aca9785026d3 100644
--- a/sysutils/sge61/pkg-plist
+++ b/sysutils/sge61/pkg-plist
@@ -845,4 +845,5 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel/commd
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
+@dirrmtry %%SGE_BASE%%
+@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
diff --git a/sysutils/sge62/Makefile b/sysutils/sge62/Makefile
index e6c4968f2ead..5f42b14c9557 100644
--- a/sysutils/sge62/Makefile
+++ b/sysutils/sge62/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/122/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@@ -39,18 +40,12 @@ NOT_FOR_ARCHS= alpha
USE_GETTEXT= yes
USE_GMAKE= yes
USE_OPENSSL= yes
-INSTALLS_SHLIB= yes
-LDCONFIG_DIRS= ${SGE_ROOT}/lib/${SGE_ARCH}
-
-# We have to use fetch because the master site required cookies to
-# download the file.
-FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget
-DISABLE_SIZE= yes
-FETCH_CMD= wget -c
+USE_LDCONFIG= ${SGE_ROOT}/lib/${SGE_ARCH}
SGE_BASE?= sge
SGE_ROOT= ${TARGETDIR}/${SGE_BASE}
SGE_ARCH= fbsd-${ARCH}
+SGE_BUILD_ARCH= FREEBSD_${ARCH:U}
SGE_VERSION= 6.0.10
SGE_RELEASE= 6.0u10
@@ -117,6 +112,7 @@ ANT?= ${LOCALBASE}/bin/ant
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant
PLIST_SUB+= DRMAA=
AIMK_ENV+= JAVA_HOME=${JAVA_HOME}
+CATEGORIES+= java
.else
AIMK_ARGS+= -no-java -no-jni
PLIST_SUB+= DRMAA="@comment "
@@ -145,11 +141,16 @@ post-patch:
-e "s|%%X11BASE%%|${X11BASE}|g" \
${WRKSRC}/aimk \
${WRKSRC}/dist/pvm/src/aimk
+ @test -d ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} || \
+ (${CP} -r ${WRKSRC}/3rdparty/qtcsh/FREEBSD_I386 \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} && \
+ ${REINPLACE_CMD} -e 's|FREEBSD_I386|${SGE_BUILD_ARCH}|' \
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile)
@${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \
-e 's|^CPP = gcc -E|CPP = ${CPP}|' \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/Makefile \
${WRKSRC}/3rdparty/qmake/FREEBSD_*/glob/Makefile \
- ${WRKSRC}/3rdparty/qtcsh/FREEBSD_*/Makefile
+ ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile
@${RM} ${WRKSRC}/dist/util/arch_variables.orig
@${RM} ${WRKSRC}/dist/util/install_modules/inst_common.sh.orig
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
@@ -234,7 +235,8 @@ build-plist: build
${SORT} -r | \
${SED} -e 's|${WRKSRC}/../doc|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' \
>> ${PLIST}
- @echo '@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
+ @echo '@dirrmtry %%SGE_BASE%%' >> ${PLIST}
+ @echo '@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST}
@echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man
@echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man
@echo "#" >> ${.CURDIR}/Makefile.man
diff --git a/sysutils/sge62/Makefile.man b/sysutils/sge62/Makefile.man
index a529e70febde..78a78104b497 100644
--- a/sysutils/sge62/Makefile.man
+++ b/sysutils/sge62/Makefile.man
@@ -28,7 +28,6 @@ MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_num_attr_values.3
MLINKS+=drmaa_submit.3 drmaa_get_num_job_ids.3
MLINKS+=drmaa_jobtemplate.3 drmaa_get_vector_attribute.3
-MLINKS+=drmaa_session.3 drmaa_init.3
MLINKS+=drmaa_attributes.3 drmaa_get_vector_attribute_names.3
MLINKS+=drmaa_jobcontrol.3 drmaa_job_ps.3
MLINKS+=drmaa_attributes.3 drmaa_release_attr_names.3
diff --git a/sysutils/sge62/pkg-plist b/sysutils/sge62/pkg-plist
index ad8e89ecf86e..aca9785026d3 100644
--- a/sysutils/sge62/pkg-plist
+++ b/sysutils/sge62/pkg-plist
@@ -845,4 +845,5 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel/commd
%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")
+@dirrmtry %%SGE_BASE%%
+@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")