mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
26ee3fcc39
FIXES 1363 * Allow AFS to be mounted multiple times, each mountpoint with its own root volume. This allows usage similar to the Windows client, e.g., mounting a drive that contains only the user's home directory. Our users find this much easier to work with than having to navigate the entire AFS tree in the Finder or open/save dialog. * Have afsd register /afs with the DiskArbitration system when mounting it. This means that the root afs volume shows up in the Finder immediately, and prevents the Finder from getting confused by additional AFS volumes later on. * Add a "-nomount" option to afsd, which prevents afsd from mounting /afs. We use this by default on our Mac OS X client, so that AFS doesn't show up in the interface at all unless the user explicitly asks for an AFS volume to be mounted. This is especially handy for portable or remote users who don't always have a network connection, since there isn't an AFS filesystem around to hang the Finder if the AFS servers can't be contacted (the cache manager may still hang, but since there are no AFS volumes mounted, the rest of the OS doesn't notice). * Make it so that /afs (mounted by afsd) will not unmount unless MNT_FORCE is given. This prevents the user from accidentally ejecting /afs in the Finder, and also works around a DiskArb bug in Mac OS X (possibly fixed in 10.2) where autodiskmount would sometimes unmount /afs when logging out, even though it's marked as non-ejectable.
110 lines
4.3 KiB
Makefile
110 lines
4.3 KiB
Makefile
##XLATE_MANUAL##
|
|
# Copyright 2000, International Business Machines Corporation and others.
|
|
# All Rights Reserved.
|
|
#
|
|
# This software has been released under the terms of the IBM Public
|
|
# License. For details, see the LICENSE file in the top-level source
|
|
# directory or online at http://www.openafs.org/dl/license10.html
|
|
|
|
srcdir=@srcdir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
LDFLAGS = ${XLDFLAGS}
|
|
|
|
#
|
|
# What to make
|
|
#
|
|
all: afsd vsys
|
|
|
|
#
|
|
# Programs
|
|
#
|
|
|
|
AFSLIBS=${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
|
|
|
|
afsd: afsd.o $(AFSLIBS) $(AFSD_LIBS)
|
|
${CC} ${CFLAGS} -o afsd afsd.o $(NON_SHARED) $(LDFLAGS) $(AFSD_LDFLAGS) $(AFSLIBS) ${XLIBS} ${AFSD_LIBS}
|
|
|
|
vsys: vsys.o
|
|
${CC} ${CFLAGS} -o vsys vsys.o ${TOP_LIBDIR}/libsys.a $(LDFLAGS) ${XLIBS}
|
|
|
|
#
|
|
# Objects
|
|
#
|
|
afsd.o: afsd.c AFS_component_version_number.c
|
|
|
|
vsys.o: vsys.c AFS_component_version_number.c
|
|
|
|
clean:
|
|
$(RM) -f *.o vsys afsd core AFS_component_version_number.c
|
|
|
|
system: install
|
|
|
|
# XXX-INST: where to put the rc scripts?
|
|
install: ${DESTDIR}${sbindir}/afsd ${DESTDIR}${sbindir}/vsys
|
|
|
|
${DESTDIR}${sbindir}/afsd: afsd
|
|
${INSTALL} $? $@
|
|
|
|
${DESTDIR}${sbindir}/vsys: vsys
|
|
${INSTALL} $? $@
|
|
|
|
|
|
dest: ${DEST}/root.client/usr/vice/etc/afsd ${DEST}/etc/vsys
|
|
case ${SYS_NAME} in \
|
|
rs_aix*) \
|
|
${INSTALL} -f ${srcdir}/rc.afs.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.afs ; \
|
|
${INSTALL} -f ${srcdir}/rc.dkload.client.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.dkload.client ; \
|
|
${INSTALL} -f ${srcdir}/rc.dkload.server.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.dkload.server ;; \
|
|
sgi_65 ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.sgi_ipnos ${DEST}/root.client/usr/vice/etc/sgiload/afs.rc ;\
|
|
${INSTALL} -f ${srcdir}/afs.rc.sgi_ipnos ${DEST}/root.server/etc/init.d/afs.rc ;;\
|
|
sgi_* ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.sgi ${DEST}/root.client/usr/vice/etc/sgiload/afs.rc ;\
|
|
${INSTALL} -f ${srcdir}/afs.rc.sgi ${DEST}/root.server/etc/init.d/afs.rc ;\
|
|
case ${SYS_NAME} in \
|
|
sgi_53 | sgi_61 ) \
|
|
${INSTALL} -f ${srcdir}/afs_rtsymtab.pl.${SYS_NAME} ${DEST}/root.client/usr/vice/etc/sgiload/afs_rtsymtab.pl ;;\
|
|
esac;; \
|
|
sun4_52 | sun4_53 | sun4c_52 | sun4c_53 | sun4m_52 | sun4m_53 | sun4m_54 | sun4_54 | sun4c_54 | sunx86_54) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.solaris ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
|
|
sun*_57 ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.solaris.2.7 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
|
|
sun*_58 ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.solaris.2.8 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
|
|
sun*_59 ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.solaris.2.9 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
|
|
sun4x_5? ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.solaris.2_5 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
|
|
alpha_osf* ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.alpha ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
|
|
hp_ux1122 ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;\
|
|
${INSTALL} -f ${srcdir}/afs.hpux1122.driver ${DEST}/root.client/usr/vice/etc/afs.driver ;;\
|
|
hp_ux10? | hp_ux11? ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;\
|
|
${INSTALL} -f ${srcdir}/afs.hpux102.driver ${DEST}/root.client/usr/vice/etc/afs.driver ;;\
|
|
alpha_dux* ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.alpha_dux40 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
|
|
hp?00_ux10? ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
|
|
*linux* ) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.linux -m 755 ${DEST}/root.client/usr/vice/etc/afs.rc; \
|
|
${INSTALL} -f ${srcdir}/afs.conf.linux ${DEST}/root.client/usr/vice/etc/afs.conf ;; \
|
|
ppc_darwin*) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.darwin -m 755 ${DEST}/root.client/usr/vice/etc/afs.rc ; \
|
|
${INSTALL} -f ${srcdir}/afs.rc.darwin.plist ${DEST}/root.client/usr/vice/etc/StartupParameters.plist ;; \
|
|
*fbsd*) \
|
|
${INSTALL} -f ${srcdir}/afs.rc.fbsd ${DEST}/root.client/usr/vice/etc/afs.rc.fbsd ;; \
|
|
* ) \
|
|
echo No rc scripts installed for ${SYS_NAME} ;; \
|
|
esac
|
|
|
|
${DEST}/root.client/usr/vice/etc/afsd: afsd
|
|
${INSTALL} $? $@
|
|
|
|
${DEST}/etc/vsys: vsys
|
|
${INSTALL} $? $@
|
|
|
|
include ../config/Makefile.version
|