2001-10-25 22:58:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2001/10/25 20:58:50 agc Exp $
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2001-09-19 15:41:29 +02:00
|
|
|
DISTNAME= suse_base-${SUSE_VERSION}nb3
|
1999-05-24 22:39:35 +02:00
|
|
|
CATEGORIES= emulators
|
2001-01-28 10:19:54 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUSE:=a1/} \
|
|
|
|
ftp://ftp.suse.com/pub/suse/i386/update/${SUSE_VERSION}/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
|
|
|
|
2000-01-09 08:10:37 +01:00
|
|
|
CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 suse_base-6.1
|
1999-09-20 01:58:36 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
1999-05-17 02:14:49 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
1999-05-17 02:14:49 +02:00
|
|
|
|
2001-01-28 10:19:54 +01:00
|
|
|
RPMFILES= aaa_dir.rpm shlibs-2.1.3-155.i386.rpm libz.rpm \
|
2001-09-19 15:41:29 +02:00
|
|
|
bash.rpm gppshare.rpm ncurses.rpm sh_utils.rpm
|
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"
|