summaryrefslogtreecommitdiff
path: root/misc/compat4x/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-08-15 18:17:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-08-15 18:17:47 +0000
commitfa5fed5bbe265622edcb2bbc7cf07aae7196f1ee (patch)
tree71cea19348efc097f5dc332a3d015e3c9f75614d /misc/compat4x/Makefile
parentFix ftp/p5-Net-FTPServer build on -stable. (diff)
Change PREFIX from /usr to the default not to harm bento.
Prepare rc.d scripts that do ldconfig on startup, because $PREFIX/lib/compat and $PREFIX/lib/compat/aout are no longer included in the default $ldconfig_paths and $ldconfig_paths_aout, respectively.
Notes
Notes: svn path=/head/; revision=46292
Diffstat (limited to 'misc/compat4x/Makefile')
-rw-r--r--misc/compat4x/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/misc/compat4x/Makefile b/misc/compat4x/Makefile
index b5f948224e3c..e5ab458ba8ac 100644
--- a/misc/compat4x/Makefile
+++ b/misc/compat4x/Makefile
@@ -7,6 +7,7 @@
PORTNAME= compat4x
PORTVERSION= ${COMPAT4X_PORTVERSION}
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${COMPAT4X_MASTER_SITES}
PKGNAMESUFFIX= -${ARCH}
@@ -15,21 +16,14 @@ DIST_SUBDIR= ${ARCH}/${PORTVERSION}
MAINTAINER= hetzels@westbend.net
-PREFIX?= /usr
-
WRKSRC= ${WRKDIR}/usr/lib/compat
NO_MTREE= yes
-NO_BUILD= yes
TARGET_DIR= ${PREFIX}/lib/compat
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/compat
-.if defined(BATCH) || defined(PACKAGE_BUILDING)
-IGNORE= "does damage to bento cluster"
-.endif
-
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
@@ -66,10 +60,16 @@ do-extract:
${MV} ${WRKSRC}/libc_r.so.4 ${WRKSRC}/libc_r.so.4.compat4x
.endif
+do-build:
+ @( ${ECHO} '#!/bin/sh'; ${ECHO} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
+ ) > ${WRKDIR}/000.${PORTNAME}.sh
+
do-install:
+ ${MKDIR} ${TARGET_DIR}
${INSTALL_DATA} ${WRKSRC}/* ${TARGET_DIR}/
.if ${OSVERSION} >= 500000
${LN} -sf ${TARGET_DIR}/libc_r.so.4.compat4x ${TARGET_DIR}/libc_r.so.4
.endif
+ ${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.post.mk>