2011-03-24 06:38:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.53 2011/03/24 05:38:01 obache Exp $
|
2000-05-25 19:57:27 +02:00
|
|
|
#
|
|
|
|
|
2006-09-07 10:46:20 +02:00
|
|
|
DISTNAME= krb4-1.2.2
|
|
|
|
PKGNAME= kth-krb4-1.2.2
|
2010-01-17 13:02:03 +01:00
|
|
|
PKGREVISION= 4
|
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
|
|
|
|
2006-09-07 10:46:20 +02:00
|
|
|
CONFLICTS+= arla-[0-9]*
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS+= libdes-[0-9]*
|
2001-03-29 22:09:09 +02:00
|
|
|
|
2011-03-24 06:38:01 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
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
|
|
|
|
2006-09-07 10:46:20 +02:00
|
|
|
INFO_FILES= yes
|
2002-09-24 01:55:25 +02:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/kth-krb4
|
|
|
|
|
2006-09-07 10:46:20 +02:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= ${WRKSRC}/lib/kafs/kafs.h
|
|
|
|
SUBST_SED.paths+= -e 's|/usr/arla/etc/|${PKG_SYSCONFDIR}|g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2000-06-08 15:53:24 +02:00
|
|
|
|
2008-10-03 21:01:14 +02:00
|
|
|
# On some systems, kth-krb4's libroken installs a glob.h to compensate
|
|
|
|
# for the system not having one. Please turn PLIST support for this
|
|
|
|
# on narrowly.
|
|
|
|
INSTALLS_GLOB= no
|
|
|
|
.if ${INSTALLS_GLOB} == yes
|
2008-07-15 18:39:55 +02:00
|
|
|
PLIST.glob= yes
|
2008-10-03 21:01:14 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2008-07-15 18:39:55 +02:00
|
|
|
CONFIGURE_ARGS+= --with-readline=yes \
|
|
|
|
--with-readline-lib=${BUILDLINK_PREFIX.readline}/lib \
|
|
|
|
--with-readline-include=${BUILDLINK_PREFIX.readline}/include/readline \
|
|
|
|
ac_cv_funclib_bswap16=yes \
|
|
|
|
ac_cv_funclib_bswap32=yes
|
|
|
|
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_VARS+= glob
|
|
|
|
|
2000-05-25 19:57:27 +02:00
|
|
|
post-install:
|
2011-03-24 06:38:01 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/krb.conf ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/krb.realms ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/inetd.conf.changes ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/services-1.4.2.diff ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/services-1.5.diff ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
|
|
|
|
SPECIAL_PERMS+= bin/${KRB4_PREFIX}rsh ${SETUID_ROOT_PERMS}
|
|
|
|
SPECIAL_PERMS+= bin/${KRB4_PREFIX}rcp ${SETUID_ROOT_PERMS}
|
|
|
|
SPECIAL_PERMS+= bin/${KRB4_PREFIX}rlogin ${SETUID_ROOT_PERMS}
|
|
|
|
SPECIAL_PERMS+= bin/${KRB4_PREFIX}su ${SETUID_ROOT_PERMS}
|
|
|
|
SPECIAL_PERMS+= bin/otp ${SETUID_ROOT_PERMS}
|
2000-05-25 19:57:27 +02:00
|
|
|
|
2004-05-10 04:10:14 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2007-01-30 21:41:32 +01:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2000-05-25 19:57:27 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|