diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 1998-10-07 19:34:46 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 1998-10-07 19:34:46 +0000 |
commit | de2c0f5c6dde369d1823bdafb59f1221d0e69377 (patch) | |
tree | ab2167ea3878982a9214563e1c64906ee2f6def3 | |
parent | Update to ELF and v1.0r7. This version supports only one type of (diff) |
Build and install a shared library version, too.
Notes
Notes:
svn path=/head/; revision=13717
-rw-r--r-- | dns/hesiod/Makefile | 23 | ||||
-rw-r--r-- | dns/hesiod/files/patch-aa | 39 | ||||
-rw-r--r-- | dns/hesiod/pkg-plist | 4 | ||||
-rw-r--r-- | net/hesiod/Makefile | 23 | ||||
-rw-r--r-- | net/hesiod/files/patch-aa | 39 | ||||
-rw-r--r-- | net/hesiod/pkg-plist | 4 |
6 files changed, 128 insertions, 4 deletions
diff --git a/dns/hesiod/Makefile b/dns/hesiod/Makefile index 1811cdec3a57..62e9db4ddeac 100644 --- a/dns/hesiod/Makefile +++ b/dns/hesiod/Makefile @@ -3,14 +3,14 @@ # Date created: 6/11/1998 # Whom: n@nectar.com # -# $Id: Makefile,v 1.1.1.1 1998/07/04 19:51:53 steve Exp $ +# $Id: Makefile,v 1.2 1998/07/05 13:09:46 asami Exp $ # DISTNAME= hesiod-3.0.2 CATEGORIES= net MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/ -MAINTAINER= n@nectar.com +MAINTAINER= nectar@FreeBSD.ORG MAN1= hesinfo.1 MAN3= hesiod.3 hesiod_end.3 hesiod_free_list.3 \ @@ -23,4 +23,23 @@ MAN5= hesiod.conf.5 GNU_CONFIGURE= YES +post-install: + ${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib + .include <bsd.port.mk> + +.if !defined(PORTOBJFORMAT) # bsd.port.mk must be out of date +PORTOBJFORMAT= aout +CONFIGURE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}" +MAKE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}" +.endif + +.if ${PORTOBJFORMAT} == elf +SHLIB=libhesiod.so.3 +CONFIGURE_ENV+= LDFLAGS="-shared -Wl,-soname,${SHLIB}" +.else +SHLIB=libhesiod.so.3.0 +CONFIGURE_ENV+= LDFLAGS="-shared" +.endif + +MAKE_ENV+= SHLIB="${SHLIB}" diff --git a/dns/hesiod/files/patch-aa b/dns/hesiod/files/patch-aa new file mode 100644 index 000000000000..828e32f794d5 --- /dev/null +++ b/dns/hesiod/files/patch-aa @@ -0,0 +1,39 @@ +--- Makefile.in.orig Fri Jan 3 15:02:55 1997 ++++ Makefile.in Wed Oct 7 11:43:17 1998 +@@ -24,12 +24,15 @@ + ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} + OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o + +-all: libhesiod.a hesinfo hestest ++all: libhesiod.a hesinfo hestest ${SHLIB} + + libhesiod.a: ${OBJS} + ar cru $@ ${OBJS} + ${RANLIB} $@ + ++${SHLIB}: ${OBJS} ++ ${CC} ${LDFLAGS} ${OBJS} -o ${SHLIB} ++ + hesinfo: hesinfo.o libhesiod.a + ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.a ${LIBS} + +@@ -55,6 +58,9 @@ + ${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir} + ${RANLIB} ${DESTDIR}${libdir}/libhesiod.a + chmod u-w ${DESTDIR}${libdir}/libhesiod.a ++ ${INSTALL} -c -m 444 ${SHLIB} ${DESTDIR}${libdir} ++ ln -f -s ${DESTDIR}${libdir}/${SHLIB} \ ++ ${DESTDIR}${libdir}/libhesiod.so + ${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir} + ${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir} + ${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1 +@@ -85,7 +93,8 @@ + ${INSTALL} -c -m 444 ${srcdir}/hesiod.conf.5 ${DESTDIR}${mandir}/man5 + + clean: +- rm -f ${OBJS} libhesiod.a hesinfo.o hesinfo hestest.o hestest ++ rm -f ${OBJS} libhesiod.a hesinfo.o hesinfo hestest.o hestest \ ++ libhesiod.so.3 + + distclean: clean + rm -f config.cache config.log config.status Makefile config.h diff --git a/dns/hesiod/pkg-plist b/dns/hesiod/pkg-plist index 8c543613add2..28c4a601457c 100644 --- a/dns/hesiod/pkg-plist +++ b/dns/hesiod/pkg-plist @@ -1,3 +1,7 @@ bin/hesinfo include/hesiod.h lib/libhesiod.a +lib/libhesiod.so +lib/libhesiod.so.3.0 +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R diff --git a/net/hesiod/Makefile b/net/hesiod/Makefile index 1811cdec3a57..62e9db4ddeac 100644 --- a/net/hesiod/Makefile +++ b/net/hesiod/Makefile @@ -3,14 +3,14 @@ # Date created: 6/11/1998 # Whom: n@nectar.com # -# $Id: Makefile,v 1.1.1.1 1998/07/04 19:51:53 steve Exp $ +# $Id: Makefile,v 1.2 1998/07/05 13:09:46 asami Exp $ # DISTNAME= hesiod-3.0.2 CATEGORIES= net MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/ -MAINTAINER= n@nectar.com +MAINTAINER= nectar@FreeBSD.ORG MAN1= hesinfo.1 MAN3= hesiod.3 hesiod_end.3 hesiod_free_list.3 \ @@ -23,4 +23,23 @@ MAN5= hesiod.conf.5 GNU_CONFIGURE= YES +post-install: + ${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib + .include <bsd.port.mk> + +.if !defined(PORTOBJFORMAT) # bsd.port.mk must be out of date +PORTOBJFORMAT= aout +CONFIGURE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}" +MAKE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}" +.endif + +.if ${PORTOBJFORMAT} == elf +SHLIB=libhesiod.so.3 +CONFIGURE_ENV+= LDFLAGS="-shared -Wl,-soname,${SHLIB}" +.else +SHLIB=libhesiod.so.3.0 +CONFIGURE_ENV+= LDFLAGS="-shared" +.endif + +MAKE_ENV+= SHLIB="${SHLIB}" diff --git a/net/hesiod/files/patch-aa b/net/hesiod/files/patch-aa new file mode 100644 index 000000000000..828e32f794d5 --- /dev/null +++ b/net/hesiod/files/patch-aa @@ -0,0 +1,39 @@ +--- Makefile.in.orig Fri Jan 3 15:02:55 1997 ++++ Makefile.in Wed Oct 7 11:43:17 1998 +@@ -24,12 +24,15 @@ + ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} + OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o + +-all: libhesiod.a hesinfo hestest ++all: libhesiod.a hesinfo hestest ${SHLIB} + + libhesiod.a: ${OBJS} + ar cru $@ ${OBJS} + ${RANLIB} $@ + ++${SHLIB}: ${OBJS} ++ ${CC} ${LDFLAGS} ${OBJS} -o ${SHLIB} ++ + hesinfo: hesinfo.o libhesiod.a + ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.a ${LIBS} + +@@ -55,6 +58,9 @@ + ${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir} + ${RANLIB} ${DESTDIR}${libdir}/libhesiod.a + chmod u-w ${DESTDIR}${libdir}/libhesiod.a ++ ${INSTALL} -c -m 444 ${SHLIB} ${DESTDIR}${libdir} ++ ln -f -s ${DESTDIR}${libdir}/${SHLIB} \ ++ ${DESTDIR}${libdir}/libhesiod.so + ${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir} + ${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir} + ${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1 +@@ -85,7 +93,8 @@ + ${INSTALL} -c -m 444 ${srcdir}/hesiod.conf.5 ${DESTDIR}${mandir}/man5 + + clean: +- rm -f ${OBJS} libhesiod.a hesinfo.o hesinfo hestest.o hestest ++ rm -f ${OBJS} libhesiod.a hesinfo.o hesinfo hestest.o hestest \ ++ libhesiod.so.3 + + distclean: clean + rm -f config.cache config.log config.status Makefile config.h diff --git a/net/hesiod/pkg-plist b/net/hesiod/pkg-plist index 8c543613add2..28c4a601457c 100644 --- a/net/hesiod/pkg-plist +++ b/net/hesiod/pkg-plist @@ -1,3 +1,7 @@ bin/hesinfo include/hesiod.h lib/libhesiod.a +lib/libhesiod.so +lib/libhesiod.so.3.0 +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R |