2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.23 2021/05/24 19:52:10 wiz Exp $
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2015-02-16 11:15:43 +01:00
|
|
|
PKGNAME= suse_base-${SUSE_VERSION}
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 12
|
2007-07-29 07:18:36 +02:00
|
|
|
CATEGORIES= emulators
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
MAINTAINER= tonio@NetBSD.org
|
|
|
|
COMMENT= Linux compatibility package
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 linuxppc_lib-[0-9]*
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
# These files are managed by the +INSTALL/+DEINSTALL scripts.
|
|
|
|
CHECK_FILES_SKIP+= ${EMULDIR}/dev/.*
|
|
|
|
CHECK_FILES_SKIP+= ${EMULDIR}/etc/ld.so.cache
|
|
|
|
CHECK_FILES_SKIP+= ${EMULDIR}/usr/@LINUX_LIBSUBDIR@/libz.so.1
|
2006-03-09 21:33:46 +01:00
|
|
|
|
|
|
|
RPMIGNOREPATH= ./etc/bash.bashrc ./etc/bash_completion.d \
|
|
|
|
./etc/cron.daily ./etc/csh.cshrc ./etc/csh.login \
|
|
|
|
./etc/inittab ./etc/hushlogins ./etc/java \
|
|
|
|
./etc/mailcap ./etc/mime.types ./etc/nsswitch.conf \
|
|
|
|
./etc/pam.d ./etc/profile ./etc/profile.dos \
|
|
|
|
./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
|
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
LINUX_LDD= ${EMULDIR}/usr/bin/ldd
|
2017-08-21 14:49:16 +02:00
|
|
|
LINUX_LDCONFIG= ${EMULDIR}/sbin/ldconfig
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2009-06-05 13:20:27 +02:00
|
|
|
INSTALLATION_DIRS+= sbin emul/linux/etc
|
2007-07-29 07:18:36 +02:00
|
|
|
OWN_DIRS+= ${EMULSUBDIR}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= suse
|
|
|
|
SUBST_STAGE.suse= do-build
|
|
|
|
SUBST_FILES.suse= SuSE-release linux-mkpwd.sh
|
2007-07-31 00:01:11 +02:00
|
|
|
SUBST_VARS.suse= EMULDIR LINUX_BASE SUSE_ARCH SUSE_VERSION
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
# Some platforms, e.g. FreeBSD, need to "brand" the ELF binaries to
|
|
|
|
# the correct type.
|
|
|
|
#
|
2009-06-05 13:20:27 +02:00
|
|
|
BRANDELF_CMD= ${BRANDELF:D${BRANDELF} -t Linux ${DESTDIR}${LINUX_LDCONFIG}:U${TRUE}}
|
2007-04-19 17:30:20 +02:00
|
|
|
|
2017-08-21 14:49:16 +02:00
|
|
|
# This package provides the ldconfig(8) binary, so that binary can't
|
|
|
|
# be used during postremove.
|
|
|
|
#
|
|
|
|
LDCONFIG_REMOVE_CMD= ${TRUE}
|
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/SuSE-release ${WRKSRC}
|
|
|
|
${CP} ${FILESDIR}/*.sh ${WRKSRC}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
|
|
|
do-install:
|
2007-07-29 07:18:36 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/linux-mkpwd.sh \
|
2009-06-05 13:20:27 +02:00
|
|
|
${DESTDIR}${PREFIX}/sbin/${LINUX_BASE}-mkpwd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SuSE-release ${DESTDIR}${EMULDIR}/etc
|
2007-07-29 07:18:36 +02:00
|
|
|
${BRANDELF_CMD}
|
2006-09-19 21:58:46 +02:00
|
|
|
${SED} -e 's:#! :#! ${EMULDIR}:' \
|
2006-03-09 21:33:46 +01:00
|
|
|
-e 's:^RTLD=:RTLD=/${EMULSUBDIR}:' \
|
2009-06-05 13:20:27 +02:00
|
|
|
${DESTDIR}${LINUX_LDD} > ${DESTDIR}${LINUX_LDD}.new
|
|
|
|
${MV} ${DESTDIR}${LINUX_LDD}.new ${DESTDIR}${LINUX_LDD}
|
|
|
|
${CHMOD} +x ${DESTDIR}${LINUX_LDD}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
|
|
|
.include "../../emulators/suse100_linux/Makefile.common"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|