2002-12-09 22:34:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.35 2002/12/09 21:34:59 tron Exp $
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2002-02-21 18:27:05 +01:00
|
|
|
DISTNAME= suse_base-${SUSE_VERSION}
|
2002-12-09 22:34:58 +01:00
|
|
|
PKGREVISION= 2
|
1999-05-24 22:39:35 +02:00
|
|
|
CATEGORIES= emulators
|
2001-01-28 10:19:54 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUSE:=a1/} \
|
2002-10-09 09:58:47 +02:00
|
|
|
${MASTER_SITE_SUSE_UPD:=a1/}
|
1999-09-20 01:58:36 +02:00
|
|
|
DISTFILES= ${RPMFILES}
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2001-01-25 10:16:24 +01:00
|
|
|
MAINTAINER= tron@netbsd.org
|
1999-05-24 22:39:35 +02:00
|
|
|
HOMEPAGE= http://www.suse.com/
|
2001-02-17 19:38:11 +01:00
|
|
|
COMMENT= Linux compatibility package
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2002-11-25 12:16:01 +01:00
|
|
|
CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 linuxppc_lib-[0-9]*
|
2002-11-25 12:01:13 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-1.5Z[C-Z]-i386 NetBSD-1.6*-i386 NetBSD-*-powerpc
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2002-08-25 23:48:57 +02:00
|
|
|
USE_BUILDLINK2= # defined
|
1999-05-24 22:39:35 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2002-11-25 12:01:13 +01:00
|
|
|
RPMFILES= aaa_dir.rpm gppshare.rpm ncurses.rpm \
|
2002-04-04 11:46:51 +02:00
|
|
|
readline.rpm bash.rpm sh-utils.rpm
|
2002-11-25 12:01:13 +01:00
|
|
|
|
|
|
|
.include "../suse_linux/arch.mk"
|
|
|
|
|
|
|
|
.if ${SUSE_ARCH} == "i386"
|
|
|
|
RPMFILES+= glibc-2.2.4-77.${SUSE_ARCH}.rpm libz-1.1.3-597.${SUSE_ARCH}.rpm
|
|
|
|
.else
|
|
|
|
RPMFILES+= glibc.rpm libz.rpm
|
|
|
|
.endif
|
|
|
|
|
1999-09-20 01:58:36 +02:00
|
|
|
RPMIGNOREPATH= tmp usr/tmp var
|
|
|
|
|
2000-08-25 02:20:21 +02:00
|
|
|
LINUX_LDD= ${PREFIX}/${EMULSUBDIR}/usr/bin/ldd
|
2000-11-01 17:08:02 +01:00
|
|
|
|
1999-05-17 02:14:49 +02:00
|
|
|
do-build:
|
2001-10-25 22:58:50 +02:00
|
|
|
@for FILE in ${PKGDIR}/PLIST ${FILESDIR}/*.sh; do \
|
1999-05-24 22:39:35 +02:00
|
|
|
${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \
|
|
|
|
-e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \
|
|
|
|
<$$FILE >${WRKDIR}/`basename $$FILE`; \
|
|
|
|
done
|
1999-05-17 02:14:49 +02:00
|
|
|
|
|
|
|
do-install:
|
1999-09-20 01:58:36 +02:00
|
|
|
for FILE in ${WRKDIR}/*.sh; do \
|
|
|
|
${INSTALL_SCRIPT} $$FILE ${PREFIX}/sbin/`basename $$FILE .sh`; \
|
1999-05-24 22:39:35 +02:00
|
|
|
done
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EMULDIR}/dev
|
1999-05-24 22:39:35 +02:00
|
|
|
${LN} -fs /dev/sound ${EMULDIR}/dev/dsp
|
|
|
|
${LN} -fs /dev/null ${EMULDIR}/dev/null
|
|
|
|
@${CP} ${WRKDIR}/PLIST ${PLIST_SRC}
|
1999-09-20 01:58:36 +02:00
|
|
|
${RPM2PKG} ${RPM2PKGARGS}
|
|
|
|
${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}
|
1999-05-24 22:39:35 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/ld.so.conf ${EMULDIR}/etc
|
1999-09-20 01:58:36 +02:00
|
|
|
${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|
|
|
|
${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
|
|
|
|
>>${PLIST_SRC}
|
2000-08-25 02:20:21 +02:00
|
|
|
${SED} -e 's:#! :#! /${EMULSUBDIR}:' \
|
|
|
|
-e 's:^RTLD=:RTLD=/${EMULSUBDIR}:' \
|
|
|
|
< ${LINUX_LDD} > ${LINUX_LDD}.new
|
|
|
|
${MV} ${LINUX_LDD}.new ${LINUX_LDD}
|
|
|
|
${CHMOD} +x ${LINUX_LDD}
|
1999-05-24 22:39:35 +02:00
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} - POST-INSTALL
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2000-12-16 23:37:30 +01:00
|
|
|
.include "../suse_linux/Makefile.common"
|