blob: 574ea61994f3810e630c219a652494fc3ce44092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.2 2002/08/02 15:36:49 grant Exp $
DISTNAME= suse_base-${SUSE_VERSION}
PKGREVISION= 5
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SUSE:=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-*-i386
EXTRACT_ONLY= # empty
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
RPMFILES= aaa_dir.rpm shlibs.rpm libz.rpm \
bash.rpm gppshare.rpm ncurses.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 "../suse64_linux/Makefile.common"
|