]> arthur.barton.de Git - netatalk.git/blob - Makefile
The first half of changes necessary for CAP style authenticated printing. These...
[netatalk.git] / Makefile
1 # Root of installation. Subdirectories will be ${DESTDIR}/etc,
2 # ${DESTDIR}/bin, and ${DESTDIR}/lib.
3 DESTDIR=/usr/local/atalk
4
5 # for system-level binaries
6 SBINDIR=$(DESTDIR)/sbin
7 # for user-level binaries
8 BINDIR=$(DESTDIR)/bin
9 # for program libraries (*.a)
10 LIBDIR=$(DESTDIR)/lib
11 # for machine-independent resources (pagecount.ps, etc.)
12 RESDIR=$(DESTDIR)/etc
13 # for configuration files (AppleVolumes.system, etc.)
14 ETCDIR=$(DESTDIR)/etc
15 # for include files
16 INCDIR=$(DESTDIR)/include
17 # Root of man pages.  Subdirectories will be
18 # ${MANDIR}/man1, ${MANDIR}/man4, and ${MANDIR}/man8.
19 MANDIR=$(DESTDIR)/man
20
21 #INSTALL_PREFIX=
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
29
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
32 # feature.
33 #DB2DIR=/usr/local/BerkeleyDB
34
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
44
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.
49 #DESDIR=/usr/local
50
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
53 # highly recommended.
54 TCPWRAPDIR=/usr
55
56 # Location of PAM support library and include files. Uncomment this if
57 # you want to enable PAM support.
58 #PAMDIR=/usr
59
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
62 # enable support.
63 #CRACKDIR=/usr
64
65  
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
71
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
83
84 ##########################################################################
85 all install depend clean tags kernel kinstall kpatch:   FRC
86         @case `uname -rs` in \
87             "SunOS 4"*) ARCH=sunos \
88                 ;; \
89             "SunOS 5"*) ARCH=solaris \
90                 ;; \
91             ULTRIX*) ARCH=ultrix \
92                 ;; \
93             Linux*) ARCH=linux \
94                 ;; \
95             FreeBSD*) ARCH=freebsd \
96                 ;; \
97             NetBSD*) ARCH=netbsd \
98                 ;; \
99             OpenBSD*) ARCH=openbsd \
100                 ;; \
101             Rhapsody*) ARCH=osx \
102                 ;; \
103             *) ARCH=generic \
104                 ;; \
105         esac; \
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}" \
114             CAPDIR="${CAPDIR}" \
115             OSVERSION="`uname -r`" MACHINETYPE="`uname -m`" \
116             $@
117
118 FRC:    include/netatalk
119
120 include/netatalk:
121         -ln -s ../sys/netatalk include/netatalk
122
123 SYS=sunos ultrix solaris
124 VERSION=`date +%y%m%d`
125 DISTDIR=../netatalk-${VERSION}
126
127 sysclean : FRC
128         for i in ${SYS}; \
129             do (cd sys/$$i; ${MAKE} ${MFLAGS} sysclean); \
130         done
131
132 dist : sysclean clean
133         mkdir ${DISTDIR}
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