diff options
author | mbr <mbr@FreeBSD.org> | 2002-08-14 12:55:12 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2002-08-14 12:55:12 +0000 |
commit | ada05059b420333b962b35579edb623303915a59 (patch) | |
tree | a1e5f23f05f083b522852256accd3e8d903e3c0a /editors | |
parent | 6ce0b36d9496bbfd916a7dd945a0a0e0716adcce (diff) | |
download | FreeBSD-ports-ada05059b420333b962b35579edb623303915a59.zip FreeBSD-ports-ada05059b420333b962b35579edb623303915a59.tar.gz |
Add package-rename target to automate the OpenOffice.org mirror
package generation. Only useful for Ooo mirrors.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/openoffice-1.0/Makefile | 10 | ||||
-rw-r--r-- | editors/openoffice.org-1.0/Makefile | 10 | ||||
-rw-r--r-- | editors/openoffice/Makefile | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/editors/openoffice-1.0/Makefile b/editors/openoffice-1.0/Makefile index 6f2571d..d899929 100644 --- a/editors/openoffice-1.0/Makefile +++ b/editors/openoffice-1.0/Makefile @@ -397,4 +397,14 @@ post-install: @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +package-rename: + @${ECHO_MSG} "===> Rename package for OO.org mirror upload"; +.if defined(LANG_SUFFIX) + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${LANG_SUFFIX}-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}-${LANG_SUFFIX}.tbz2 +.else + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}.tbz2 +.endif + .include <bsd.port.post.mk> diff --git a/editors/openoffice.org-1.0/Makefile b/editors/openoffice.org-1.0/Makefile index 6f2571d..d899929 100644 --- a/editors/openoffice.org-1.0/Makefile +++ b/editors/openoffice.org-1.0/Makefile @@ -397,4 +397,14 @@ post-install: @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +package-rename: + @${ECHO_MSG} "===> Rename package for OO.org mirror upload"; +.if defined(LANG_SUFFIX) + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${LANG_SUFFIX}-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}-${LANG_SUFFIX}.tbz2 +.else + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}.tbz2 +.endif + .include <bsd.port.post.mk> diff --git a/editors/openoffice/Makefile b/editors/openoffice/Makefile index 6f2571d..d899929 100644 --- a/editors/openoffice/Makefile +++ b/editors/openoffice/Makefile @@ -397,4 +397,14 @@ post-install: @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +package-rename: + @${ECHO_MSG} "===> Rename package for OO.org mirror upload"; +.if defined(LANG_SUFFIX) + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${LANG_SUFFIX}-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}-${LANG_SUFFIX}.tbz2 +.else + @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${PORTVERSION}_${PORTREVISION}.tbz2 \ + ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}.tbz2 +.endif + .include <bsd.port.post.mk> |