freebsd-ports/net/netatalk-asun/files/patch-aa
Jun Kuriyama ea48b93ab9 Check libdes.a to use DES.
Submitted by:	Brook Schofield <brook.schofield@utas.edu.au>
PR:		ports/17652 (for net/netatalk)
2000-12-23 05:04:22 +00:00

72 lines
2.2 KiB
Text

--- Makefile.orig Sun Feb 7 20:15:46 1999
+++ Makefile Sat Dec 23 13:31:49 2000
@@ -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
@@ -27,22 +27,29 @@
#MANDIR=/usr/man
# Location of the Berkeley v2 db library and include files.
-#DB2DIR=/usr/local/BerkeleyDB
+.if defined(USE_CNID)
+DB2DIR=${PREFIX}
+.endif
# Location of the DES library and include files. Comment this out if you
# don't want Randnum Exchange and 2-Way Randnum Exchange as allowable UAMs
# for afpd. We expect libdes.a in $DESDIR/lib and des.h in $DESDIR/include.
-DESDIR=/usr/local
+.if exists(/usr/lib/libdes.a)
+DESDIR=/usr
+.endif
# Location of the tcp wrapper library and include files. Comment this out
# if you don't want tcp wrapper support. having tcp wrapper support is
# highly recommended.
-TCPWRAPDIR=/usr
+TCPWRAPDIR=${PREFIX}
# Location of PAM support library and include files. Comment this out
# if you don't want to enable PAM support
-PAMDIR=/usr
-
+## FreeBSD's PAM modules currently only support auth; session and account
+## are also required.
+#.if exists(/usr/lib/libpam.a)
+#PAMDIR=/usr
+#.endif
# Location of the AFS and Kerberos libraries and include files. Uncomment
# and edit these if you want to include AFS or Kerberos support in afpd
@@ -77,12 +84,13 @@
ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \
TCPWRAPDIR="${TCPWRAPDIR}" PAMDIR="${PAMDIR}" DB2DIR="${DB2DIR}" \
- AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" DESDIR="${DESDIR}" $@
+ AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" DESDIR="${DESDIR}" \
+ OPTOPTS="${CFLAGS}" $@
FRC:
SYS=sunos ultrix solaris
-VERSION=`date +%y%m%d`
+VERSION="netatalk-1.4b2+asun-2.1.3"
DISTDIR=../netatalk-${VERSION}
sysclean : FRC