From 4bf0422fce8bc10614e195f5ef71cbcaf8be64de Mon Sep 17 00:00:00 2001 From: abs Date: Thu, 27 Jan 2000 21:18:55 +0000 Subject: Adobe's linux port of their framemaker document processor Many thanks to Kazuki Sakamoto who did most of the work. --- editors/framemaker/Makefile | 67 +++++++++++++++++++++++++++++++++++++ editors/framemaker/files/md5 | 10 ++++++ editors/framemaker/files/patch-sum | 3 ++ editors/framemaker/files/wrapper | 53 +++++++++++++++++++++++++++++ editors/framemaker/patches/patch-aa | 33 ++++++++++++++++++ editors/framemaker/pkg/COMMENT | 1 + editors/framemaker/pkg/DESCR | 9 +++++ editors/framemaker/pkg/MESSAGE | 19 +++++++++++ editors/framemaker/pkg/PLIST | 5 +++ 9 files changed, 200 insertions(+) create mode 100644 editors/framemaker/Makefile create mode 100644 editors/framemaker/files/md5 create mode 100644 editors/framemaker/files/patch-sum create mode 100644 editors/framemaker/files/wrapper create mode 100644 editors/framemaker/patches/patch-aa create mode 100644 editors/framemaker/pkg/COMMENT create mode 100644 editors/framemaker/pkg/DESCR create mode 100644 editors/framemaker/pkg/MESSAGE create mode 100644 editors/framemaker/pkg/PLIST (limited to 'editors/framemaker') diff --git a/editors/framemaker/Makefile b/editors/framemaker/Makefile new file mode 100644 index 00000000000..2fc4c49ad5b --- /dev/null +++ b/editors/framemaker/Makefile @@ -0,0 +1,67 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/01/27 21:18:55 abs Exp $ +# + +DISTNAME= fmlinux +PKGNAME= framemaker-5.5.6 +CATEGORIES= editors textproc +MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/magic/framemaker/unix/5.x/ \ + ftp://ftp.adobe.com/pub/adobe/magic/framemaker/unix/5.x/beta/ +DISTFILES= fmlinux.txt fmlinux.tar.gz dictionaries.txt \ + dictionaries.tar.gz help.txt help.tar.gz manuals.txt \ + manuals.tar.gz + +MAINTAINER= abs@netbsd.org +HOMEPAGE= http://www.adobe.com/products/framemaker/fmlinux.html + +.include "../../mk/bsd.prefs.mk" +.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386") +DEPENDS= suse_linux>=6.1:../../emulators/suse_linux +.endif + +MIRROR_DISTFILE=NO + +NO_CONFIGURE= YES +NO_PACKAGE= +NO_CDROM= + +DIST_SUBDIR= framemaker + +# BROKEN= Does not work with suse 6.3 shlibs.rpm - needs 6.1 +ONLY_FOR_PLATFORM=*-*-i386 + +WRKSRC= ${WRKDIR}/FM556_linux +PLIST_SRC= ${WRKDIR}/PLIST.src +FMHOME= ${PREFIX}/lib/FM556_linux +FMARCH= bin/scripts/fmarch +WRAPPERS= fmaddlicense maker demomaker + +EXTRACT_ONLY= fmlinux.tar.gz +EXTRACT_CMD= ${GTAR} xvzf ${_DISTDIR}/fmlinux.tar.gz FM556_linux/${FMARCH} + +do-build: +.for wrap in ${WRAPPERS} + @${SED} -e 's|@@PREFIX@@|${PREFIX}|g' -e 's|@@COMMAND@@|${wrap}|g' \ + ${FILESDIR}/wrapper > ${WRKDIR}/${wrap} +.endfor + +do-install: + @${GTAR} xzvCf ${PREFIX}/lib ${_DISTDIR}/fmlinux.tar.gz + @${GTAR} xzvCf ${FMHOME}/fminit/usenglish ${_DISTDIR}/manuals.tar.gz + @${GTAR} xzvCf ${FMHOME}/fminit/usenglish ${_DISTDIR}/help.tar.gz + @${GTAR} xzvCf ${FMHOME}/fminit ${_DISTDIR}/dictionaries.tar.gz + @${INSTALL_SCRIPT} ${WRKSRC}/${FMARCH} ${FMHOME}/${FMARCH} +.for wrap in ${WRAPPERS} + @${INSTALL_SCRIPT} ${WRKDIR}/${wrap} ${PREFIX}/bin +.endfor + @${LN} -s maker ${PREFIX}/bin/framemaker + +post-install: + @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} + @(cd ${PREFIX}; \ + ${FIND} lib/FM556_linux \( -type f -or -type l \) | \ + sort >> ${PLIST_SRC}; \ + for DIR in `${FIND} lib/FM556_linux -type d | sort -r`; do \ + ${ECHO} "@dirrm $$DIR" >> ${PLIST_SRC}; \ + done) + +.include "../../mk/bsd.pkg.mk" diff --git a/editors/framemaker/files/md5 b/editors/framemaker/files/md5 new file mode 100644 index 00000000000..224143c5421 --- /dev/null +++ b/editors/framemaker/files/md5 @@ -0,0 +1,10 @@ +$NetBSD: md5,v 1.1.1.1 2000/01/27 21:18:56 abs Exp $ + +MD5 (framemaker/fmlinux.txt) = d9de65e38136257e9065d69f812571cb +MD5 (framemaker/fmlinux.tar.gz) = 74134ddb25e15b4af9e59ceed43173ee +MD5 (framemaker/dictionaries.txt) = ee388b1db720ddfcaf0f24308ddbce48 +MD5 (framemaker/dictionaries.tar.gz) = e833783dad7a1d39c1ce5055f0778e06 +MD5 (framemaker/help.txt) = b4faf191bdbb9603fb4f965df89489fe +MD5 (framemaker/help.tar.gz) = 5508ee06a761f37e63dc0857ad19f544 +MD5 (framemaker/manuals.txt) = 283ce1c269f5f730f8312765b13adf6e +MD5 (framemaker/manuals.tar.gz) = d1ee35fc81e96ff91bebd14bb4254ee7 diff --git a/editors/framemaker/files/patch-sum b/editors/framemaker/files/patch-sum new file mode 100644 index 00000000000..8887f56aa6f --- /dev/null +++ b/editors/framemaker/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/01/27 21:18:56 abs Exp $ + +MD5 (patch-aa) = de929228340b95bcb1e1000f916d2633 diff --git a/editors/framemaker/files/wrapper b/editors/framemaker/files/wrapper new file mode 100644 index 00000000000..6a06ec09dc0 --- /dev/null +++ b/editors/framemaker/files/wrapper @@ -0,0 +1,53 @@ +#!/bin/sh +FMHOME=@@PREFIX@@/lib/FM556_linux +PATH=${PATH}:${FMHOME}/bin +export FMHOME PATH + +# We need portmapper to be running in 'insecure' mode.... wonderful :/ +# +if [ -z "$FM_BYPASS_PORTMAP_CHECK" ] ; then + INSECURE_PORTMAP=`ps -xa -o command|grep '^portmap.*-.*i'` + if [ -z "$INSECURE_PORTMAP" ]; then + cat << END +ABORTING: The linux FrameMaker binary requires portmap to be running in + insecure mode. You should edit /etc/rc.conf and add -i to + "portmap_flags", and ensure /etc/hosts.deny contains + portmap: ALL EXCEPT .your.doma.in, localhost + Then reboot. If you enable -i without updating /etc/hosts.deny + your machine may be vulnerable to portmap forwarding attacks. + + Set the environment var 'FM_BYPASS_PORTMAP_CHECK' to bypass. + +END + FM_ABORT=1 + fi +fi + +# For some reason it crashes on 15 or 16 bit displays... not nice +# +if [ -z "$FM_BYPASS_DISPLAY_DEPTH_CHECK" ] ; then + DEPTH=`xdpyinfo | awk '/depth of root window/ {print $5}'` + if [ "$DEPTH" = 15 -o "$DEPTH" = 16 ]; then + cat << END +ABORTING: FrameMaker does not currently work on 15 or 16 bit displays, + please set your display to 8, 24, or 32 bit. + + Set the environment var 'FM_BYPASS_DISPLAY_DEPTH_CHECK' to bypass. + +END + FM_ABORT=1 + fi +fi + +# Avoid 'show one error, fix it, then run again only to see another' +# +if [ -n "$FM_ABORT" ];then + exit +fi + +if [ -n "$HOME" -a -d "$HOME" -a ! -d "$HOME/fminit" ];then + echo "Creating $HOME/fminit" + mkdir $HOME/fminit +fi + +exec ${FMHOME}/bin/@@COMMAND@@ $@ diff --git a/editors/framemaker/patches/patch-aa b/editors/framemaker/patches/patch-aa new file mode 100644 index 00000000000..68689362e16 --- /dev/null +++ b/editors/framemaker/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/01/27 21:18:56 abs Exp $ + +--- bin/scripts/fmarch.orig Sat Dec 4 21:40:28 1999 ++++ bin/scripts/fmarch Thu Jan 27 16:09:54 2000 +@@ -17,8 +17,14 @@ + ;; + esac + +-[ -f /bin/uname ] && { +- case `/bin/uname -a` in ++if [ -f /bin/uname ];then ++ UNAME=/bin/uname ++else ++ UNAME=/usr/bin/uname ++fi ++ ++[ -f $UNAME ] && { ++ case `$UNAME -a` in + SunOS* ) + case `/bin/uname -r` in + 4*) +@@ -54,6 +60,11 @@ + Linux*' 'i[3-9]86' '*) + echo linuxm.glibc2.i386 + exit 0 ++ ;; ++ NetBSD' '*' 'i386) ++ echo linuxm.glibc2.i386 ++ exit 0 ++ ;; + esac + } + diff --git a/editors/framemaker/pkg/COMMENT b/editors/framemaker/pkg/COMMENT new file mode 100644 index 00000000000..a51961ca8fe --- /dev/null +++ b/editors/framemaker/pkg/COMMENT @@ -0,0 +1 @@ +Adobe's linux port of their framemaker document processor diff --git a/editors/framemaker/pkg/DESCR b/editors/framemaker/pkg/DESCR new file mode 100644 index 00000000000..c58d71f67b1 --- /dev/null +++ b/editors/framemaker/pkg/DESCR @@ -0,0 +1,9 @@ +Adobe's linux port of their framemaker document processor + +The demo version will run out of the box, and a free licence until +the end of 2000 is available from Adobe at: + + http://www.adobe.com/products/framemaker/fmlinux.html + +(Might we also suggest you mention to Adobe that you are running +the linux version of FrameMaker under NetBSD :) diff --git a/editors/framemaker/pkg/MESSAGE b/editors/framemaker/pkg/MESSAGE new file mode 100644 index 00000000000..3dc082ede83 --- /dev/null +++ b/editors/framemaker/pkg/MESSAGE @@ -0,0 +1,19 @@ +========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2000/01/27 21:18:56 abs Exp $ + + a) FrameMaker requires 6.1 suse_linux shlibs.rpm, not 6.3. The problem + files are shlibs.rpm: lib/{ld-linux.so.2,libc.so.6,libdl.so.2}. + and bash.rpm: bin/bash (for some of the plugins) + + b) FrameMaker will not run on 15 or 16 bit displays - use 8, 24, or 32 + + c) FrameMaker requires portmap to be running in insecure mode. Edit + /etc/rc.conf and add -i to "portmap_flags", and ensure /etc/hosts.deny + contains "portmap: ALL EXCEPT .your.doma.in, localhost" + + d) For non demo use, obtain a free licence from + http://www.adobe.com/products/framemaker/fmlinux.html + install the package and run fmaddlicense, pick a company name, + enter 'add ', then 'done'. + +========================================================================== diff --git a/editors/framemaker/pkg/PLIST b/editors/framemaker/pkg/PLIST new file mode 100644 index 00000000000..db3b30d4fb8 --- /dev/null +++ b/editors/framemaker/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/01/27 21:18:56 abs Exp $ +bin/demomaker +bin/fmaddlicense +bin/framemaker +bin/maker -- cgit v1.2.3