996ee5c643
security vulnerabilities and is no longer available from the master site. Bump PKGREVISION.
56 lines
1.8 KiB
Makefile
56 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2002/10/09 07:14:26 grant Exp $
|
|
|
|
DISTNAME= suse_base-${SUSE_VERSION}
|
|
CATEGORIES= emulators
|
|
PKGREVISION= 1
|
|
MASTER_SITES= ${MASTER_SITE_SUSE:=a1/} \
|
|
ftp://ftp.suse.com/pub/suse/i386/update/${SUSE_VERSION}/a1/
|
|
DISTFILES= ${RPMFILES}
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
HOMEPAGE= http://www.suse.com/
|
|
COMMENT= Linux compatibility package
|
|
|
|
CONFLICTS= linux_SuSE-5.3 linux_lib-2.4
|
|
ONLY_FOR_PLATFORM= NetBSD-1.5Z[C-Z]-i386 NetBSD-1.6*-i386
|
|
|
|
USE_BUILDLINK2= # defined
|
|
EXTRACT_ONLY= # empty
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
|
|
|
RPMFILES= aaa_dir.rpm glibc-2.2.4-77.i386.rpm \
|
|
gppshare.rpm libz-1.1.3-597.i386.rpm ncurses.rpm \
|
|
readline.rpm bash.rpm sh-utils.rpm
|
|
RPMIGNOREPATH= tmp usr/tmp var
|
|
|
|
LINUX_LDD= ${PREFIX}/${EMULSUBDIR}/usr/bin/ldd
|
|
|
|
do-build:
|
|
@for FILE in ${PKGDIR}/PLIST ${FILESDIR}/*.sh; do \
|
|
${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \
|
|
-e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \
|
|
<$$FILE >${WRKDIR}/`basename $$FILE`; \
|
|
done
|
|
|
|
do-install:
|
|
for FILE in ${WRKDIR}/*.sh; do \
|
|
${INSTALL_SCRIPT} $$FILE ${PREFIX}/sbin/`basename $$FILE .sh`; \
|
|
done
|
|
${INSTALL_DATA_DIR} ${EMULDIR}/dev
|
|
${LN} -fs /dev/sound ${EMULDIR}/dev/dsp
|
|
${LN} -fs /dev/null ${EMULDIR}/dev/null
|
|
@${CP} ${WRKDIR}/PLIST ${PLIST_SRC}
|
|
${RPM2PKG} ${RPM2PKGARGS}
|
|
${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}
|
|
${INSTALL_DATA} ${FILESDIR}/ld.so.conf ${EMULDIR}/etc
|
|
${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|
|
${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
|
|
>>${PLIST_SRC}
|
|
${SED} -e 's:#! :#! /${EMULSUBDIR}:' \
|
|
-e 's:^RTLD=:RTLD=/${EMULSUBDIR}:' \
|
|
< ${LINUX_LDD} > ${LINUX_LDD}.new
|
|
${MV} ${LINUX_LDD}.new ${LINUX_LDD}
|
|
${CHMOD} +x ${LINUX_LDD}
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} - POST-INSTALL
|
|
|
|
.include "../suse_linux/Makefile.common"
|