1 # Root of installation. Subdirectories will be ${DESTDIR}/etc,
2 # ${DESTDIR}/bin, and ${DESTDIR}/lib.
3 DESTDIR=/usr/local/atalk
5 # for system-level binaries
6 SBINDIR=$(DESTDIR)/sbin
7 # for user-level binaries
9 # for program libraries (*.a)
11 # for machine-independent resources (pagecount.ps, etc.)
13 # for configuration files (AppleVolumes.system, etc.)
16 INCDIR=$(DESTDIR)/include
17 # Root of man pages. Subdirectories will be
18 # ${MANDIR}/man1, ${MANDIR}/man4, and ${MANDIR}/man8.
22 #SBINDIR=${INSTALL_PREFIX}/usr/sbin
23 #BINDIR=${INSTALL_PREFIX}/usr/bin
24 #LIBDIR=${INSTALL_PREFIX}/usr/lib
25 #RESDIR=${INSTALL_PREFIX}/usr/lib/atalk
26 #ETCDIR=${INSTALL_PREFIX}/etc/atalk
27 #INCDIR=${INSTALL_PREFIX}/usr/include
28 #MANDIR=${INSTALL_PREFIX}/usr/man
30 # Location of the Berkeley v2 db library and include files.
31 # NOTE: leave this commented out for now. it's a placeholder for a future
33 #DB2DIR=/usr/local/BerkeleyDB
35 # Location of the Diffie-Hellman library and include files. Uncomment
36 # this out if you want DHX as an allowable UAM for afpd. Currently,
37 # this is set up expecting libcrypto from the openssl project. As a
38 # result, this option will enable all of the encrypted authentication
39 # methods (including the Randnum Exchange ones). DHX expects cast.h,
40 # dh.h, and bn.h in $CRYPTODIR/include with -lcrypto in
41 # $CRYPTODIR/lib. NOTE: os x server will complain if you use both
42 # randnum exchange and DHX.
43 CRYPTODIR=/usr/local/ssl
45 # Location of the DES library and include files. Uncomment this out if
46 # you want Randnum Exchange and 2-Way Randnum Exchange as allowable
47 # UAMs for afpd. We expect libdes.a in $DESDIR/lib and des.h in
48 # $DESDIR/include. This option will get overridden by CRYPTODIR.
51 # Location of the tcp wrapper library and include files. Comment this out
52 # if you don't want tcp wrapper support. having tcp wrapper support is
56 # Location of PAM support library and include files. Uncomment this if
57 # you want to enable PAM support.
60 # Location of cracklib support library and include files. This is used
61 # in the password changing routines. Uncomment this out if you want to
66 # Location of the AFS and Kerberos libraries and include files. Uncomment
67 # and edit these if you want to include AFS or Kerberos support in afpd
68 # or Kerberos support in papd.
69 #AFSDIR=/usr/local/afs
70 #KRBDIR=/usr/local/kerberos
72 # Directory to store node addresses and login names for CAP style
73 # authenticated printing. CAP style authenticated printing requires
74 # that a user mount an appletalk share before they can print. Afpd
75 # stores the username in a file named after the Appletalk address which
76 # papd reads to determine if the user is allowed to print. These files
77 # will be stored in the directory below. Unfortunately, because afpd
78 # drops privledges, this directory must be writable by any user which
79 # connects to the server. Usually, this means public write access (777
80 # permissions). Uncomment and edit the path if you want CAP style
81 # authenticated printing support in afpd and papd.
82 #CAPDIR=/var/spool/capsec
84 ##########################################################################
85 all install depend clean tags kernel kinstall kpatch: FRC
86 @case `uname -rs` in \
87 "SunOS 4"*) ARCH=sunos \
89 "SunOS 5"*) ARCH=solaris \
91 ULTRIX*) ARCH=ultrix \
95 FreeBSD*) ARCH=freebsd \
97 NetBSD*) ARCH=netbsd \
99 OpenBSD*) ARCH=openbsd \
101 Rhapsody*) ARCH=osx \
106 echo "Making $@ for $$ARCH..."; \
107 cd sys/$$ARCH && ${MAKE} ${MFLAGS} \
108 SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}"\
109 ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
110 DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \
111 TCPWRAPDIR="${TCPWRAPDIR}" PAMDIR="${PAMDIR}" DB2DIR="${DB2DIR}" \
112 AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" DESDIR="${DESDIR}" \
113 CRYPTODIR="${CRYPTODIR}" CRACKDIR="${CRACKDIR}" \
115 OSVERSION="`uname -r`" MACHINETYPE="`uname -m`" \
118 FRC: include/netatalk
121 -ln -s ../sys/netatalk include/netatalk
123 SYS=sunos ultrix solaris
124 VERSION=`date +%y%m%d`
125 DISTDIR=../netatalk-${VERSION}
129 do (cd sys/$$i; ${MAKE} ${MFLAGS} sysclean); \
132 dist : sysclean clean
134 tar cfFFX - EXCLUDE . | (cd ${DISTDIR}; tar xvf - )
135 chmod +w ${DISTDIR}/Makefile ${DISTDIR}/include/atalk/paths.h \
136 ${DISTDIR}/sys/solaris/Makefile
137 echo ${VERSION} > ${DISTDIR}/VERSION