pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Support a new yes/no variable "KERBEROS_PREFIX_CMDS" t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8bf5d61a2af9
branches:  trunk
changeset: 466324:8bf5d61a2af9
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jan 15 12:48:00 2004 +0000

description:
Support a new yes/no variable "KERBEROS_PREFIX_CMDS" that can be used by
Kerberos implementation packages to decide whether to prefix certain
commands with a "k" to differentiate it from system tools with similar
names.  KERBEROS_PREFIX_CMDS defaults to "no".

diffstat:

 mk/bsd.pkg.defaults.mk    |   8 +++++++-
 security/heimdal/Makefile |  22 ++++++++++++++++------
 security/heimdal/PLIST    |  27 ++++++++++++++-------------
 3 files changed, 37 insertions(+), 20 deletions(-)

diffs (140 lines):

diff -r 5825d23cd23f -r 8bf5d61a2af9 mk/bsd.pkg.defaults.mk
--- a/mk/bsd.pkg.defaults.mk    Thu Jan 15 12:22:10 2004 +0000
+++ b/mk/bsd.pkg.defaults.mk    Thu Jan 15 12:48:00 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.defaults.mk,v 1.205 2004/01/14 08:23:07 wiz Exp $
+# $NetBSD: bsd.pkg.defaults.mk,v 1.206 2004/01/15 12:48:00 jlam Exp $
 #
 
 # A file providing defaults for pkgsrc and the packages collection.
@@ -1210,6 +1210,12 @@
 # Possible: defined, not defined
 # Default: not defined
 
+KERBEROS_PREFIX_CMDS?= no
+# Use in the Kerberos packages to determine whether to prefix certain
+# application executables with a "k".
+# Possible: yes, no
+# Default: no
+
 #KERMIT_SUID_UUCP
 # If set to YES or yes, install kermit binary set-uid uucp. Permits an 
 # unprivileged user to access the serial ports, with default permissions
diff -r 5825d23cd23f -r 8bf5d61a2af9 security/heimdal/Makefile
--- a/security/heimdal/Makefile Thu Jan 15 12:22:10 2004 +0000
+++ b/security/heimdal/Makefile Thu Jan 15 12:48:00 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/01/11 00:00:28 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2004/01/15 12:48:00 jlam Exp $
 
 DISTNAME=              heimdal-0.6
 CATEGORIES=            security
@@ -40,18 +40,28 @@
 CONFIGURE_ARGS+=       --with-openssl=${SSLBASE}
 .include "../../security/openssl/buildlink3.mk"
 
-# XXX Using heimdal with an LDAP backend isn't supported yet.
+# XXX Using Heimdal with an LDAP backend isn't supported yet.
 #BUILD_DEFS+=          HEIMDAL_USE_LDAP
 #.if defined(HEIMDAL_USE_LDAP) && !empty(HEIMDAL_USE_LDAP:M[yY][eE][sS])
 #.  include "../../databases/openldap/buildlink3.mk"
 #CONFIGURE_ARGS+=      --with-openldap=${BUILDLINK_PREFIX.openldap}
 #.endif
 
-# Rename heimdal's ftp/ftpd to kftp/kftpd so we don't conflict with
-# net/tnftp and net/tnftpd.
+# Rename some of Heimdal's applications so they won't conflict with
+# other packages.
 #
-CONFIGURE_ARGS+=       --program-transform-name=${HEIMDAL_TRANSFORM}
-HEIMDAL_TRANSFORM=     "s/^ftp/kftp/"
+BUILD_DEFS+=   KERBEROS_PREFIX_CMDS
+.if !empty(KERBEROS_PREFIX_CMDS:M[yY][eE][sS])
+HEIMDAL_TRANSFORM=     s/^ftp/k&/;                                     \
+                       s/^login/k&/;s/^klogin.access/login.access/;    \
+                       s/^rcp/k&/;s/^rsh/k&/;                          \
+                       s/^su/k&/;s/^telnet/k&/
+PLIST_SUBST+=          KRB5_PREFIX=k
+.else
+HEIMDAL_TRANSFORM=     s/^ftp/k&/
+PLIST_SUBST+=          KRB5_PREFIX=
+.endif
+CONFIGURE_ARGS+=       --program-transform-name="${HEIMDAL_TRANSFORM}"
 
 USE_PKGINSTALL=                yes
 OWN_DIRS_PERMS=                ${HEIMDAL_STATEDIR} ${ROOT_USER} ${ROOT_GROUP} 0700
diff -r 5825d23cd23f -r 8bf5d61a2af9 security/heimdal/PLIST
--- a/security/heimdal/PLIST    Thu Jan 15 12:22:10 2004 +0000
+++ b/security/heimdal/PLIST    Thu Jan 15 12:48:00 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/10 14:56:45 jlam Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/01/15 12:48:00 jlam Exp $
 bin/afslog
 bin/compile_et
 bin/kauth
@@ -10,18 +10,19 @@
 bin/klist
 bin/kpasswd
 bin/krb5-config
-bin/login
+bin/${KRB5_PREFIX}login
 bin/mk_cmds
 bin/otp
 bin/otpprint
 bin/pagsh
 bin/pfrom
-bin/rcp
-bin/rsh
+bin/${KRB5_PREFIX}rcp
+bin/${KRB5_PREFIX}rsh
 bin/string2key
-bin/su
-bin/telnet
+bin/${KRB5_PREFIX}su
+bin/${KRB5_PREFIX}telnet
 bin/verify_krb5_conf
+etc/rc.d/kdc
 include/krb5/asn1_err.h
 include/krb5/base64.h
 include/krb5/com_err.h
@@ -137,8 +138,8 @@
 libexec/kpasswdd
 libexec/popper
 libexec/push
-libexec/rshd
-libexec/telnetd
+libexec/${KRB5_PREFIX}rshd
+libexec/${KRB5_PREFIX}telnetd
 man/man1/afslog.1
 man/man1/kauth.1
 man/man1/kdestroy.1
@@ -150,14 +151,14 @@
 man/man1/kpasswd.1
 man/man1/krb5-config.1
 man/man1/kx.1
-man/man1/login.1
+man/man1/${KRB5_PREFIX}login.1
 man/man1/otp.1
 man/man1/otpprint.1
 man/man1/pfrom.1
-man/man1/rsh.1
+man/man1/${KRB5_PREFIX}rsh.1
 man/man1/rxtelnet.1
 man/man1/rxterm.1
-man/man1/telnet.1
+man/man1/${KRB5_PREFIX}telnet.1
 man/man1/tenletxr.1
 man/man1/xnlock.1
 man/man3/arg_printusage.3
@@ -430,9 +431,9 @@
 man/man8/kxd.8
 man/man8/popper.8
 man/man8/push.8
-man/man8/rshd.8
+man/man8/${KRB5_PREFIX}rshd.8
 man/man8/string2key.8
-man/man8/telnetd.8
+man/man8/${KRB5_PREFIX}telnetd.8
 man/man8/verify_krb5_conf.8
 sbin/dump_log
 sbin/kadmin



Home | Main Index | Thread Index | Old Index