From a51398a16a740152f0b36a4730bbd7e7df544b4e Mon Sep 17 00:00:00 2001 From: rufustfirefly Date: Thu, 27 Jul 2000 20:27:29 +0000 Subject: [PATCH] Major automake/autoconf commit. Not working yet. --- INSTALL/Makefile.am | 3 + Makefile.am | 8 ++ VERSION | 2 +- bin/Makefile.am | 3 + bin/adv1tov2/Makefile.am | 8 ++ bin/aecho/Makefile.am | 8 ++ bin/afppasswd/Makefile.am | 8 ++ bin/getzones/Makefile.am | 8 ++ bin/megatron/Makefile.am | 14 ++ bin/nbp/Makefile.am | 14 ++ bin/pap/Makefile.am | 11 ++ bin/psorder/Makefile.am | 10 ++ configure.in | 117 ++++++++++++++++ contrib/Makefile.am | 5 + contrib/printing/Makefile.am | 5 + distrib/Makefile.am | 3 + etc/afpd/Makefile.am | 7 +- etc/afpd/nls/Makefile.am | 2 + etc/atalkd/Makefile.am | 10 ++ etc/papd/Makefile.am | 10 ++ etc/psf/Makefile.am | 13 ++ etc/uams/Makefile.am | 14 ++ include/Makefile.am | 3 + include/atalk/Makefile.am | 3 + install-sh | 250 +++++++++++++++++++++++++++++++++++ libatalk/Makefile.am | 8 ++ libatalk/adouble/Makefile.am | 9 ++ libatalk/asp/Makefile.am | 9 ++ libatalk/atp/Makefile.am | 9 ++ libatalk/cnid/Makefile.am | 11 ++ libatalk/compat/Makefile.am | 7 + libatalk/dsi/Makefile.am | 9 ++ libatalk/nbp/Makefile.am | 9 ++ libatalk/netddp/Makefile.am | 7 + libatalk/pap/Makefile.am | 9 ++ libatalk/util/Makefile.am | 7 + 36 files changed, 628 insertions(+), 5 deletions(-) create mode 100644 INSTALL/Makefile.am create mode 100644 Makefile.am create mode 100644 bin/Makefile.am create mode 100644 bin/adv1tov2/Makefile.am create mode 100644 bin/aecho/Makefile.am create mode 100644 bin/afppasswd/Makefile.am create mode 100644 bin/getzones/Makefile.am create mode 100644 bin/megatron/Makefile.am create mode 100644 bin/nbp/Makefile.am create mode 100644 bin/pap/Makefile.am create mode 100644 bin/psorder/Makefile.am create mode 100644 configure.in create mode 100644 contrib/Makefile.am create mode 100644 contrib/printing/Makefile.am create mode 100644 distrib/Makefile.am create mode 100644 etc/atalkd/Makefile.am create mode 100644 etc/papd/Makefile.am create mode 100644 etc/psf/Makefile.am create mode 100644 etc/uams/Makefile.am create mode 100644 include/Makefile.am create mode 100644 include/atalk/Makefile.am create mode 100755 install-sh create mode 100644 libatalk/Makefile.am create mode 100644 libatalk/adouble/Makefile.am create mode 100644 libatalk/asp/Makefile.am create mode 100644 libatalk/atp/Makefile.am create mode 100644 libatalk/cnid/Makefile.am create mode 100644 libatalk/compat/Makefile.am create mode 100644 libatalk/dsi/Makefile.am create mode 100644 libatalk/nbp/Makefile.am create mode 100644 libatalk/netddp/Makefile.am create mode 100644 libatalk/pap/Makefile.am create mode 100644 libatalk/util/Makefile.am diff --git a/INSTALL/Makefile.am b/INSTALL/Makefile.am new file mode 100644 index 00000000..904eed94 --- /dev/null +++ b/INSTALL/Makefile.am @@ -0,0 +1,3 @@ +# Makefile.am for INSTALL/ + +EXTRA_DIST = README.AFS README.FREEBSD README.GENERIC README.LINUX README.NETBSD README.OPENBSD README.SOLARIS README.SUNOS README.ULTRIX diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..5a6cf759 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for top level of netatalk package + +SUBDIRS = libatalk include bin etc man +# these later : config contrib distrib + +EXTRA_DIST = BUGS CHANGES CONTRIBUTORS COPYRIGHT ChangeLog README README.ASUN TODO VERSION services.atalk + +bin_SCRIPTS = lp2pap.sh diff --git a/VERSION b/VERSION index b3f2fbef..c239c60c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4b2+asun2.1.4 +1.5 diff --git a/bin/Makefile.am b/bin/Makefile.am new file mode 100644 index 00000000..76fc71a0 --- /dev/null +++ b/bin/Makefile.am @@ -0,0 +1,3 @@ +# Makefile.am for bin/ + +SUBDIRS = adv1tov2 aecho afppasswd getzones megatron nbp pap psorder diff --git a/bin/adv1tov2/Makefile.am b/bin/adv1tov2/Makefile.am new file mode 100644 index 00000000..f410ba69 --- /dev/null +++ b/bin/adv1tov2/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for bin/adv1tov2/ + +bin_PROGRAMS = adv1tov2 + +adv1tov2_SOURCES = adv1tov2.c +adv1tov2_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/aecho/Makefile.am b/bin/aecho/Makefile.am new file mode 100644 index 00000000..cb67d067 --- /dev/null +++ b/bin/aecho/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for bin/aecho/ + +bin_PROGRAMS = aecho + +aecho_SOURCES = aecho.c +aecho_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/afppasswd/Makefile.am b/bin/afppasswd/Makefile.am new file mode 100644 index 00000000..073eec0a --- /dev/null +++ b/bin/afppasswd/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for bin/afppasswd/ + +bin_PROGRAMS = afppasswd + +afppasswd_SOURCES = afppasswd.c +afppasswd_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/getzones/Makefile.am b/bin/getzones/Makefile.am new file mode 100644 index 00000000..db09a278 --- /dev/null +++ b/bin/getzones/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for bin/getzones/ + +bin_PROGRAMS = getzones + +getzones_SOURCES = getzones.c +getzones_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/megatron/Makefile.am b/bin/megatron/Makefile.am new file mode 100644 index 00000000..c8438a1f --- /dev/null +++ b/bin/megatron/Makefile.am @@ -0,0 +1,14 @@ +# Makefile.am for bin/megatron/ + +bin_PROGRAMS = megatron + +megatron_SOURCES = asingle.c hqx.c macbin.c megatron.c nad.c asingle.c updcrc.c +megatron_LDADD = ../../libatalk/libatalk.a + +noinst_HEADERS = megatron.h + +CFLAGS = @CFLAGS@ -I../../include + +# ************************************************ +# FIXME! FIXME! Links need to work for: +# LINKS = unbin unhex unsingle hqx2bin single2bin macbinary binheader nadheader diff --git a/bin/nbp/Makefile.am b/bin/nbp/Makefile.am new file mode 100644 index 00000000..15ff6c3d --- /dev/null +++ b/bin/nbp/Makefile.am @@ -0,0 +1,14 @@ +# Makefile.am for bin/nbp/ + +bin_PROGRAMS = nbplkup nbprgstr nbpunrgstr + +nbplkup_SOURCES = nbplkup.c +nbplkup_LDADD = ../../libatalk/libatalk.a + +nbprgstr_SOURCES = nbprgstr.c +nbprgstr_LDADD = ../../libatalk/libatalk.a + +nbpunrgstr_SOURCES = nbpunrgstr.c +nbpunrgstr_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/pap/Makefile.am b/bin/pap/Makefile.am new file mode 100644 index 00000000..4369f123 --- /dev/null +++ b/bin/pap/Makefile.am @@ -0,0 +1,11 @@ +# Makefile.am for bin/pap/ + +bin_PROGRAMS = pap papstatus + +pap_SOURCES = pap.c +pap_LDADD = ../../libatalk/libatalk.a + +papstatus_SOURCES = papstatus.c +papstatus_LDADD = ../../libatalk/libatalk.a + +CFLAGS = @CFLAGS@ -I../../include diff --git a/bin/psorder/Makefile.am b/bin/psorder/Makefile.am new file mode 100644 index 00000000..1073f8e9 --- /dev/null +++ b/bin/psorder/Makefile.am @@ -0,0 +1,10 @@ +# Makefile.am for bin/psorder + +bin_PROGRAMS = psorder + +psorder_SOURCES = psorder.c pa.c +psorder_LDADD = ../../libatalk/libatalk.a + +noinst_HEADERS = psorder.h pa.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/configure.in b/configure.in new file mode 100644 index 00000000..2f870795 --- /dev/null +++ b/configure.in @@ -0,0 +1,117 @@ +dnl configure.in for netatalk + +AC_INIT(bin/adv1tov2/adv1tov2.c) +AM_INIT_AUTOMAKE([netatalk], [1.5]) + +dnl Checks for programs. +AC_PROG_AWK +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PROG_RANLIB + +dnl ********************************************************************* +dnl FIXME! FIXME! These should be selectable properly, and should produce +dnl the proper flags and defines... +dnl ********************************************************************* + +dnl Checks for libraries. +dnl Replace `main' with a function in -labs: +AC_CHECK_LIB(abs, main) +dnl Replace `main' with a function in -latalk: +dnl (internal) AC_CHECK_LIB(atalk, main) +dnl Replace `main' with a function in -laudit: +AC_CHECK_LIB(audit, main) +dnl Replace `main' with a function in -lauth: +AC_CHECK_LIB(auth, main) +dnl Replace `main' with a function in -lcmd: +AC_CHECK_LIB(cmd, main) +dnl Replace `main' with a function in -lcom_err: +AC_CHECK_LIB(com_err, main) +dnl Replace `main' with a function in -lcrack: +AC_CHECK_LIB(crack, main) +dnl Replace `main' with a function in -lcrypt: +AC_CHECK_LIB(crypt, main) +dnl Replace `main' with a function in -lcrypto: +AC_CHECK_LIB(crypto, main) +dnl Replace `main' with a function in -ld: +AC_CHECK_LIB(d, main) +dnl Replace `main' with a function in -ldb: +AC_CHECK_LIB(db, main) +dnl Replace `main' with a function in -ldes: +AC_CHECK_LIB(des, main) +dnl Replace `main' with a function in -ldl: +AC_CHECK_LIB(dl, main) +dnl Replace `main' with a function in -lkauth: +AC_CHECK_LIB(kauth, main) +dnl Replace `main' with a function in -lkrb: +AC_CHECK_LIB(krb, main) +dnl Replace `main' with a function in -llwp: +AC_CHECK_LIB(lwp, main) +dnl Replace `main' with a function in -ln: +AC_CHECK_LIB(n, main) +dnl Replace `main' with a function in -lnsl: +AC_CHECK_LIB(nsl, main) +dnl Replace `main' with a function in -lpam: +AC_CHECK_LIB(pam, main) +dnl Replace `main' with a function in -lprot: +AC_CHECK_LIB(prot, main) +dnl Replace `main' with a function in -lresolv: +AC_CHECK_LIB(resolv, main) +dnl Replace `main' with a function in -lrpcsvc: +AC_CHECK_LIB(rpcsvc, main) +dnl Replace `main' with a function in -lrx: +AC_CHECK_LIB(rx, main) +dnl Replace `main' with a function in -lrxkad: +AC_CHECK_LIB(rxkad, main) +dnl Replace `main' with a function in -lsocket: +AC_CHECK_LIB(socket, main) +dnl Replace `main' with a function in -lsys: +AC_CHECK_LIB(sys, main) +dnl Replace `main' with a function in -lubik: +AC_CHECK_LIB(ubik, main) +dnl Replace `main' with a function in -lwrap: +AC_CHECK_LIB(wrap, main) + +dnl Checks for header files. +AC_HEADER_DIRENT +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_UID_T +AC_C_INLINE +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_STRUCT_ST_RDEV +AC_HEADER_TIME +AC_STRUCT_TM + +dnl Checks for library functions. +AC_TYPE_GETGROUPS +AC_PROG_GCC_TRADITIONAL +AC_FUNC_MEMCMP +AC_HEADER_MAJOR +AC_FUNC_MMAP +AC_TYPE_SIGNAL +AC_FUNC_UTIME_NULL +AC_FUNC_WAIT3 +AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul) + +dnl -------------------------------------------------------------------------- +dnl specific configuration comes in here: +dnl -------------------------------------------------------------------------- + +AC_ARG_ENABLE(shadow, + [ --with-shadow enable shadow password support], + AC_DEFINE(SHADOWPW) +) + +dnl List of Makefiles to generate + +AC_OUTPUT(libatalk/nbp/Makefile etc/psf/Makefile sys/ultrix/Makefile libatalk/compat/Makefile sys/openbsd/Makefile bin/Makefile man/man4/Makefile etc/atalkd/Makefile etc/Makefile sys/linux/Makefile man/man8/Makefile etc/uams/Makefile etc/afpd/nls/Makefile libatalk/Makefile bin/megatron/Makefile sys/sunos/Makefile bin/psorder/Makefile sys/osx/Makefile bin/aecho/Makefile sys/freebsd/Makefile sys/solaris/Makefile etc/papd/Makefile libatalk/util/Makefile bin/afppasswd/Makefile Makefile libatalk/dsi/Makefile bin/getzones/Makefile libatalk/asp/Makefile libatalk/atp/Makefile man/man1/Makefile man/man3/Makefile man/Makefile bin/adv1tov2/Makefile include/Makefile etc/afpd/Makefile bin/nbp/Makefile bin/pap/Makefile sys/generic/Makefile sys/netbsd/Makefile libatalk/adouble/Makefile libatalk/cnid/Makefile libatalk/netddp/Makefile) diff --git a/contrib/Makefile.am b/contrib/Makefile.am new file mode 100644 index 00000000..570ee302 --- /dev/null +++ b/contrib/Makefile.am @@ -0,0 +1,5 @@ +# Makefile.am for contrib/ + +SUBDIRS = printing + +EXTRA_DIST = ICDumpSuffixMap diff --git a/contrib/printing/Makefile.am b/contrib/printing/Makefile.am new file mode 100644 index 00000000..b8964ef3 --- /dev/null +++ b/contrib/printing/Makefile.am @@ -0,0 +1,5 @@ +# Makefile.am for contrib/printing/ + +bin_SCRIPTS = add_netatalk_printer + +EXTRA_DIST = netatalk.template timeout.c diff --git a/distrib/Makefile.am b/distrib/Makefile.am new file mode 100644 index 00000000..80f17788 --- /dev/null +++ b/distrib/Makefile.am @@ -0,0 +1,3 @@ +# Makefile.am for distrib/ + +# currently nothing... diff --git a/etc/afpd/Makefile.am b/etc/afpd/Makefile.am index 5e42861b..b7a9f3d0 100644 --- a/etc/afpd/Makefile.am +++ b/etc/afpd/Makefile.am @@ -7,6 +7,8 @@ sbin_PROGRAMS = afpd afpd_SOURCES = unix.c ofork.c main.c switch.c auth.c volume.c directory.c file.c enumerate.c desktop.c filedir.c fork.c appl.c gettok.c status.c afp_options.c afp_asp.c afp_dsi.c messages.c config.c nfsquota.c codepage.c quota.c uam.c afs.c afpd_LDADD = afpd_options.o +noinst_HEADERS = auth.h codepage.h config.h desktop.h directory.h file.h filedir.h fork.h globals.h icon.h misc.h status.h switch.h uam_auth.h unix.h volume.h + afpd_options.o: afp_options.c ${COMPILE} \ -D_PATH_AFPDDEFVOL=\"${ETCDIR}/AppleVolumes.default\" \ @@ -17,7 +19,4 @@ afpd_options.o: afp_options.c -D_PATH_AFPDNLSPATH=\"${RESDIR}/nls/\" \ -o afp_options.o -c afp_options.c -config.o: config.c - ${COMPILE} \ - -DVERSION=\"`cat ../../VERSION`\" \ - -o config.o -c config.c +CFLAGS = @CFLAGS@ -I../../include diff --git a/etc/afpd/nls/Makefile.am b/etc/afpd/nls/Makefile.am index 4da641f6..9ddc4406 100644 --- a/etc/afpd/nls/Makefile.am +++ b/etc/afpd/nls/Makefile.am @@ -4,3 +4,5 @@ bin_PROGRAMS = makecode parsecode makecode_SOURCES = makecode.c parsecode_SOURCES = parsecode.c + +CFLAGS = @CFLAGS@ -I../../../include diff --git a/etc/atalkd/Makefile.am b/etc/atalkd/Makefile.am new file mode 100644 index 00000000..e593f728 --- /dev/null +++ b/etc/atalkd/Makefile.am @@ -0,0 +1,10 @@ +# Makefile.am for etc/atalkd/ + +sbin_PROGRAMS = atalkd + +atalkd_SOURCES = aep.c config.c main.c multicast.c nbp.c route.c rtmp.c zip.c +atalkd_LDADD = ../../libatalk/libatalk.a + +noinst_HEADERS = atserv.h gate.h interface.h list.h multicast.h nbp.h rtmp.h zip.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/etc/papd/Makefile.am b/etc/papd/Makefile.am new file mode 100644 index 00000000..69a11584 --- /dev/null +++ b/etc/papd/Makefile.am @@ -0,0 +1,10 @@ +# Makefile.am for etc/papd/ + +sbin_PROGRAMS = papd + +papd_SOURCES = comment.c file.c headers.c lp.c magics.c main.c ppd.c printcap.c queries.c session.c +papd_LDADD = ../../libatalk/libatalk.a + +noinst_HEADERS = comment.h file.h ppd.h printer.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/etc/psf/Makefile.am b/etc/psf/Makefile.am new file mode 100644 index 00000000..fe3e1391 --- /dev/null +++ b/etc/psf/Makefile.am @@ -0,0 +1,13 @@ +# Makefile.am for etc/psf/ + +sbin_PROGRAMS = psf psa + +psf_SOURCES = psf.c +psa_SOURCES = psa.c + +CFLAGS = @CFLAGS@ -I../../include + +# how to do symbolic links to psf??? +# LINKS = ofpap ifpap tfpap ifpaprev tfpaprev ofwpap ifwpap tfwpap ifwpaprev tfwpaprev ofmpap ifmpap tfmpap ifmpaprev tfmpaprev ofwmpap ifwmpap tfwmpap ifwmpaprev tfwmpaprev + +# also need to pass the psf compilation defines here diff --git a/etc/uams/Makefile.am b/etc/uams/Makefile.am new file mode 100644 index 00000000..153f7888 --- /dev/null +++ b/etc/uams/Makefile.am @@ -0,0 +1,14 @@ +# Makefile.am for etc/uams/ + +#SUBDIRS = uams_krb4 + +uams_LTLIBRARIES = uams_dhx_pam.la uams_dhx.passwd.la uams_guest.la uams_pam.la uams_pgp.la uams_randnum.la + +uams_dhx_pam_la_SOURCES = uams_dhx_pam.c +uams_dhx_passwd_la_SOURCES = uams_dhx_passwd.c +uams_guest_la_SOURCES = uams_guest.c +uams_pam_la_SOURCES = uams_pam.c +uams_pgp_la_SOURCES = uams_pgp.c +uams_randnum_la_SOURCES = uams_randnum.c + +CFLAGS = @CFLAGS@ -I../../include diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 00000000..88e75d29 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,3 @@ +# Makefile.am for include/ + +SUBDIRS = atalk diff --git a/include/atalk/Makefile.am b/include/atalk/Makefile.am new file mode 100644 index 00000000..608ab812 --- /dev/null +++ b/include/atalk/Makefile.am @@ -0,0 +1,3 @@ +# Makefile.am for include/atalk/ + +include_HEADERS = adouble.h aep.h afp.h asp.h atp.h cnid.h compat.h ddp.h dsi.h nbp.h netddp.h pap.h paths.h rtmp.h server_child.h uam.h util.h zip.h diff --git a/install-sh b/install-sh new file mode 100755 index 00000000..e8436696 --- /dev/null +++ b/install-sh @@ -0,0 +1,250 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff --git a/libatalk/Makefile.am b/libatalk/Makefile.am new file mode 100644 index 00000000..32d942c5 --- /dev/null +++ b/libatalk/Makefile.am @@ -0,0 +1,8 @@ +# Makefile.am for libatalk/ + +SUBDIRS = adouble asp atp cnid compat dsi nbp netddp pap util + +lib_LIBRARIES = libatalk.a + +libatalk_a_SOURCES = +libatalk_a_LIBADD = asp/libasp.a atp/libatp.a nbp/libnbp.a adouble/libadouble.a dsi/libdsi.a util/libutil.a compat/libcompat.a netddp/libnetddp.a diff --git a/libatalk/adouble/Makefile.am b/libatalk/adouble/Makefile.am new file mode 100644 index 00000000..66e06697 --- /dev/null +++ b/libatalk/adouble/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/adouble/ + +noinst_LIBRARIES = libadouble.a + +libadouble_a_SOURCES = ad_open.c ad_flush.c ad_read.c ad_write.c ad_size.c ad_mmap.c ad_lock.c ad_date.c ad_attr.c ad_sendfile.c + +noinst_HEADERS = ad_private.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/asp/Makefile.am b/libatalk/asp/Makefile.am new file mode 100644 index 00000000..0ec1daed --- /dev/null +++ b/libatalk/asp/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/asp/ + +noinst_LIBRARIES = libasp.a + +libasp_a_SOURCES = asp_attn.c asp_close.c asp_cmdreply.c asp_getreq.c asp_getsess.c asp_init.c asp_write.c asp_shutdown.c asp_tickle.c + +noinst_HEADERS = asp_child.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/atp/Makefile.am b/libatalk/atp/Makefile.am new file mode 100644 index 00000000..1317b5cd --- /dev/null +++ b/libatalk/atp/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/atp/ + +noinst_LIBRARIES = libatp.a + +libatp_a_SOURCES = atp_bprint.c atp_bufs.c atp_close.c atp_open.c atp_packet.c atp_rreq.c atp_rresp.c atp_rsel.c atp_sreq.c atp_sresp.c + +noinst_HEADERS = atp_internals.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/cnid/Makefile.am b/libatalk/cnid/Makefile.am new file mode 100644 index 00000000..0e86fdb4 --- /dev/null +++ b/libatalk/cnid/Makefile.am @@ -0,0 +1,11 @@ +# Makefile.am for libatalk/cnid/ + +noinst_LIBRARIES = libcnid.a + +libcnid_a_SOURCES = cnid_add.c cnid_close.c cnid_delete.c cnid_get.c cnid_lookup.c cnid_meta.c cnid_nextid.c cnid_open.c cnid_resolve.c cnid_update.c + +noinst_HEADERS = cnid_meta.h cnid_private.h + +EXTRA_DIST = README + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/compat/Makefile.am b/libatalk/compat/Makefile.am new file mode 100644 index 00000000..e8965a1d --- /dev/null +++ b/libatalk/compat/Makefile.am @@ -0,0 +1,7 @@ +# Makefile.am for libatalk/compat/ + +noinst_LIBRARIES = libcompat.a + +libcompat_a_SOURCES = mktemp.c getusershell.c strcasecmp.c strstr.c flock.c strdup.c inet_aton.c rquota_xdr.c + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/dsi/Makefile.am b/libatalk/dsi/Makefile.am new file mode 100644 index 00000000..24361aba --- /dev/null +++ b/libatalk/dsi/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/dsi/ + +noinst_LIBRARIES = libdsi.a + +libdsi_a_SOURCES = dsi_attn.c dsi_close.c dsi_cmdreply.c dsi_getsess.c dsi_getstat.c dsi_init.c dsi_opensess.c dsi_read.c dsi_tcp.c dsi_tickle.c dsi_write.c dsi_stream.c + +noinst_HEADERS = dsi_private.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/nbp/Makefile.am b/libatalk/nbp/Makefile.am new file mode 100644 index 00000000..3e9388a0 --- /dev/null +++ b/libatalk/nbp/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/nbp/ + +noinst_LIBRARIES = libnbp.a + +libnbp_a_SOURCES = nbp_util.c nbp_lkup.c nbp_rgstr.c nbp_unrgstr.c + +noinst_HEADERS = nbp_conf.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/netddp/Makefile.am b/libatalk/netddp/Makefile.am new file mode 100644 index 00000000..802a5aaa --- /dev/null +++ b/libatalk/netddp/Makefile.am @@ -0,0 +1,7 @@ +# Makefile.am for libatalk/netddp/ + +noinst_LIBRARIES = libnetddp.a + +libnetddp_a_SOURCES = netddp_open.c netddp_sendto.c netddp_recvfrom.c + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/pap/Makefile.am b/libatalk/pap/Makefile.am new file mode 100644 index 00000000..6b567512 --- /dev/null +++ b/libatalk/pap/Makefile.am @@ -0,0 +1,9 @@ +# Makefile.am for libatalk/pap/ + +noinst_LIBRARIES = libpap.a + +libpap_a_SOURCES = pap_close.c pap_init.c pap_open.c pap_read.c pap_sendstatus.c pap_slinit pap_tickle.c + +noinst_HEADERS = pap_child.h + +CFLAGS = @CFLAGS@ -I../../include diff --git a/libatalk/util/Makefile.am b/libatalk/util/Makefile.am new file mode 100644 index 00000000..2832ddbe --- /dev/null +++ b/libatalk/util/Makefile.am @@ -0,0 +1,7 @@ +# Makefile.am for libatalk/util/ + +noinst_LIBRARIES = libutil.a + +libutil_a_SOURCES = atalk_addr.c strdicasecmp.c server_child.c server_lock.c module.c bprint.c getiface.c + +CFLAGS = @CFLAGS@ -I../../include -- 2.39.2