diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-01-28 08:45:59 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-01-28 08:45:59 +0000 |
commit | 96fda31bb811043560c8cb7e9a8bcfa75db2e356 (patch) | |
tree | 377e85c171a6910a9964766c8df5877c4e39c1ab /emulators/klh10 | |
parent | 7643bdb6a69b5756ce4bc107105568f38f4f0059 (diff) | |
download | ports-96fda31bb811043560c8cb7e9a8bcfa75db2e356.tar.gz ports-96fda31bb811043560c8cb7e9a8bcfa75db2e356.zip |
Notes
Diffstat (limited to 'emulators/klh10')
-rw-r--r-- | emulators/klh10/Makefile | 89 | ||||
-rw-r--r-- | emulators/klh10/files/patch-aa | 2 | ||||
-rw-r--r-- | emulators/klh10/files/patch-src-Makefile.mk | 10 | ||||
-rw-r--r-- | emulators/klh10/files/pkg-message.in | 4 | ||||
-rw-r--r-- | emulators/klh10/pkg-plist | 83 |
5 files changed, 93 insertions, 95 deletions
diff --git a/emulators/klh10/Makefile b/emulators/klh10/Makefile index 72b1e2725dc2..09c62ed3104f 100644 --- a/emulators/klh10/Makefile +++ b/emulators/klh10/Makefile @@ -3,6 +3,7 @@ PORTNAME= klh10 PORTVERSION= 2.0a +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://klh10.trailing-edge.com/ DISTFILES= ${DISTNAME}.tgz klh10-2.0a-aux.tgz @@ -15,19 +16,17 @@ ONLY_FOR_ARCHS= i386 BUILD_WRKSRC= ${WRKSRC}/bld/fbx86 INSTALL_WRKSRC= ${BUILD_WRKSRC} -# KSITS_ prefix for Komputer Small Incompatible Timesharing System -# a KLH10 configuration. +# someday add support for base-kl and base-ks targets +MAKE_ENV= KLH10_HOME="${DATADIR}" +ALL_TARGET= base-ks-its -# KSITS_KLH10_HOME and KSITS_DRIVER_DIR must be set to the same -# locations that the its port uses. +SUB_FILES= pkg-message + +DATADIR= ${PREFIX}/share/${KSITS_KLH10_DIR} +DOCSDIR= ${PREFIX}/share/doc/${KSITS_KLH10_DIR} KSITS_KLH10_DIR= klh10-ks-its -KSITS_KLH10_HOME= ${PREFIX}/share/${KSITS_KLH10_DIR} KSITS_DRIVER_DIR= ${PREFIX}/libexec/${KSITS_KLH10_DIR} -KSITS_DOCDIR= ${PREFIX}/share/doc/${KSITS_KLH10_DIR} -# someday add support for base-kl and base-ks targets -MAKE_ENV+= KLH10_HOME=${KSITS_KLH10_HOME} -ALL_TARGET= base-ks-its KSITS_NATIVE_PROGS= kn10-ks \ tapedd \ @@ -76,47 +75,47 @@ KSITS_DOCS= Intro.txt \ utils.txt \ vtape.txt -NO_STAGE= yes -pre-install: - @ ${MKDIR} ${KSITS_KLH10_HOME} - @ ${MKDIR} ${KSITS_DRIVER_DIR} - @ ${MKDIR} ${KSITS_DOCDIR} - -post-install: -.for file in ${KSITS_NATIVE_PROGS} ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS} - @ ${STRIP_CMD} ${KSITS_KLH10_HOME}/${file} -.endfor -.for file in ${KSITS_NATIVE_PROGS} - @ ${MV} ${KSITS_KLH10_HOME}/${file} ${PREFIX}/bin -.endfor -.for file in ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS} - @ ${MV} ${KSITS_KLH10_HOME}/${file} ${KSITS_DRIVER_DIR} +post-patch: + @${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \ + 's|logf |log_f |g ; \ + s|logf,|log_f,|g ; \ + s|logf;|log_f;|g ; \ + s|logf)|log_f)|g' + +do-install: +.for i in ${KSITS_NATIVE_PROGS} + cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} ${i} \ + ${STAGEDIR}${PREFIX}/bin .endfor -.for file in ${KSITS_EM_SDRIVERS} - @ ${CHGRP} network ${KSITS_DRIVER_DIR}/${file} - @ ${CHMOD} 4754 ${KSITS_DRIVER_DIR}/${file} + @ ${MKDIR} ${STAGEDIR}${KSITS_DRIVER_DIR} +.for i in ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS} + cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} ${i} \ + ${STAGEDIR}${KSITS_DRIVER_DIR} .endfor -.for file in ${KSITS_EM_DAT} - @ ${INSTALL_DATA} ${WRKSRC}/run/ksits/${file} ${KSITS_KLH10_HOME} + @ ${MKDIR} ${STAGEDIR}${DATADIR} +.for i in ${KSITS_EM_DAT} + cd ${WRKSRC}/run/ksits && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DATADIR} .endfor - @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/README ${KSITS_DOCDIR} - @ ${MKDIR} ${KSITS_DOCDIR}/pubits/adm - @ ${MKDIR} ${KSITS_DOCDIR}/pubits/doc -.for file in ${KSITS_DOCS} - @ ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${KSITS_DOCDIR} + @ ${MKDIR} ${STAGEDIR}${DATADIR}/flushed + @ ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${FILESDIR} && ${INSTALL_DATA} PDPs \ + ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/run/ksits && ${INSTALL_DATA} README \ + ${STAGEDIR}${DOCSDIR} +.for i in ${KSITS_DOCS} + cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DOCSDIR} .endfor -.for file in ${KSITS_PUBADM} - @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/adm/${file} \ - ${KSITS_DOCDIR}/pubits/adm + @ ${MKDIR} ${STAGEDIR}${DOCSDIR}/pubits/adm +.for i in ${KSITS_PUBADM} + cd ${WRKSRC}/run/ksits/pubits/adm && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DOCSDIR}/pubits/adm .endfor -.for file in ${KSITS_PUBDOC} - @ ${INSTALL_MAN} ${WRKSRC}/run/ksits/pubits/doc/${file} \ - ${KSITS_DOCDIR}/pubits/doc + @ ${MKDIR} ${STAGEDIR}${DOCSDIR}/pubits/doc +.for i in ${KSITS_PUBDOC} + cd ${WRKSRC}/run/ksits/pubits/doc && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DOCSDIR}/pubits/doc .endfor - @ ${INSTALL_MAN} ${FILESDIR}/PDPs ${KSITS_DOCDIR} - @ ${ECHO} !!! KLH10 contains a setuid that accepts network connections. - @ ${ECHO} !!! Consider using a firewall to limit access to KLH10. - @ ${ECHO} !!! See the ${KSITS_DOCDIR}/pubits/adm - @ ${ECHO} !!! for firewall documentation. .include <bsd.port.mk> diff --git a/emulators/klh10/files/patch-aa b/emulators/klh10/files/patch-aa index d3079d97bc85..66ef7d4f6eb7 100644 --- a/emulators/klh10/files/patch-aa +++ b/emulators/klh10/files/patch-aa @@ -5,7 +5,7 @@ # Build definitions SRC = ../../src -CFLAGS = -c -g3 -O -I. -I$(SRC) -+CFLAGS += -c -g3 -O -I. -I$(SRC) ++CFLAGS += -c -I. -I$(SRC) CFLAGS_LINT = -ansi -pedantic -Wall -Wshadow \ -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wredundant-decls diff --git a/emulators/klh10/files/patch-src-Makefile.mk b/emulators/klh10/files/patch-src-Makefile.mk deleted file mode 100644 index 6d4d54cba807..000000000000 --- a/emulators/klh10/files/patch-src-Makefile.mk +++ /dev/null @@ -1,10 +0,0 @@ ---- src/Makefile.mk.orig Thu Sep 28 18:05:30 2006 -+++ src/Makefile.mk Thu Sep 28 18:05:41 2006 -@@ -44,7 +44,6 @@ - - # Generic compile/link flags - # Suitable for plain vanilla Unix but normally overridden. --CC = cc - CFLAGS = -c -I. -I$(SRC) - CFLAGS_AUX = - CFLAGS_LINT = diff --git a/emulators/klh10/files/pkg-message.in b/emulators/klh10/files/pkg-message.in new file mode 100644 index 000000000000..c651ef8ef8e3 --- /dev/null +++ b/emulators/klh10/files/pkg-message.in @@ -0,0 +1,4 @@ +!!! KLH10 contains a setuid that accepts network connections. +!!! Consider using a firewall to limit access to KLH10. +!!! See the %%DOCSDIR%%/pubits/adm +!!! for firewall documentation. diff --git a/emulators/klh10/pkg-plist b/emulators/klh10/pkg-plist index e6cc87e4d68b..aa66cd9af879 100644 --- a/emulators/klh10/pkg-plist +++ b/emulators/klh10/pkg-plist @@ -4,46 +4,51 @@ bin/udlconv bin/vdkfmt bin/wfconv bin/wxtest +@group network +@mode 4554 libexec/klh10-ks-its/dpimp +@mode +@group libexec/klh10-ks-its/dprpxx libexec/klh10-ks-its/dptm03 -share/klh10-ks-its/@.ddt-u -share/klh10-ks-its/@.its-647kn-u -share/klh10-ks-its/@.nsalv-260-u -share/klh10-ks-its/itsbin.647kn-u -share/klh10-ks-its/klh10-kn.ini -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/hosts.its -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/its.ipfw -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/rc.firewall-its -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/adm/router.notes -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/bootload.files -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/distrib.its -%%PORTDOCS%%share/doc/klh10-ks-its/pubits/doc/dumpsys.help -%%PORTDOCS%%share/doc/klh10-ks-its/Intro.txt -%%PORTDOCS%%share/doc/klh10-ks-its/backgrnd.txt -%%PORTDOCS%%share/doc/klh10-ks-its/cmdref.txt -%%PORTDOCS%%share/doc/klh10-ks-its/cmdsum.txt -%%PORTDOCS%%share/doc/klh10-ks-its/coding.txt -%%PORTDOCS%%share/doc/klh10-ks-its/dfkfb.txt -%%PORTDOCS%%share/doc/klh10-ks-its/dvhost.txt -%%PORTDOCS%%share/doc/klh10-ks-its/history.txt -%%PORTDOCS%%share/doc/klh10-ks-its/install.txt -%%PORTDOCS%%share/doc/klh10-ks-its/kldiff.txt -%%PORTDOCS%%share/doc/klh10-ks-its/klt10.txt -%%PORTDOCS%%share/doc/klh10-ks-its/klt20.txt -%%PORTDOCS%%share/doc/klh10-ks-its/ksits.txt -%%PORTDOCS%%share/doc/klh10-ks-its/kst10.txt -%%PORTDOCS%%share/doc/klh10-ks-its/kst20.txt -%%PORTDOCS%%share/doc/klh10-ks-its/news.txt -%%PORTDOCS%%share/doc/klh10-ks-its/PDPs -%%PORTDOCS%%share/doc/klh10-ks-its/README -%%PORTDOCS%%share/doc/klh10-ks-its/usage.txt -%%PORTDOCS%%share/doc/klh10-ks-its/utils.txt -%%PORTDOCS%%share/doc/klh10-ks-its/vtape.txt -@dirrm share/klh10-ks-its/flushed -@dirrm share/klh10-ks-its +%%PORTDOCS%%%%DOCSDIR%%/Intro.txt +%%PORTDOCS%%%%DOCSDIR%%/PDPs +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/backgrnd.txt +%%PORTDOCS%%%%DOCSDIR%%/cmdref.txt +%%PORTDOCS%%%%DOCSDIR%%/cmdsum.txt +%%PORTDOCS%%%%DOCSDIR%%/coding.txt +%%PORTDOCS%%%%DOCSDIR%%/dfkfb.txt +%%PORTDOCS%%%%DOCSDIR%%/dvhost.txt +%%PORTDOCS%%%%DOCSDIR%%/history.txt +%%PORTDOCS%%%%DOCSDIR%%/install.txt +%%PORTDOCS%%%%DOCSDIR%%/kldiff.txt +%%PORTDOCS%%%%DOCSDIR%%/klt10.txt +%%PORTDOCS%%%%DOCSDIR%%/klt20.txt +%%PORTDOCS%%%%DOCSDIR%%/ksits.txt +%%PORTDOCS%%%%DOCSDIR%%/kst10.txt +%%PORTDOCS%%%%DOCSDIR%%/kst20.txt +%%PORTDOCS%%%%DOCSDIR%%/news.txt +%%PORTDOCS%%%%DOCSDIR%%/pubits/adm/hosts.its +%%PORTDOCS%%%%DOCSDIR%%/pubits/adm/its.ipfw +%%PORTDOCS%%%%DOCSDIR%%/pubits/adm/rc.firewall-its +%%PORTDOCS%%%%DOCSDIR%%/pubits/adm/router.notes +%%PORTDOCS%%%%DOCSDIR%%/pubits/doc/bootload.files +%%PORTDOCS%%%%DOCSDIR%%/pubits/doc/distrib.its +%%PORTDOCS%%%%DOCSDIR%%/pubits/doc/dumpsys.help +%%PORTDOCS%%%%DOCSDIR%%/usage.txt +%%PORTDOCS%%%%DOCSDIR%%/utils.txt +%%PORTDOCS%%%%DOCSDIR%%/vtape.txt +%%DATADIR%%/@.ddt-u +%%DATADIR%%/@.its-647kn-u +%%DATADIR%%/@.nsalv-260-u +%%DATADIR%%/itsbin.647kn-u +%%DATADIR%%/klh10-kn.ini +@exec mkdir -p %D/%%DATADIR%%/flushed +@dirrmtry %%DATADIR%%/flushed +@dirrmtry %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%/pubits/doc +%%PORTDOCS%%@dirrm %%DOCSDIR%%/pubits/adm +%%PORTDOCS%%@dirrm %%DOCSDIR%%/pubits +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm libexec/klh10-ks-its -%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits/adm -%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits/doc -%%PORTDOCS%%@dirrm share/doc/klh10-ks-its/pubits -%%PORTDOCS%%@dirrm share/doc/klh10-ks-its |