Date: Sun, 21 Jun 1998 11:00:01 -0700 (PDT) From: Jacques Vidrine <n@nectar.com> To: freebsd-ports@FreeBSD.ORG Subject: Re: ports/6870: new port, Kerberos V 1.0.5 Message-ID: <199806211800.LAA26389@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/6870; it has been noted by GNATS. From: Jacques Vidrine <n@nectar.com> To: freebsd-gnats-submit@freebsd.org, n@nectar.com Cc: Subject: Re: ports/6870: new port, Kerberos V 1.0.5 Date: Sun, 21 Jun 1998 12:59:37 -0500 Updated port which fixes several problems with my initial submission (which, incidently, was my first port ever :-) * All badness reported by ``portlint'' has been fixed. * Info files are now installed correctly. Jacques Vidrine <n@nectar.com> # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # krb5 # krb5/files # krb5/files/md5 # krb5/Makefile # krb5/patches # krb5/patches/patch-aa # krb5/patches/patch-ab # krb5/patches/patch-ac # krb5/patches/patch-ad # krb5/patches/patch-ae # krb5/patches/patch-af # krb5/pkg # krb5/pkg/COMMENT # krb5/pkg/DESCR # krb5/pkg/PLIST # echo c - krb5 mkdir -p krb5 > /dev/null 2>&1 echo c - krb5/files mkdir -p krb5/files > /dev/null 2>&1 echo x - krb5/files/md5 sed 's/^X//' >krb5/files/md5 << 'END-of-krb5/files/md5' XMD5 (krb5/krb5-1.0.5.src.tar.gz) = 97b523ba3c3f0b6a703691daadb2d85c XMD5 (krb5/krb5-1.0.5.doc.tar.gz) = 6eadfe9cff088bc5cc704b720c3883f6 XMD5 (krb5/krb5-1.0.5.crypto.tar.gz) = 2303ee0ebd08fad1945365f4cbb310d6 END-of-krb5/files/md5 echo x - krb5/Makefile sed 's/^X//' >krb5/Makefile << 'END-of-krb5/Makefile' X# Ports collection Makefile for: MIT Kerberos V X# Version required: 1.0.5 X# Date created: 6/5/1998 X# Whom: n@nectar.com X# X# $Id: Makefile,v 1.3 1998/06/21 17:48:32 nectar Exp $ X# X XDISTNAME= krb5-1.0.5 XCATEGORIES= security XMASTER_SITES= ftp://athena-dist.mit.edu/pub/kerberos/ XDISTFILES= krb5-1.0.5.src.tar.gz \ X krb5-1.0.5.doc.tar.gz \ X krb5-1.0.5.crypto.tar.gz X XMAINTAINER= n@nectar.com X XDIST_SUBDIR= krb5 X XUSE_GMAKE= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --enable-shared X XRESTRICTED= "Crypto; export-controlled" X# Set USA_RESIDENT appropriately in /etc/make.conf if you like X XINFO_FILES= krb425.info krb5-admin.info krb5-admin.info-1 \ X krb5-admin.info-2 krb5-admin.info-3 krb5-install.info \ X krb5-install.info-1 krb5-install.info-2 krb5-user.info X Xfetch-depends: X.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO X @echo X @echo ">> You must set the variable USA_RESIDENT to YES if you are" X @echo " a United States resident, otherwise NO." X @echo " If you are a US resident, understand that this software" X @echo " may be export restricted." X @echo " If you are not a US resident, then you cannot obtain" X @echo " Kerberos V source from a server within the United" X @echo " States. You will have to find the source elsewhere," X @echo " and put them in ${_DISTDIR}." X.endif X XMAN1= krb5-send-pr.1 kpasswd.1 v5passwd.1 klist.1 kinit.1 \ X kdestroy.1 ksu.1 sclient.1 rsh.1 rcp.1 rlogin.1 \ X v4rcp.1 ftp.1 telnet.1 kerberos.1 XMAN5= kdc.conf.5 krb5.conf.5 .k5login.5 XMAN8= krb5kdc.8 kadmin.8 kadmin.local.8 kdb5_util.8 \ X ktutil.8 kadmind.8 kprop.8 kpropd.8 sserver.8 \ X kshd.8 klogind.8 login.krb5.8 ftpd.8 telnetd.8 X XWRKSRC= ${WRKDIR}/${DISTNAME}/src XRECONF_COOKIE= ${WRKDIR}/.reconf_done XREADME_KRB5= README.KRB5-1.0.5 XAWK_SCRIPT= '/1) Change into the directory/ { if (match($$0, "dist/[0-9]+")) print substr($$0, RSTART, RLENGTH) }' X XWANT_HTML?= YES XHTML_DOC_DIR= ${WRKDIR}/${DISTNAME}/doc XHTML_DOCS= admin.html install_foot.html user-guide.html \ X admin_foot.html install_toc.html user-guide_foot.html \ X admin_toc.html krb425.html user-guide_toc.html \ X install.html krb425_toc.html XSETUID_EXE= bin/ksu bin/v4rcp X Xpre-fetch: X @${MKDIR} ${_DISTDIR} X @(cd ${_DISTDIR}; \ X if [ ! -f ${README_KRB5} ]; then \ X for site in ${MASTER_SITES}; do \ X ${ECHO_MSG} ">> Attempting to fetch ${README_KRB5} from $${site}."; \ X if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}/${README_KRB5} ${FETCH_AFTER_ARGS}; then \ X break; \ X fi \ X done; fi); \ X if [ ! -f ${_DISTDIR}/${README_KRB5} ]; then \ X ${ECHO_MSG} ">> Couldn't fetch it - please try to retrieve"; \ X ${ECHO_MSG} ">> this port manually into ${_DISTDIR} and try"; \ X ${ECHO_MSG} ">> again."; \ X fi X Xdo-fetch: X @${MKDIR} ${_DISTDIR} X @(cd ${_DISTDIR}; \ X secret=`${AWK} ${AWK_SCRIPT} < ${_DISTDIR}/${README_KRB5}`; \ X for file in ${DISTFILES}; do \ X if [ ! -f $$file -a ! -f `${BASENAME} $$file` ]; then \ X if [ -h $$file -o -h `${BASENAME} $$file` ]; then \ X ${ECHO_MSG} ">> ${_DISTDIR}/$$file is a broken symlink."; \ X ${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \ X ${ECHO_MSG} ">> Please correct this problem and try again."; \ X exit 1; \ X fi ; \ X ${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \ X for site in ${MASTER_SITES}; do \ X ${ECHO_MSG} ">> Attempting to fetch from $${site}/$${secret}."; \ X if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}/$${secret}/$${file} ${FETCH_AFTER_ARGS}; then \ X continue 2; \ X fi \ X done; \ X ${ECHO_MSG} ">> Couldn't fetch it - please try to retrieve this";\ X ${ECHO_MSG} ">> port manually into ${_DISTDIR} and try again."; \ X exit 1; \ X fi \ X done) X Xpre-configure: ${RECONF_COOKIE} X X${RECONF_COOKIE}: X @(cd ${WRKSRC}/util/autoconf && ./configure && gmake) X @(cd ${WRKSRC} && ./util/reconf --force) X ${TOUCH} ${RECONF_COOKIE} X Xpost-build: X @(cd ${WRKSRC}/../doc && \ X ${MAKE} ${INFO_FILES}) X Xpost-install: X# XXX Not sure why tmac.doc is installed here -- I don't think X# we need it. I should patch the distribution to not install X# it, I think. X @rm -f ${PREFIX}/man/man1/tmac.doc X# shared libs X ${LDCONFIG} -m ${PREFIX}/lib X# html documentation X.if defined(WANT_HTML) && ${WANT_HTML} == YES X @${MKDIR} ${PREFIX}/share/doc/krb5 X.for html in ${HTML_DOCS} X ${INSTALL_MAN} ${HTML_DOC_DIR}/${html} ${PREFIX}/share/doc/krb5 X.endfor X.endif X# fixup setuid executables X.for setuid in ${SETUID_EXE} X chown root ${PREFIX}/${setuid} X.endfor X# handle info files X if [ ! -f ${PREFIX}/info/dir ]; then \ X ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > \ X ${PREFIX}/info/dir; \ X fi X.for info in ${INFO_FILES} X ${INSTALL_MAN} ${WRKSRC}/../doc/${info} ${PREFIX}/info/${info} X.endfor X.for info in ${INFO_FILES:M*.info} X install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir X.endfor X X.include <bsd.port.mk> END-of-krb5/Makefile echo c - krb5/patches mkdir -p krb5/patches > /dev/null 2>&1 echo x - krb5/patches/patch-aa sed 's/^X//' >krb5/patches/patch-aa << 'END-of-krb5/patches/patch-aa' X--- configure.in.orig 1998/05/27 20:22:52 1.1.1.1 X+++ configure.in 1998/05/28 16:14:23 1.2 X@@ -21,6 +21,28 @@ X AC_ARG_ENABLE([shared], X [ --enable-shared build shared libraries],[ X case $krb5_cv_host in X+*-*-freebsd*) X+ echo "Enabling shared libraries for FreeBSD...." X+ krb5_cv_shlibs_cflags=-fpic X+ krb5_cv_shlibs_ext=so X+ krb5_cv_noshlibs_ext=a X+krb5_cv_shlibs_versioned_filenames=yes # version in filename of library X+ krb5_cv_shlibs_need_nover=no X+ krb5_cv_shlibs_dir=shared X+ krb5_cv_shlibs_ldflag= X+ krb5_cv_noshlibs_ldflag="-static" X+ krb5_cv_shlibs_sym_ufo="-u " X+ krb5_cv_shlibs_dirhead="-Wl,-R -Wl," X+ krb5_cv_exe_need_dirs=yes X+ krb5_cv_shlibs_use_dirs=yes X+ krb5_cv_shlibs_use_colon_dirs=no X+ krb5_cv_shlibs_tail_comp= X+ krb5_cv_shlibs_enabled=yes X+ krb5_cv_staticlibs_enabled=yes X+ krb5_cv_shlibs_run_ldpath=default X+ krb5_cv_shlibs_run_libpath=no X+ krb5_cv_shlibs_run_rldroot=no X+ ;; X *-*-netbsd*) X echo "Enabling shared libraries for NetBSD...." X krb5_cv_shlibs_cflags=-fpic END-of-krb5/patches/patch-aa echo x - krb5/patches/patch-ab sed 's/^X//' >krb5/patches/patch-ab << 'END-of-krb5/patches/patch-ab' X--- util/makeshlib.sh.orig 1998/05/27 20:24:15 1.1.1.1 X+++ util/makeshlib.sh 1998/05/28 16:14:32 1.2 X@@ -17,6 +17,18 @@ X VERSION="$1" ; shift X X case $host in X+*-*-freebsd*) X+ FILES=`for i X+ do X+ sed -e "s;^;$i/shared/;" -e "s; ; $i/shared/;g" -e "s;^$i/shared/\$;;" $i/DONE X+ done` X+ # Hack to deal with the fact that with cc options are different X+ # from ld... X+ ldflags=`echo $ldflags |sed -e "s/-Wl,//g"` X+ echo ld -Bshareable $ldflags -o $library $FILES $libdirfl $liblist X+ ld -Bshareable $ldflags -o $library $FILES $libdirfl $liblist X+ stat=$? X+ ;; X *-*-netbsd*) X FILES=`for i X do END-of-krb5/patches/patch-ab echo x - krb5/patches/patch-ac sed 's/^X//' >krb5/patches/patch-ac << 'END-of-krb5/patches/patch-ac' X--- ../doc/admin.texinfo Fri Feb 6 21:40:56 1998 X+++ admin.texinfo Fri Jun 19 15:13:45 1998 X@@ -5,6 +5,10 @@ X @c guide X @setfilename krb5-admin.info X @settitle Kerberos V5 System Administrator's Guide X+@dircategory Kerberos V5 X+@direntry X+* Admin Guide: (krb5-admin). Kerberos V5 System Admin's Guide X+@end direntry X @setchapternewpage odd @c chapter begins on next odd page X @c @setchapternewpage on @c chapter begins on next page X @c @smallbook @c Format for 7" X 9.25" paper END-of-krb5/patches/patch-ac echo x - krb5/patches/patch-ad sed 's/^X//' >krb5/patches/patch-ad << 'END-of-krb5/patches/patch-ad' X--- ../doc/user-guide.texinfo Fri Feb 6 21:40:58 1998 X+++ user-guide.texinfo Fri Jun 19 15:13:45 1998 X@@ -3,6 +3,10 @@ X @c guide X @setfilename krb5-user.info X @settitle Kerberos V5 UNIX User's Guide X+@dircategory Kerberos V5 X+@direntry X+* User's Guide: (krb5-user). Kerberos V5 UNIX User's Guide X+@end direntry X @setchapternewpage odd @c chapter begins on next odd page X @c @setchapternewpage on @c chapter begins on next page X @c @smallbook @c Format for 7" X 9.25" paper END-of-krb5/patches/patch-ad echo x - krb5/patches/patch-ae sed 's/^X//' >krb5/patches/patch-ae << 'END-of-krb5/patches/patch-ae' X--- ../doc/install.texinfo Fri Feb 6 21:40:56 1998 X+++ install.texinfo Fri Jun 19 15:13:45 1998 X@@ -5,6 +5,10 @@ X @c guide X @setfilename krb5-install.info X @settitle Kerberos V5 Installation Guide X+@dircategory Kerberos V5 X+@direntry X+* Installation Guide: (krb5-install). Kerberos V5 Installation Guide X+@end direntry X @setchapternewpage odd @c chapter begins on next odd page X @c @setchapternewpage on @c chapter begins on next page X @c @smallbook @c Format for 7" X 9.25" paper END-of-krb5/patches/patch-ae echo x - krb5/patches/patch-af sed 's/^X//' >krb5/patches/patch-af << 'END-of-krb5/patches/patch-af' X--- ../doc/krb425.texinfo Fri Feb 6 21:40:57 1998 X+++ krb425.texinfo Fri Jun 19 15:13:45 1998 X@@ -5,6 +5,10 @@ X @c guide X @setfilename krb425.info X @settitle Upgrading to Kerberos V5 from Kerberos V4 X+@dircategory Kerberos V5 X+@direntry X+* Upgrading from V4 to V5: (krb425). Upgrading from Kerberos V4 to V5 X+@end direntry X @setchapternewpage odd @c chapter begins on next odd page X @c @setchapternewpage on @c chapter begins on next page X @c @smallbook @c Format for 7" X 9.25" paper END-of-krb5/patches/patch-af echo c - krb5/pkg mkdir -p krb5/pkg > /dev/null 2>&1 echo x - krb5/pkg/COMMENT sed 's/^X//' >krb5/pkg/COMMENT << 'END-of-krb5/pkg/COMMENT' XAn authentication system developed at MIT, successor to Kerberos IV. END-of-krb5/pkg/COMMENT echo x - krb5/pkg/DESCR sed 's/^X//' >krb5/pkg/DESCR << 'END-of-krb5/pkg/DESCR' XKerberos V5 is an authentication system developed at MIT. XSee also: http://web.mit.edu/kerberos/www/ X XAbridged from the User Guide: X Under Kerberos, a client sends a request for a ticket to the X Key Distribution Center (KDC). The KDC creates a ticket-granting X ticket (TGT) for the client, encrypts it using the client's X password as the key, and sends the encrypted TGT back to the X client. The client then attempts to decrypt the TGT, using X its password. If the client successfully decrypts the TGT, it X keeps the decrypted TGT, which indicates proof of the client's X identity. The TGT permits the client to obtain additional tickets, X which give permission for specific services. X Since Kerberos negotiates authenticated, and optionally encrypted, X communications between two points anywhere on the internet, it X provides a layer of security that is not dependent on which side of a X firewall either client is on. X The Kerberos V5 package is designed to be easy to use. Most of the X commands are nearly identical to UNIX network programs you are already X used to. Kerberos V5 is a single-sign-on system, which means that you X have to type your password only once per session, and Kerberos does X the authenticating and encrypting transparently. X XJacques Vidrine <n@nectar.com> END-of-krb5/pkg/DESCR echo x - krb5/pkg/PLIST sed 's/^X//' >krb5/pkg/PLIST << 'END-of-krb5/pkg/PLIST' Xbin/krb524init Xbin/kpasswd Xbin/v5passwd Xbin/klist Xbin/kinit Xbin/kdestroy Xbin/ksu Xbin/sclient Xbin/sim_client Xbin/uuclient Xbin/rsh Xbin/rcp Xbin/rlogin Xbin/v4rcp Xbin/gss-client Xbin/ftp Xbin/telnet Xinclude/gssapi/gssapi_generic.h Xinclude/gssapi/gssapi.h Xinclude/gssapi/gssapi_krb5.h Xinclude/kerberosIV/krb.h Xinclude/kerberosIV/des.h Xinclude/kerberosIV/kadm.h Xinclude/kerberosIV/mit-copyright.h Xinclude/kerberosIV/krb_err.h Xinclude/com_err.h Xinclude/mit-sipb-copyright.h Xinclude/libpty.h Xinclude/krb5.h Xlib/libcom_err.a Xlib/libcom_err.so.1.0 Xlib/libpty.a Xlib/libdyn.a Xlib/libdyn.so.1.0 Xlib/libcrypto.so.1.0 Xlib/libcrypto.a Xlib/libkrb5.so.1.0 Xlib/libkrb5.a Xlib/libdes425.a Xlib/libdes425.so.1.0 Xlib/libkrb4.so.1.0 Xlib/libkrb4.a Xlib/libkrb5util.a Xlib/libkdb5.so.1.0 Xlib/libkdb5.a Xlib/libgssapi_krb5.a Xlib/libgssapi_krb5.so.1.0 Xlib/libgssrpc.a Xlib/libgssrpc.so.1.0 Xlib/libkadm5clnt.a Xlib/libkadm5clnt.so.1.0 Xlib/libkadm5srv.a Xlib/libkadm5srv.so.1.0 Xlib/libkrb524.a X@exec /sbin/ldconfig -m %D/lib Xman/man1/krb5-send-pr.1.gz Xman/man1/kpasswd.1.gz Xman/man1/v5passwd.1.gz Xman/man1/klist.1.gz Xman/man1/kinit.1.gz Xman/man1/kdestroy.1.gz Xman/man1/ksu.1.gz Xman/man1/sclient.1.gz Xman/man1/rsh.1.gz Xman/man1/rcp.1.gz Xman/man1/rlogin.1.gz Xman/man1/v4rcp.1.gz Xman/man1/ftp.1.gz Xman/man1/telnet.1.gz Xman/man1/kerberos.1.gz Xman/man5/kdc.conf.5.gz Xman/man5/krb5.conf.5.gz Xman/man5/.k5login.5.gz Xman/man8/krb5kdc.8.gz Xman/man8/kadmin.8.gz Xman/man8/kadmin.local.8.gz Xman/man8/kdb5_util.8.gz Xman/man8/ktutil.8.gz Xman/man8/kadmind.8.gz Xman/man8/kprop.8.gz Xman/man8/kpropd.8.gz Xman/man8/sserver.8.gz Xman/man8/kshd.8.gz Xman/man8/klogind.8.gz Xman/man8/login.krb5.8.gz Xman/man8/ftpd.8.gz Xman/man8/telnetd.8.gz Xsbin/krb5-send-pr Xsbin/krb524d Xsbin/krb5kdc Xsbin/kadmin.local Xsbin/kadmin Xsbin/kdb5_util Xsbin/ktutil Xsbin/kadmind Xsbin/kadmind4 Xsbin/v5passwdd Xsbin/kprop Xsbin/kpropd Xsbin/sserver Xsbin/sim_server Xsbin/uuserver Xsbin/kshd Xsbin/klogind Xsbin/login.krb5 Xsbin/gss-server Xsbin/ftpd Xsbin/telnetd Xshare/gnats/mit Xshare/doc/krb5/admin.html Xshare/doc/krb5/install_foot.html Xshare/doc/krb5/user-guide.html Xshare/doc/krb5/admin_foot.html Xshare/doc/krb5/install_toc.html Xshare/doc/krb5/user-guide_foot.html Xshare/doc/krb5/admin_toc.html Xshare/doc/krb5/krb425.html Xshare/doc/krb5/user-guide_toc.html Xshare/doc/krb5/install.html Xshare/doc/krb5/krb425_toc.html X@unexec install-info --delete %D/info/krb425.info %D/info/dir X@unexec install-info --delete %D/info/krb5-admin.info %D/info/dir X@unexec install-info --delete %D/info/krb5-install.info %D/info/dir X@unexec install-info --delete %D/info/krb5-user.info %D/info/dir Xinfo/krb425.info Xinfo/krb5-admin.info Xinfo/krb5-admin.info-1 Xinfo/krb5-admin.info-2 Xinfo/krb5-admin.info-3 Xinfo/krb5-install.info Xinfo/krb5-install.info-1 Xinfo/krb5-install.info-2 Xinfo/krb5-user.info X@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir X@exec install-info %D/info/krb425.info %D/info/dir X@exec install-info %D/info/krb5-admin.info %D/info/dir X@exec install-info %D/info/krb5-install.info %D/info/dir X@exec install-info %D/info/krb5-user.info %D/info/dir X@dirrm include/gssapi X@dirrm include/kerberosIV X@dirrm share/doc/krb5 END-of-krb5/pkg/PLIST exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806211800.LAA26389>