diff options
author | stb <stb@FreeBSD.org> | 1998-09-09 09:31:06 +0800 |
---|---|---|
committer | stb <stb@FreeBSD.org> | 1998-09-09 09:31:06 +0800 |
commit | e0f53ee76a4f93dfec2ad9fa27980d4bc852868d (patch) | |
tree | 3d47509d78f1e7f0da2d6268f803cb37e95dd7be /net | |
parent | bf85d580d3c3df12e0506f49e15d843435f999e6 (diff) | |
download | freebsd-ports-graphics-e0f53ee76a4f93dfec2ad9fa27980d4bc852868d.tar.gz freebsd-ports-graphics-e0f53ee76a4f93dfec2ad9fa27980d4bc852868d.tar.zst freebsd-ports-graphics-e0f53ee76a4f93dfec2ad9fa27980d4bc852868d.zip |
Minor additions and fix-ups:
- filenames of Custom Icons for folders ("Icon^M") are properly escaped
- Honors CFLAGS
- package can actually be installed elswhere (pkg_add -p)
- man pages are compressed and properly linked
Diffstat (limited to 'net')
-rw-r--r-- | net/netatalk-devel/Makefile | 37 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-aa | 65 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-ab | 19 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-ac | 99 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-ah | 11 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-ai | 8 | ||||
-rw-r--r-- | net/netatalk-devel/files/patch-aj | 11 | ||||
-rw-r--r-- | net/netatalk-devel/pkg-install | 43 | ||||
-rw-r--r-- | net/netatalk-devel/pkg-plist | 41 | ||||
-rw-r--r-- | net/netatalk/Makefile | 37 | ||||
-rw-r--r-- | net/netatalk/files/patch-aa | 65 | ||||
-rw-r--r-- | net/netatalk/files/patch-ab | 19 | ||||
-rw-r--r-- | net/netatalk/files/patch-ac | 99 | ||||
-rw-r--r-- | net/netatalk/files/patch-ah | 11 | ||||
-rw-r--r-- | net/netatalk/files/patch-ai | 8 | ||||
-rw-r--r-- | net/netatalk/files/patch-aj | 11 | ||||
-rw-r--r-- | net/netatalk/pkg-install | 43 | ||||
-rw-r--r-- | net/netatalk/pkg-plist | 41 |
18 files changed, 406 insertions, 262 deletions
diff --git a/net/netatalk-devel/Makefile b/net/netatalk-devel/Makefile index 5ad151ea23a..0588520c945 100644 --- a/net/netatalk-devel/Makefile +++ b/net/netatalk-devel/Makefile @@ -3,7 +3,7 @@ # Date created: 23 Jul 1997 # Whom: stb # -# $Id: Makefile,v 1.4 1998/01/22 11:06:40 asami Exp $ +# $Id: Makefile,v 1.5 1998/02/27 00:05:23 stb Exp $ # DISTNAME= netatalk-1.4b2 @@ -15,8 +15,37 @@ PATCHFILES= afpd-macos8.diff afpd-bfree.diff MAINTAINER= stb@freebsd.org -NOMANCOMPRESS= true -# XXX this is a hack to make the .so-included -# man pages work. +MAN1= aecho.1 getzones.1 megatron.1 nbp.1 pap.1 psorder.1 +MLINKS= hqx2bin.1 megatron.1 \ + macbinary.1 megatron.1 \ + single2bin.1 megatron.1 \ + unbin.1 megatron.1 \ + unhex.1 megatron.1 \ + unsingle.1 megatron.1 \ + nbplkup.1 nbp.1 \ + nbprgstr.1 nbp.1 \ + nbpunrgstr.1 nbp.1 \ + papstatus.1 pap.1 +MAN3= atalk_aton.3 nbp_name.3 +MAN4= atalk.4 +MAN8= afpd.8 atalkd.8 papd.8 psf.8 + +post-install: + @PKG_PREFIX=${PREFIX} FAKE_PKG_INSTALL=yes \ + ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL +# @if [ -f ${PREFIX}/etc/AppleVolumes.system ]; then \ +# echo "*** Make sure ${PREFIX}/etc/AppleVolumes.system is in sync with this version"; \ +# echo " of the port. See ${PREFIX}/etc/AppleVolumes.system.dist for details."; \ +# else \ +# ${INSTALL_DATA} ${PREFIX}/etc/AppleVolumes.system.dist \ +# ${PREFIX}/etc/AppleVolumes.system ; \ +# fi +# @if [ -f ${PREFIX}/etc/AppleVolumes.default ]; then \ +# echo "*** Make sure ${PREFIX}/etc/AppleVolumes.default is in sync with this version"; \ +# echo " of the port. See ${PREFIX}/etc/AppleVolumes.default.dist for details."; \ +# else \ +# ${INSTALL_DATA} ${PREFIX}/etc/AppleVolumes.default.dist \ +# ${PREFIX}/etc/AppleVolumes.default ; \ +# fi .include <bsd.port.mk> diff --git a/net/netatalk-devel/files/patch-aa b/net/netatalk-devel/files/patch-aa index 265e8f04a28..ae3c38bf154 100644 --- a/net/netatalk-devel/files/patch-aa +++ b/net/netatalk-devel/files/patch-aa @@ -1,35 +1,30 @@ -*** ../netatalk-1.4b2/Makefile Wed Oct 9 20:14:20 1996 ---- ./Makefile Thu Jul 24 01:40:24 1997 -*************** -*** 1,15 **** - # Root of installation. Subdirectories will be ${DESTDIR}/etc, - # ${DESTDIR}/bin, and ${DESTDIR}/lib. -! DESTDIR=/usr/local/atalk - - # for system-level binaries -! SBINDIR=$(DESTDIR)/etc - # for user-level binaries - BINDIR=$(DESTDIR)/bin - # for program libraries (*.a) - LIBDIR=$(DESTDIR)/lib - # for machine-independent resources (pagecount.ps, etc.) -! RESDIR=$(DESTDIR)/etc - # for configuration files (AppleVolumes.system, etc.) - ETCDIR=$(DESTDIR)/etc - # for include files ---- 1,15 ---- - # Root of installation. Subdirectories will be ${DESTDIR}/etc, - # ${DESTDIR}/bin, and ${DESTDIR}/lib. -! DESTDIR=$(PREFIX) - - # for system-level binaries -! SBINDIR=$(DESTDIR)/libexec - # for user-level binaries - BINDIR=$(DESTDIR)/bin - # for program libraries (*.a) - LIBDIR=$(DESTDIR)/lib - # for machine-independent resources (pagecount.ps, etc.) -! RESDIR=$(DESTDIR)/share - # for configuration files (AppleVolumes.system, etc.) - ETCDIR=$(DESTDIR)/etc - # for include files +--- Makefile.old Wed Sep 9 02:42:06 1998 ++++ Makefile Wed Sep 9 02:42:37 1998 +@@ -1,15 +1,15 @@ + # Root of installation. Subdirectories will be ${DESTDIR}/etc, + # ${DESTDIR}/bin, and ${DESTDIR}/lib. +-DESTDIR=/usr/local/atalk ++DESTDIR=$(PREFIX) + + # for system-level binaries +-SBINDIR=$(DESTDIR)/etc ++SBINDIR=$(DESTDIR)/libexec + # for user-level binaries + BINDIR=$(DESTDIR)/bin + # for program libraries (*.a) + LIBDIR=$(DESTDIR)/lib + # for machine-independent resources (pagecount.ps, etc.) +-RESDIR=$(DESTDIR)/etc ++RESDIR=$(DESTDIR)/share + # for configuration files (AppleVolumes.system, etc.) + ETCDIR=$(DESTDIR)/etc + # for include files +@@ -54,7 +54,7 @@ + SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}"\ + ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \ + DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \ +- AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" $@ ++ AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" OPTOPTS="${CFLAGS}" $@ + + FRC: + diff --git a/net/netatalk-devel/files/patch-ab b/net/netatalk-devel/files/patch-ab index 433387c6cb5..4c760c2adbb 100644 --- a/net/netatalk-devel/files/patch-ab +++ b/net/netatalk-devel/files/patch-ab @@ -3,20 +3,27 @@ diff -crP ../netatalk-1.4b2/rc.atalk.freebsd ./rc.atalk.freebsd --- ./rc.atalk.freebsd Thu Jul 24 02:14:39 1997 *************** *** 0 **** ---- 1,19 ---- +--- 1,26 ---- + # + # AppleTalk daemons. Make sure not to start atalkd in the background: + # its data structures must have time to stablize before running the + # other processes. + # ++ PREFIX=/`expr $0 : '/\(.*\)/etc/rc.d/netatalk.sh'` ++ if [ "x${PREFIX}" = "x/" ]; then ++ printf "\nnetatalk: Cannot determine PREFIX.\n" >&2 ++ exit 64 ++ fi ++ HOSTNAME=`hostname|sed 's/\..*$//'` + + case $1 in + start) echo -n ' netatalk' -+ :SBINDIR:/atalkd -+ :BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation -+ :BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:netatalk -+ :SBINDIR:/papd -+ :SBINDIR:/afpd ++ ${PREFIX}/libexec/atalkd ++ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:Workstation & ++ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:netatalk & ++ ${PREFIX}/libexec/papd ++ ${PREFIX}/libexec/afpd -s ${PREFIX}/etc/AppleVolumes.system \ ++ -f ${PREFIX}/etc/AppleVolumes.default + ;; + stop) killall afpd + killall papd diff --git a/net/netatalk-devel/files/patch-ac b/net/netatalk-devel/files/patch-ac index 55fdc164df7..e6ec20e0ab5 100644 --- a/net/netatalk-devel/files/patch-ac +++ b/net/netatalk-devel/files/patch-ac @@ -1,56 +1,43 @@ -*** ../netatalk-1.4b2/sys/freebsd/Makefile Tue Oct 22 23:31:01 1996 ---- ./sys/freebsd/Makefile Thu Jul 24 02:32:58 1997 -*************** -*** 21,27 **** - FRC: - - install : -! -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} - for i in ${ALL}; \ - do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ - ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ ---- 21,28 ---- - FRC: - - install : -! -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \ -! ${ETCDIR}/rc.d ${RESDIR}/examples/netatalk - for i in ${ALL}; \ - do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ - ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ -*************** -*** 30,46 **** - AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ - INSTALL="${INSTALL}" $@); \ - done -- rm -f ${ETCDIR}/rc.atalk - sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ - -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ - -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ - -e s@:INCDIR:@${INCDIR}@ \ -! < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk -! @echo -! @echo "Install is done. Don't forget to add lines from" -! @echo "services.atalk to /etc/services and to call rc.atalk" -! @echo "in /etc/rc. See README and README.FREEBSD for more" -! @echo "information." - - clean : - for i in ${ALL}; \ ---- 31,46 ---- - AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ - INSTALL="${INSTALL}" $@); \ - done - sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ - -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ - -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ - -e s@:INCDIR:@${INCDIR}@ \ -! < ../../rc.atalk.freebsd > ${ETCDIR}/rc.d/netatalk.sh -! chmod +x ${ETCDIR}/rc.d/netatalk.sh -! cp ../../config/AppleVolumes.default ${ETCDIR}/AppleVolumes.default.dist -! cp ../../config/AppleVolumes.system ${ETCDIR}/AppleVolumes.system.dist -! cp ../../config/atalkd.conf ../../config/papd.conf \ -! ${RESDIR}/examples/netatalk - - clean : - for i in ${ALL}; \ +--- sys/freebsd/Makefile.orig Tue Oct 22 23:31:01 1996 ++++ sys/freebsd/Makefile Wed Sep 9 02:09:02 1998 +@@ -1,6 +1,5 @@ + # FreeBSD specific defines, passed to subdirectories. + DEFS= -DBSD4_4 +-OPTOPTS= -O2 + CC= gcc + INSTALL= install + ADDLIBS= -lcrypt +@@ -21,7 +20,8 @@ + FRC: + + install : +- -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} ++ -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \ ++ ${ETCDIR}/rc.d ${RESDIR}/examples/netatalk + for i in ${ALL}; \ + do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ + ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ +@@ -30,17 +30,16 @@ + AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ + INSTALL="${INSTALL}" $@); \ + done +- rm -f ${ETCDIR}/rc.atalk + sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ + -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ + -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ + -e s@:INCDIR:@${INCDIR}@ \ +- < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk +- @echo +- @echo "Install is done. Don't forget to add lines from" +- @echo "services.atalk to /etc/services and to call rc.atalk" +- @echo "in /etc/rc. See README and README.FREEBSD for more" +- @echo "information." ++ < ../../rc.atalk.freebsd > ${ETCDIR}/rc.d/netatalk.sh ++ chmod +x ${ETCDIR}/rc.d/netatalk.sh ++ cp ../../config/AppleVolumes.default ${ETCDIR}/AppleVolumes.default.dist ++ cp ../../config/AppleVolumes.system ${ETCDIR}/AppleVolumes.system.dist ++ cp ../../config/atalkd.conf ../../config/papd.conf \ ++ ${RESDIR}/examples/netatalk + + clean : + for i in ${ALL}; \ diff --git a/net/netatalk-devel/files/patch-ah b/net/netatalk-devel/files/patch-ah new file mode 100644 index 00000000000..30164e7616f --- /dev/null +++ b/net/netatalk-devel/files/patch-ah @@ -0,0 +1,11 @@ +--- etc/afpd/desktop.c.orig Tue Aug 25 21:59:28 1998 ++++ etc/afpd/desktop.c Tue Aug 25 22:00:23 1998 +@@ -429,7 +429,7 @@ + m = mpath; + u = upath; + while ( *m != '\0' ) { +- if ( !isascii( *m ) || *m == '/' || ( i == 0 && *m == '.' )) { ++ if ( !isprint( (unsigned char)*m ) || *m == '/' || ( i == 0 && *m == '.' )) { + *u++ = ':'; + *u++ = hexdig[ ( *m & 0xf0 ) >> 4 ]; + *u++ = hexdig[ *m & 0x0f ]; diff --git a/net/netatalk-devel/files/patch-ai b/net/netatalk-devel/files/patch-ai new file mode 100644 index 00000000000..d0c82037f22 --- /dev/null +++ b/net/netatalk-devel/files/patch-ai @@ -0,0 +1,8 @@ +--- Makefile.orig Tue Feb 20 17:38:02 1996 ++++ Makefile Mon Sep 7 22:23:04 1998 +@@ -1,4 +1,4 @@ +-TARGETS= atalk netatalk ++TARGETS= atalk + + INSTALL= install + diff --git a/net/netatalk-devel/files/patch-aj b/net/netatalk-devel/files/patch-aj new file mode 100644 index 00000000000..869cb02661a --- /dev/null +++ b/net/netatalk-devel/files/patch-aj @@ -0,0 +1,11 @@ +--- man/man1/Makefile.orig Tue Feb 20 18:16:24 1996 ++++ man/man1/Makefile Tue Sep 8 23:40:31 1998 +@@ -1,6 +1,5 @@ +-SRC= aecho.1 getzones.1 nbp.1 nbplkup.1 nbprgstr.1 nbplkup.1 \ +- pap.1 papstatus.1 psorder.1 megatron.1 unhex.1 unbin.1 \ +- unsingle.1 macbinary.1 hqx2bin.1 single2bin.1 ++SRC= aecho.1 getzones.1 nbp.1 \ ++ pap.1 psorder.1 megatron.1 + + INCPATH= + CFLAGS= diff --git a/net/netatalk-devel/pkg-install b/net/netatalk-devel/pkg-install new file mode 100644 index 00000000000..b4b6c55892a --- /dev/null +++ b/net/netatalk-devel/pkg-install @@ -0,0 +1,43 @@ +#!/bin/sh + +# Check whether config files exist already, and copy the distribution ones +# if not. Warn the user if the existing ones differ from the distribution, +# so changes in the distribution can be merged. + +checkfile() { + diff -bBqw $1 $1.dist >/dev/null 2>&1 + case $? in + 0) # config file exists, but is the same + ;; + 1) # config file exists and differs + echo "** Make sure $1 is in sync with this version"; + echo " of the port. See $1.dist for details."; + ;; + *) # no config file exists, copy it + install -c -m 644 $1.dist $1 + ;; + esac +} + +case $2 in + POST-INSTALL) + cd ${PKG_PREFIX} + checkfile ${PKG_PREFIX}/etc/AppleVolumes.default + checkfile ${PKG_PREFIX}/etc/AppleVolumes.system + + # install man page aliases + cd man + if [ "x${FAKE_PKG_INSTALL}" = "x" ]; then + if [ -f man1/megatron.1.gz ]; then + MANEXT=.gz + fi + for i in hqx2bin macbinary single2bin unbin unhex unsingle; do + ln -f man1/megatron.1${MANEXT} man1/$i.1${MANEXT} + done + for i in nbplkup nbprgstr nbpunrgstr; do + ln -f man1/nbp.1${MANEXT} man1/$i.1${MANEXT} + done + ln -f man1/pap.1${MANEXT} man1/papstatus.1${MANEXT} + fi + ;; +esac diff --git a/net/netatalk-devel/pkg-plist b/net/netatalk-devel/pkg-plist index 1fb5b948ad4..9eacf9250cd 100644 --- a/net/netatalk-devel/pkg-plist +++ b/net/netatalk-devel/pkg-plist @@ -29,14 +29,6 @@ include/atalk/paths.h include/atalk/rtmp.h include/atalk/zip.h @dirrm include/atalk -include/netatalk/aarp.h -include/netatalk/at.h -include/netatalk/at_var.h -include/netatalk/ddp.h -include/netatalk/ddp_var.h -include/netatalk/endian.h -include/netatalk/phase2.h -@dirrm include/netatalk lib/libatalk.a lib/libatalk_p.a libexec/afpd @@ -45,28 +37,6 @@ libexec/etc2ps libexec/papd libexec/psa libexec/psf -man/man1/aecho.1 -man/man1/getzones.1 -man/man1/hqx2bin.1 -man/man1/macbinary.1 -man/man1/megatron.1 -man/man1/nbp.1 -man/man1/nbplkup.1 -man/man1/nbprgstr.1 -man/man1/pap.1 -man/man1/papstatus.1 -man/man1/psorder.1 -man/man1/single2bin.1 -man/man1/unbin.1 -man/man1/unhex.1 -man/man1/unsingle.1 -man/man3/atalk_aton.3 -man/man3/nbp_name.3 -man/man4/atalk.4 -man/man8/afpd.8 -man/man8/atalkd.8 -man/man8/papd.8 -man/man8/psf.8 share/examples/netatalk/atalkd.conf share/examples/netatalk/papd.conf @dirrm share/examples/netatalk @@ -92,3 +62,14 @@ share/filters/tfwpap share/filters/tfwpaprev @dirrm share/filters share/pagecount.ps +@comment Remove man page aliases +@unexec rm -f %D/man/man1/hqx2bin.1* +@unexec rm -f %D/man/man1/macbinary.1* +@unexec rm -f %D/man/man1/single2bin.1* +@unexec rm -f %D/man/man1/unbin.1* +@unexec rm -f %D/man/man1/unhex.1* +@unexec rm -f %D/man/man1/unsingle.1* +@unexec rm -f %D/man/man1/nbplkup.1* +@unexec rm -f %D/man/man1/nbprgstr.1* +@unexec rm -f %D/man/man1/nbpunrgstr.1* +@unexec rm -f %D/man/man1/papstatus.1* diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile index 5ad151ea23a..0588520c945 100644 --- a/net/netatalk/Makefile +++ b/net/netatalk/Makefile @@ -3,7 +3,7 @@ # Date created: 23 Jul 1997 # Whom: stb # -# $Id: Makefile,v 1.4 1998/01/22 11:06:40 asami Exp $ +# $Id: Makefile,v 1.5 1998/02/27 00:05:23 stb Exp $ # DISTNAME= netatalk-1.4b2 @@ -15,8 +15,37 @@ PATCHFILES= afpd-macos8.diff afpd-bfree.diff MAINTAINER= stb@freebsd.org -NOMANCOMPRESS= true -# XXX this is a hack to make the .so-included -# man pages work. +MAN1= aecho.1 getzones.1 megatron.1 nbp.1 pap.1 psorder.1 +MLINKS= hqx2bin.1 megatron.1 \ + macbinary.1 megatron.1 \ + single2bin.1 megatron.1 \ + unbin.1 megatron.1 \ + unhex.1 megatron.1 \ + unsingle.1 megatron.1 \ + nbplkup.1 nbp.1 \ + nbprgstr.1 nbp.1 \ + nbpunrgstr.1 nbp.1 \ + papstatus.1 pap.1 +MAN3= atalk_aton.3 nbp_name.3 +MAN4= atalk.4 +MAN8= afpd.8 atalkd.8 papd.8 psf.8 + +post-install: + @PKG_PREFIX=${PREFIX} FAKE_PKG_INSTALL=yes \ + ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL +# @if [ -f ${PREFIX}/etc/AppleVolumes.system ]; then \ +# echo "*** Make sure ${PREFIX}/etc/AppleVolumes.system is in sync with this version"; \ +# echo " of the port. See ${PREFIX}/etc/AppleVolumes.system.dist for details."; \ +# else \ +# ${INSTALL_DATA} ${PREFIX}/etc/AppleVolumes.system.dist \ +# ${PREFIX}/etc/AppleVolumes.system ; \ +# fi +# @if [ -f ${PREFIX}/etc/AppleVolumes.default ]; then \ +# echo "*** Make sure ${PREFIX}/etc/AppleVolumes.default is in sync with this version"; \ +# echo " of the port. See ${PREFIX}/etc/AppleVolumes.default.dist for details."; \ +# else \ +# ${INSTALL_DATA} ${PREFIX}/etc/AppleVolumes.default.dist \ +# ${PREFIX}/etc/AppleVolumes.default ; \ +# fi .include <bsd.port.mk> diff --git a/net/netatalk/files/patch-aa b/net/netatalk/files/patch-aa index 265e8f04a28..ae3c38bf154 100644 --- a/net/netatalk/files/patch-aa +++ b/net/netatalk/files/patch-aa @@ -1,35 +1,30 @@ -*** ../netatalk-1.4b2/Makefile Wed Oct 9 20:14:20 1996 ---- ./Makefile Thu Jul 24 01:40:24 1997 -*************** -*** 1,15 **** - # Root of installation. Subdirectories will be ${DESTDIR}/etc, - # ${DESTDIR}/bin, and ${DESTDIR}/lib. -! DESTDIR=/usr/local/atalk - - # for system-level binaries -! SBINDIR=$(DESTDIR)/etc - # for user-level binaries - BINDIR=$(DESTDIR)/bin - # for program libraries (*.a) - LIBDIR=$(DESTDIR)/lib - # for machine-independent resources (pagecount.ps, etc.) -! RESDIR=$(DESTDIR)/etc - # for configuration files (AppleVolumes.system, etc.) - ETCDIR=$(DESTDIR)/etc - # for include files ---- 1,15 ---- - # Root of installation. Subdirectories will be ${DESTDIR}/etc, - # ${DESTDIR}/bin, and ${DESTDIR}/lib. -! DESTDIR=$(PREFIX) - - # for system-level binaries -! SBINDIR=$(DESTDIR)/libexec - # for user-level binaries - BINDIR=$(DESTDIR)/bin - # for program libraries (*.a) - LIBDIR=$(DESTDIR)/lib - # for machine-independent resources (pagecount.ps, etc.) -! RESDIR=$(DESTDIR)/share - # for configuration files (AppleVolumes.system, etc.) - ETCDIR=$(DESTDIR)/etc - # for include files +--- Makefile.old Wed Sep 9 02:42:06 1998 ++++ Makefile Wed Sep 9 02:42:37 1998 +@@ -1,15 +1,15 @@ + # Root of installation. Subdirectories will be ${DESTDIR}/etc, + # ${DESTDIR}/bin, and ${DESTDIR}/lib. +-DESTDIR=/usr/local/atalk ++DESTDIR=$(PREFIX) + + # for system-level binaries +-SBINDIR=$(DESTDIR)/etc ++SBINDIR=$(DESTDIR)/libexec + # for user-level binaries + BINDIR=$(DESTDIR)/bin + # for program libraries (*.a) + LIBDIR=$(DESTDIR)/lib + # for machine-independent resources (pagecount.ps, etc.) +-RESDIR=$(DESTDIR)/etc ++RESDIR=$(DESTDIR)/share + # for configuration files (AppleVolumes.system, etc.) + ETCDIR=$(DESTDIR)/etc + # for include files +@@ -54,7 +54,7 @@ + SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}"\ + ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \ + DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \ +- AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" $@ ++ AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" OPTOPTS="${CFLAGS}" $@ + + FRC: + diff --git a/net/netatalk/files/patch-ab b/net/netatalk/files/patch-ab index 433387c6cb5..4c760c2adbb 100644 --- a/net/netatalk/files/patch-ab +++ b/net/netatalk/files/patch-ab @@ -3,20 +3,27 @@ diff -crP ../netatalk-1.4b2/rc.atalk.freebsd ./rc.atalk.freebsd --- ./rc.atalk.freebsd Thu Jul 24 02:14:39 1997 *************** *** 0 **** ---- 1,19 ---- +--- 1,26 ---- + # + # AppleTalk daemons. Make sure not to start atalkd in the background: + # its data structures must have time to stablize before running the + # other processes. + # ++ PREFIX=/`expr $0 : '/\(.*\)/etc/rc.d/netatalk.sh'` ++ if [ "x${PREFIX}" = "x/" ]; then ++ printf "\nnetatalk: Cannot determine PREFIX.\n" >&2 ++ exit 64 ++ fi ++ HOSTNAME=`hostname|sed 's/\..*$//'` + + case $1 in + start) echo -n ' netatalk' -+ :SBINDIR:/atalkd -+ :BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation -+ :BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:netatalk -+ :SBINDIR:/papd -+ :SBINDIR:/afpd ++ ${PREFIX}/libexec/atalkd ++ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:Workstation & ++ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:netatalk & ++ ${PREFIX}/libexec/papd ++ ${PREFIX}/libexec/afpd -s ${PREFIX}/etc/AppleVolumes.system \ ++ -f ${PREFIX}/etc/AppleVolumes.default + ;; + stop) killall afpd + killall papd diff --git a/net/netatalk/files/patch-ac b/net/netatalk/files/patch-ac index 55fdc164df7..e6ec20e0ab5 100644 --- a/net/netatalk/files/patch-ac +++ b/net/netatalk/files/patch-ac @@ -1,56 +1,43 @@ -*** ../netatalk-1.4b2/sys/freebsd/Makefile Tue Oct 22 23:31:01 1996 ---- ./sys/freebsd/Makefile Thu Jul 24 02:32:58 1997 -*************** -*** 21,27 **** - FRC: - - install : -! -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} - for i in ${ALL}; \ - do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ - ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ ---- 21,28 ---- - FRC: - - install : -! -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \ -! ${ETCDIR}/rc.d ${RESDIR}/examples/netatalk - for i in ${ALL}; \ - do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ - ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ -*************** -*** 30,46 **** - AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ - INSTALL="${INSTALL}" $@); \ - done -- rm -f ${ETCDIR}/rc.atalk - sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ - -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ - -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ - -e s@:INCDIR:@${INCDIR}@ \ -! < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk -! @echo -! @echo "Install is done. Don't forget to add lines from" -! @echo "services.atalk to /etc/services and to call rc.atalk" -! @echo "in /etc/rc. See README and README.FREEBSD for more" -! @echo "information." - - clean : - for i in ${ALL}; \ ---- 31,46 ---- - AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ - INSTALL="${INSTALL}" $@); \ - done - sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ - -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ - -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ - -e s@:INCDIR:@${INCDIR}@ \ -! < ../../rc.atalk.freebsd > ${ETCDIR}/rc.d/netatalk.sh -! chmod +x ${ETCDIR}/rc.d/netatalk.sh -! cp ../../config/AppleVolumes.default ${ETCDIR}/AppleVolumes.default.dist -! cp ../../config/AppleVolumes.system ${ETCDIR}/AppleVolumes.system.dist -! cp ../../config/atalkd.conf ../../config/papd.conf \ -! ${RESDIR}/examples/netatalk - - clean : - for i in ${ALL}; \ +--- sys/freebsd/Makefile.orig Tue Oct 22 23:31:01 1996 ++++ sys/freebsd/Makefile Wed Sep 9 02:09:02 1998 +@@ -1,6 +1,5 @@ + # FreeBSD specific defines, passed to subdirectories. + DEFS= -DBSD4_4 +-OPTOPTS= -O2 + CC= gcc + INSTALL= install + ADDLIBS= -lcrypt +@@ -21,7 +20,8 @@ + FRC: + + install : +- -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} ++ -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \ ++ ${ETCDIR}/rc.d ${RESDIR}/examples/netatalk + for i in ${ALL}; \ + do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \ + ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \ +@@ -30,17 +30,16 @@ + AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \ + INSTALL="${INSTALL}" $@); \ + done +- rm -f ${ETCDIR}/rc.atalk + sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \ + -e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \ + -e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \ + -e s@:INCDIR:@${INCDIR}@ \ +- < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk +- @echo +- @echo "Install is done. Don't forget to add lines from" +- @echo "services.atalk to /etc/services and to call rc.atalk" +- @echo "in /etc/rc. See README and README.FREEBSD for more" +- @echo "information." ++ < ../../rc.atalk.freebsd > ${ETCDIR}/rc.d/netatalk.sh ++ chmod +x ${ETCDIR}/rc.d/netatalk.sh ++ cp ../../config/AppleVolumes.default ${ETCDIR}/AppleVolumes.default.dist ++ cp ../../config/AppleVolumes.system ${ETCDIR}/AppleVolumes.system.dist ++ cp ../../config/atalkd.conf ../../config/papd.conf \ ++ ${RESDIR}/examples/netatalk + + clean : + for i in ${ALL}; \ diff --git a/net/netatalk/files/patch-ah b/net/netatalk/files/patch-ah new file mode 100644 index 00000000000..30164e7616f --- /dev/null +++ b/net/netatalk/files/patch-ah @@ -0,0 +1,11 @@ +--- etc/afpd/desktop.c.orig Tue Aug 25 21:59:28 1998 ++++ etc/afpd/desktop.c Tue Aug 25 22:00:23 1998 +@@ -429,7 +429,7 @@ + m = mpath; + u = upath; + while ( *m != '\0' ) { +- if ( !isascii( *m ) || *m == '/' || ( i == 0 && *m == '.' )) { ++ if ( !isprint( (unsigned char)*m ) || *m == '/' || ( i == 0 && *m == '.' )) { + *u++ = ':'; + *u++ = hexdig[ ( *m & 0xf0 ) >> 4 ]; + *u++ = hexdig[ *m & 0x0f ]; diff --git a/net/netatalk/files/patch-ai b/net/netatalk/files/patch-ai new file mode 100644 index 00000000000..d0c82037f22 --- /dev/null +++ b/net/netatalk/files/patch-ai @@ -0,0 +1,8 @@ +--- Makefile.orig Tue Feb 20 17:38:02 1996 ++++ Makefile Mon Sep 7 22:23:04 1998 +@@ -1,4 +1,4 @@ +-TARGETS= atalk netatalk ++TARGETS= atalk + + INSTALL= install + diff --git a/net/netatalk/files/patch-aj b/net/netatalk/files/patch-aj new file mode 100644 index 00000000000..869cb02661a --- /dev/null +++ b/net/netatalk/files/patch-aj @@ -0,0 +1,11 @@ +--- man/man1/Makefile.orig Tue Feb 20 18:16:24 1996 ++++ man/man1/Makefile Tue Sep 8 23:40:31 1998 +@@ -1,6 +1,5 @@ +-SRC= aecho.1 getzones.1 nbp.1 nbplkup.1 nbprgstr.1 nbplkup.1 \ +- pap.1 papstatus.1 psorder.1 megatron.1 unhex.1 unbin.1 \ +- unsingle.1 macbinary.1 hqx2bin.1 single2bin.1 ++SRC= aecho.1 getzones.1 nbp.1 \ ++ pap.1 psorder.1 megatron.1 + + INCPATH= + CFLAGS= diff --git a/net/netatalk/pkg-install b/net/netatalk/pkg-install new file mode 100644 index 00000000000..b4b6c55892a --- /dev/null +++ b/net/netatalk/pkg-install @@ -0,0 +1,43 @@ +#!/bin/sh + +# Check whether config files exist already, and copy the distribution ones +# if not. Warn the user if the existing ones differ from the distribution, +# so changes in the distribution can be merged. + +checkfile() { + diff -bBqw $1 $1.dist >/dev/null 2>&1 + case $? in + 0) # config file exists, but is the same + ;; + 1) # config file exists and differs + echo "** Make sure $1 is in sync with this version"; + echo " of the port. See $1.dist for details."; + ;; + *) # no config file exists, copy it + install -c -m 644 $1.dist $1 + ;; + esac +} + +case $2 in + POST-INSTALL) + cd ${PKG_PREFIX} + checkfile ${PKG_PREFIX}/etc/AppleVolumes.default + checkfile ${PKG_PREFIX}/etc/AppleVolumes.system + + # install man page aliases + cd man + if [ "x${FAKE_PKG_INSTALL}" = "x" ]; then + if [ -f man1/megatron.1.gz ]; then + MANEXT=.gz + fi + for i in hqx2bin macbinary single2bin unbin unhex unsingle; do + ln -f man1/megatron.1${MANEXT} man1/$i.1${MANEXT} + done + for i in nbplkup nbprgstr nbpunrgstr; do + ln -f man1/nbp.1${MANEXT} man1/$i.1${MANEXT} + done + ln -f man1/pap.1${MANEXT} man1/papstatus.1${MANEXT} + fi + ;; +esac diff --git a/net/netatalk/pkg-plist b/net/netatalk/pkg-plist index 1fb5b948ad4..9eacf9250cd 100644 --- a/net/netatalk/pkg-plist +++ b/net/netatalk/pkg-plist @@ -29,14 +29,6 @@ include/atalk/paths.h include/atalk/rtmp.h include/atalk/zip.h @dirrm include/atalk -include/netatalk/aarp.h -include/netatalk/at.h -include/netatalk/at_var.h -include/netatalk/ddp.h -include/netatalk/ddp_var.h -include/netatalk/endian.h -include/netatalk/phase2.h -@dirrm include/netatalk lib/libatalk.a lib/libatalk_p.a libexec/afpd @@ -45,28 +37,6 @@ libexec/etc2ps libexec/papd libexec/psa libexec/psf -man/man1/aecho.1 -man/man1/getzones.1 -man/man1/hqx2bin.1 -man/man1/macbinary.1 -man/man1/megatron.1 -man/man1/nbp.1 -man/man1/nbplkup.1 -man/man1/nbprgstr.1 -man/man1/pap.1 -man/man1/papstatus.1 -man/man1/psorder.1 -man/man1/single2bin.1 -man/man1/unbin.1 -man/man1/unhex.1 -man/man1/unsingle.1 -man/man3/atalk_aton.3 -man/man3/nbp_name.3 -man/man4/atalk.4 -man/man8/afpd.8 -man/man8/atalkd.8 -man/man8/papd.8 -man/man8/psf.8 share/examples/netatalk/atalkd.conf share/examples/netatalk/papd.conf @dirrm share/examples/netatalk @@ -92,3 +62,14 @@ share/filters/tfwpap share/filters/tfwpaprev @dirrm share/filters share/pagecount.ps +@comment Remove man page aliases +@unexec rm -f %D/man/man1/hqx2bin.1* +@unexec rm -f %D/man/man1/macbinary.1* +@unexec rm -f %D/man/man1/single2bin.1* +@unexec rm -f %D/man/man1/unbin.1* +@unexec rm -f %D/man/man1/unhex.1* +@unexec rm -f %D/man/man1/unsingle.1* +@unexec rm -f %D/man/man1/nbplkup.1* +@unexec rm -f %D/man/man1/nbprgstr.1* +@unexec rm -f %D/man/man1/nbpunrgstr.1* +@unexec rm -f %D/man/man1/papstatus.1* |