diff options
author | Alexander Langer <alex@FreeBSD.org> | 2001-09-04 22:30:19 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2001-09-04 22:30:19 +0000 |
commit | b76089d1261a055d287948cc3f17a3d0b0e3cf43 (patch) | |
tree | 9ee03c2e377baccca271e399520d93d8a7b5290b /french | |
parent | 5964cd937dd8091c8622fcfd77b76a8a9765738e (diff) | |
download | ports-b76089d1261a055d287948cc3f17a3d0b0e3cf43.tar.gz ports-b76089d1261a055d287948cc3f17a3d0b0e3cf43.zip |
Notes
Diffstat (limited to 'french')
-rw-r--r-- | french/staroffice52/Makefile | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/french/staroffice52/Makefile b/french/staroffice52/Makefile index 505e3c0b6a78..7a6cd8da1b31 100644 --- a/french/staroffice52/Makefile +++ b/french/staroffice52/Makefile @@ -38,10 +38,28 @@ TMPDIR= ${WRKDIR}/tmp LD_PATH= ${TMPDIR}:${WRKSRC}:${LINUXBASE}/linux/lib:${LINUXBASE}/usr/lib INSTDB.INS= ${PREFIX}/office52/program/instdb.ins SUNSOLVE= ${WRKDIR}/109939-02 +ADABAS_DIST= soa-5_2-ga-bin-linux-fr.bin +SIZE!= /bin/df -k . | /usr/bin/tail -n 1 | /usr/bin/awk '{print $$4}' +LINPROCFS!= mount | grep linprocfs | awk '{print $1}' .include <bsd.port.pre.mk> pre-fetch: +.if ${LINPROCFS} + @${ECHO} + @${ECHO} Linprocfs est installeé: OUI +.else + @${ECHO} ----------------------------------------------------------- + @${ECHO} + @${ECHO} Staroffice dépend sur linprocfs qui n'est pas activée + @${ECHO} sur votre système. Veuiller lire le la page `man' de + @${ECHO} linprocfs(5) et ajouter la ligne suivante dans /etc/fstab: + @${ECHO} + @${ECHO} linproc /compat/linux/proc linprocfs rw 0 0 + @${ECHO} + @${ECHO} ----------------------------------------------------------- + @${FALSE} +.endif .if ${OSVERSION} < 410000 @${ECHO} @${ECHO} OS-VERSION ${OSVERSION} @@ -54,6 +72,21 @@ pre-fetch: @${ECHO} @${FALSE} .endif +.if ${SIZE} < 250000 + @${ECHO} + @${ECHO} Le répertoire /usr/ports ne contient pas suffisament + @${ECHO} d'espace libre. Staroffice a besoin au moins 250M + @${ECHO} d'espace libre. + @${ECHO} + @${FALSE} +.endif +.if !defined(WITH_ADABAS) + @${ECHO} + @${ECHO} Si vous voulez installer Staroffice avec support pour le système + @${ECHO} de base de données ADABAS, terminez cette installation et + @${ECHO} recommencez la avec l'option WITH_ADABAS=YES + @${ECHO} +.endif .if defined(WITH_CDROM) .if !exists(${CD_MOUNTPT}/linux/office52/setup) @${ECHO} @@ -84,11 +117,12 @@ do-extract: @${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC} @${CHMOD} 755 ${WRKSRC}/${DISTNAME} .if defined(WITH_ADABAS) - @${CP} ${_DISTDIR}/soa-5_2-ga-bin-linux-fr.bin ${WRKSRC} - @${CHMOD} 755 ${WRKSRC}/soa-5_2-ga-bin-linux-fr.bin + @${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC} + @${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST} .endif @cd ${WRKSRC} @SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC} + @${RM} ${WRKSRC}/${DISTNAME} @cd ../../ @for file in ${EXTRACT_ONLY}; do \ if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ @@ -140,7 +174,7 @@ post-install: @${PATCH} -s ${PREFIX}/office52/program/setup ${FILESDIR}/setup.patch @${PATCH} -s ${PREFIX}/office52/program/soffice ${FILESDIR}/soffice.patch @${CP} ${INSTDB.INS} ${INSTDB.INS}.orig - @${SED} -e 's%DefaultDestPath = "/usr/local/office52%DefaultDestPath = "office52%' \ + @${SED} -e 's%DefaultDestPath = "${PREFIX}/office52%DefaultDestPath = "office52%' \ < ${INSTDB.INS}.orig > ${INSTDB.INS} install-user: |