2001-08-13 00:32:06 -04:00
|
|
|
# New ports collection makefile for: compat3x libraries
|
|
|
|
# Date created: 01 Aug 2001
|
|
|
|
# Whom: Scot W. Hetzel
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= compat3x
|
2001-10-12 03:37:15 -04:00
|
|
|
PORTVERSION= ${COMPAT3X_PORTVERSION}
|
2001-08-13 00:32:06 -04:00
|
|
|
CATEGORIES= misc
|
2001-10-12 03:37:15 -04:00
|
|
|
MASTER_SITES= ${COMPAT3X_MASTER_SITES}
|
|
|
|
MASTER_SITE_SUBDIR= ${COMPAT3X_MASTER_SITE_SUBDIR}
|
2001-08-13 00:32:06 -04:00
|
|
|
PKGNAMESUFFIX= -${ARCH}
|
2001-10-12 03:37:15 -04:00
|
|
|
DISTFILES= ${COMPAT3X_DISTFILES}
|
2001-08-13 00:32:06 -04:00
|
|
|
DIST_SUBDIR= ${ARCH}/${PORTVERSION}
|
|
|
|
|
2001-10-12 03:37:15 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2001-08-13 00:32:06 -04:00
|
|
|
|
2002-07-24 04:57:53 -04:00
|
|
|
FORBIDDEN= "FreeBSD-SA-02:28.resolv - buffer overflow in resolver in libc"
|
|
|
|
|
2001-08-13 00:32:06 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/usr/lib/compat
|
|
|
|
NO_MTREE= yes
|
|
|
|
|
|
|
|
TARGET_DIR= ${PREFIX}/lib/compat
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/compat
|
|
|
|
|
2001-08-15 14:17:47 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-10-12 03:37:15 -04:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
COMPAT3X_OSVERSION= 5.0
|
2002-02-26 03:59:50 -05:00
|
|
|
COMPAT3X_OSRELDATE= 20020219
|
2001-10-12 03:37:15 -04:00
|
|
|
COMPAT3X_OSBRANCH= CURRENT
|
|
|
|
COMPAT3X_MASTER_SITES= ftp://current.FreeBSD.org/pub/FreeBSD/%SUBDIR%/
|
|
|
|
COMPAT3X_DISTFILES= ${PORTNAME}.aa \
|
|
|
|
${PORTNAME}.ab \
|
|
|
|
${PORTNAME}.ac \
|
|
|
|
${PORTNAME}.ad \
|
|
|
|
${PORTNAME}.ae \
|
|
|
|
${PORTNAME}.af \
|
|
|
|
${PORTNAME}.ag
|
|
|
|
PLIST_SUB= CURRENT_ONLY:=""
|
|
|
|
.else
|
|
|
|
COMPAT3X_OSVERSION= 4.4
|
2001-12-28 12:36:18 -05:00
|
|
|
COMPAT3X_OSRELDATE= 20011227
|
2001-10-12 03:37:15 -04:00
|
|
|
COMPAT3X_OSBRANCH= STABLE
|
|
|
|
COMPAT3X_MASTER_SITES= ftp://stable.FreeBSD.org/pub/FreeBSD/%SUBDIR%/
|
|
|
|
COMPAT3X_DISTFILES= ${PORTNAME}.aa \
|
|
|
|
${PORTNAME}.ab \
|
|
|
|
${PORTNAME}.ac \
|
|
|
|
${PORTNAME}.ad \
|
2001-12-28 12:36:18 -05:00
|
|
|
${PORTNAME}.ae
|
2001-10-12 03:37:15 -04:00
|
|
|
PLIST_SUB= CURRENT_ONLY:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(COMPAT3X_OSRELDATE) && !empty(COMPAT3X_OSRELDATE)
|
|
|
|
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}.${COMPAT3X_OSRELDATE}
|
|
|
|
COMPAT3X_MASTER_SITE_SUBDIR= snapshots/${ARCH}/${COMPAT3X_OSVERSION}-${COMPAT3X_OSRELDATE}-${COMPAT3X_OSBRANCH}/${PORTNAME}
|
|
|
|
.else
|
|
|
|
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}
|
|
|
|
COMPAT3X_MASTER_SITE_SUBDIR= releases/${ARCH}/${COMPAT3X_OSVERSION}-RELEASE/${PORTNAME}
|
|
|
|
.endif
|
2001-08-15 03:40:36 -04:00
|
|
|
|
2001-08-13 00:32:06 -04:00
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
cd ${_DISTDIR} && ${CAT} ${DISTFILES} | ${TAR} -xzf - -C ${WRKDIR}
|
2001-12-28 12:36:18 -05:00
|
|
|
if [ -e ${WRKSRC}/libc_r.so.4 ]; then \
|
|
|
|
${MV} ${WRKSRC}/libc_r.so.4 ${WRKSRC}/libc_r.so.4.compat3x; \
|
|
|
|
fi
|
2001-08-13 00:32:06 -04:00
|
|
|
|
2001-08-15 14:17:47 -04:00
|
|
|
do-build:
|
2002-01-29 06:48:57 -05:00
|
|
|
@( ${ECHO_CMD} '#!/bin/sh'; ${ECHO_CMD} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
|
2001-08-15 14:17:47 -04:00
|
|
|
) > ${WRKDIR}/000.${PORTNAME}.sh
|
|
|
|
|
2001-08-13 00:32:06 -04:00
|
|
|
do-install:
|
2001-08-24 10:55:36 -04:00
|
|
|
${MKDIR} ${TARGET_DIR} ${PREFIX}/etc/rc.d
|
2001-08-13 00:32:06 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/* ${TARGET_DIR}/
|
2001-12-28 12:36:18 -05:00
|
|
|
if [ -e ${TARGET_DIR}/libc_r.so.4.compat3x -a ! -e ${TARGET_DIR}/libc_r.so.4.compat4x ]; then \
|
2001-08-13 00:32:06 -04:00
|
|
|
${LN} -sf ${TARGET_DIR}/libc_r.so.4.compat3x ${TARGET_DIR}/libc_r.so.4; \
|
|
|
|
fi
|
2001-08-15 14:17:47 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
|
2001-08-13 00:32:06 -04:00
|
|
|
|
2001-08-15 14:17:47 -04:00
|
|
|
.include <bsd.port.post.mk>
|