aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb5
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>1998-11-07 10:33:51 +0800
committernectar <nectar@FreeBSD.org>1998-11-07 10:33:51 +0800
commit7bb3e2fa952d9e6907c4cd6d0daefc278fbcf825 (patch)
treeacf9f112d20075b5e3d772480b6c997f0d8fb8b5 /security/krb5
parent972888c9704aea4a824fcd9d05e155776bb52ec5 (diff)
downloadfreebsd-ports-gnome-7bb3e2fa952d9e6907c4cd6d0daefc278fbcf825.tar.gz
freebsd-ports-gnome-7bb3e2fa952d9e6907c4cd6d0daefc278fbcf825.tar.zst
freebsd-ports-gnome-7bb3e2fa952d9e6907c4cd6d0daefc278fbcf825.zip
Build and install correctly for a.out and ELF.
Diffstat (limited to 'security/krb5')
-rw-r--r--security/krb5/Makefile15
-rw-r--r--security/krb5/pkg-plist35
2 files changed, 35 insertions, 15 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile
index b35ac831039d..e8c16064d25d 100644
--- a/security/krb5/Makefile
+++ b/security/krb5/Makefile
@@ -3,7 +3,7 @@
# Date created: 6/5/1998
# Whom: n@nectar.com
#
-# $Id: Makefile,v 1.5 1998/09/14 19:23:42 markm Exp $
+# $Id: Makefile,v 1.6 1998/09/27 11:34:28 markm Exp $
#
DISTNAME= krb5-1.0.5
@@ -154,8 +154,8 @@ do-fetch:
pre-configure: ${RECONF_COOKIE}
${RECONF_COOKIE}:
- @(cd ${WRKSRC}/util/autoconf && ./configure && gmake)
- @(cd ${WRKSRC} && ./util/reconf --force)
+ ${SETENV} PORTOBJFORMAT="${PORTOBJFORMAT}" \
+ ${SH} -c 'cd ${WRKSRC}/util/autoconf && ./configure && ${GMAKE} && cd ${WRKSRC} && ./util/reconf --force'
${TOUCH} ${RECONF_COOKIE}
post-build:
@@ -168,7 +168,7 @@ post-install:
# it, I think.
@rm -f ${PREFIX}/man/man1/tmac.doc
# shared libs
- ${LDCONFIG} -m ${PREFIX}/lib
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
# html documentation
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
@${MKDIR} ${PREFIX}/share/doc/krb5
@@ -191,5 +191,12 @@ post-install:
.for info in ${INFO_FILES:M*.info}
install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
.endfor
+# fixup packing list (no libs without version numbers in aout case)
+ @if test "${PORTOBJFORMAT}" = "aout"; then \
+ ${ECHO_MSG} "Fixing packing list for a.out"; \
+ ${MV} ${TMPPLIST} ${TMPPLIST}.new; \
+ ${GREP} -v '\.so$$' ${TMPPLIST}.new > ${TMPPLIST}; \
+ ${RM} ${TMPPLIST}.new; \
+ fi
.include <bsd.port.mk>
diff --git a/security/krb5/pkg-plist b/security/krb5/pkg-plist
index f8217f7531dd..2f984b9e344a 100644
--- a/security/krb5/pkg-plist
+++ b/security/krb5/pkg-plist
@@ -28,29 +28,40 @@ include/mit-sipb-copyright.h
include/libpty.h
include/krb5.h
lib/libcom_err.a
-lib/libcom_err.so.1.0
+lib/libcom_err.so
+lib/libcom_err.so.1
lib/libpty.a
lib/libdyn.a
-lib/libdyn.so.1.0
-lib/libcrypto.so.1.0
+lib/libdyn.so
+lib/libdyn.so.1
+lib/libcrypto.so
+lib/libcrypto.so.1
lib/libcrypto.a
-lib/libkrb5.so.1.0
+lib/libkrb5.so
+lib/libkrb5.so.1
lib/libkrb5.a
lib/libdes425.a
-lib/libdes425.so.1.0
-lib/libkrb4.so.1.0
+lib/libdes425.so
+lib/libdes425.so.1
+lib/libkrb4.so
+lib/libkrb4.so.1
lib/libkrb4.a
lib/libkrb5util.a
-lib/libkdb5.so.1.0
+lib/libkdb5.so
+lib/libkdb5.so.1
lib/libkdb5.a
lib/libgssapi_krb5.a
-lib/libgssapi_krb5.so.1.0
+lib/libgssapi_krb5.so
+lib/libgssapi_krb5.so.1
lib/libgssrpc.a
-lib/libgssrpc.so.1.0
+lib/libgssrpc.so
+lib/libgssrpc.so.1
lib/libkadm5clnt.a
-lib/libkadm5clnt.so.1.0
+lib/libkadm5clnt.so
+lib/libkadm5clnt.so.1
lib/libkadm5srv.a
-lib/libkadm5srv.so.1.0
+lib/libkadm5srv.so
+lib/libkadm5srv.so.1
lib/libkrb524.a
@exec /sbin/ldconfig -m %D/lib
sbin/krb5-send-pr
@@ -86,6 +97,8 @@ share/doc/krb5/krb425.html
share/doc/krb5/user-guide_toc.html
share/doc/krb5/install.html
share/doc/krb5/krb425_toc.html
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
@unexec install-info --delete %D/info/krb425.info %D/info/dir
@unexec install-info --delete %D/info/krb5-admin.info %D/info/dir
@unexec install-info --delete %D/info/krb5-install.info %D/info/dir