2005-12-06 00:55:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.39 2005/12/05 23:55:17 rillig Exp $
|
2000-05-25 19:57:27 +02:00
|
|
|
#
|
|
|
|
|
2002-10-29 14:56:50 +01:00
|
|
|
DISTNAME= krb4-1.2.1
|
2002-12-23 17:24:59 +01:00
|
|
|
PKGNAME= kth-krb4-1.2.1
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 5
|
2000-05-25 19:57:27 +02:00
|
|
|
CATEGORIES= security net
|
|
|
|
MASTER_SITES= ftp://ftp.pdc.kth.se/pub/krb/src/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= wennmach@NetBSD.org
|
2000-05-25 19:57:27 +02:00
|
|
|
HOMEPAGE= http://www.pdc.kth.se/kth-krb/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Kerberos IV distribution from KTH
|
2000-05-25 19:57:27 +02:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS+= zephyr-[0-9]*
|
|
|
|
CONFLICTS+= libdes-[0-9]*
|
2001-03-29 22:09:09 +02:00
|
|
|
|
Reorganize crypto handling, as discussed on tech-pkg. Remove all
RESTRICTED= variables that were predicated on former U.S. export
regulations. Add CRYPTO=, as necessary, so it's still possible to
exclude all crypto packages from a build by setting MKCRYPTO=no
(but "lintpkgsrc -R" will no longer catch them).
Specifically,
- - All packages which set USE_SSL just lose their RESTRICTED
variable, since MKCRYPTO responds to USE_SSL directly.
- - realplayer7 and ns-flash keep their RESTRICTED, which is based
on license terms, but also gain the CRYPTO variable.
- - srp-client is now marked broken, since the distfile is evidently
no longer available. On this, we're no worse off than before.
[We haven't been mirroring the distfile, or testing the build!]
- - isakmpd gets CRYPTO for RESTRICTED, but remains broken.
- - crack loses all restrictions, as it does not evidently empower
a user to utilize strong encryption (working definition: ability
to encode a message that requires a secret key plus big number
arithmetic to decode).
2000-09-09 21:40:14 +02:00
|
|
|
CRYPTO= yes
|
2000-06-08 15:53:24 +02:00
|
|
|
|
2004-02-14 18:21:49 +01:00
|
|
|
USE_LIBTOOL= yes
|
2002-09-24 01:55:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-02-09 13:54:31 +01:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/kerberosIV
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2004-02-09 18:36:37 +01:00
|
|
|
KERBEROS_PREFIX_CMDS?= no
|
|
|
|
KRB4_PREFIX_CMDS?= ${KERBEROS_PREFIX_CMDS}
|
2004-02-09 13:54:31 +01:00
|
|
|
BUILD_DEFS+= KRB4_PREFIX_CMDS
|
|
|
|
.if !empty(KRB4_PREFIX_CMDS:M[yY][eE][sS])
|
2004-02-09 18:36:37 +01:00
|
|
|
KTH_KRB4_TRANSFORM= s/^ftp/k4&/;\
|
2004-02-09 13:54:31 +01:00
|
|
|
s/^rcp/k4&/;\
|
|
|
|
s/^rlogin/k4&/;\
|
|
|
|
s/^rsh/k4&/;\
|
|
|
|
s/^su/k4&/;\
|
|
|
|
s/^telnet/k4&/
|
|
|
|
PLIST_SUBST+= KRB4_PREFIX=k4
|
|
|
|
.else
|
2004-02-09 18:36:37 +01:00
|
|
|
KTH_KRB4_TRANSFORM= s/^ftp$$/k4&/ # always k4ftp
|
2004-02-09 13:54:31 +01:00
|
|
|
PLIST_SUBST+= KRB4_PREFIX=
|
|
|
|
.endif
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --program-transform=${KTH_KRB4_TRANSFORM:Q}
|
2002-04-05 13:32:19 +02:00
|
|
|
|
2003-08-05 11:50:59 +02:00
|
|
|
INFO_FILES= kth-krb.info
|
|
|
|
|
2002-09-24 01:55:25 +02:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/kth-krb4
|
|
|
|
|
2002-03-29 18:20:10 +01:00
|
|
|
# this hangs while compiling one of the files, at least with the
|
|
|
|
# toolchain as of 1.5ZC (20020329)
|
2004-02-09 13:54:31 +01:00
|
|
|
#.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
#BROKEN= toolchain problems on sparc64 (1.5ZC, 20020329)
|
|
|
|
#.endif
|
2002-03-29 18:20:10 +01:00
|
|
|
|
2000-06-08 15:53:24 +02:00
|
|
|
post-patch:
|
2002-09-24 01:55:25 +02:00
|
|
|
@for file in ${WRKSRC}/lib/kafs/kafs.h; do \
|
|
|
|
${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
|
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
|
|
done
|
2000-06-08 15:53:24 +02:00
|
|
|
|
2000-05-25 19:57:27 +02:00
|
|
|
post-install:
|
2002-09-24 01:55:25 +02:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/krb.conf ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/krb.realms ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/inetd.conf.changes ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/services-1.4.2.diff ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/services-1.5.diff ${EXAMPLEDIR}
|
2000-05-25 19:57:27 +02:00
|
|
|
|
2004-05-10 04:10:14 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated. These
changes affect about 1000 files.
The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files. Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred. This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.
The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.
The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc. The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.
The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files. Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories. These files are used as input
to imake since imake can't use stdin for that purpose.
The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead. This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed. Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries. Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
2000-05-25 19:57:27 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|