mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Add a port for linux_base-debian 3.0.23,
an alternative linux emulation base of emulators/linux_base
This commit is contained in:
parent
8e9932fefb
commit
6cbdc9ab5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79229
@ -41,6 +41,7 @@
|
||||
SUBDIR += linux-winetools
|
||||
SUBDIR += linux_base
|
||||
SUBDIR += linux_base-6
|
||||
SUBDIR += linux_base-debian
|
||||
SUBDIR += mastergear
|
||||
SUBDIR += minivmac
|
||||
SUBDIR += mtools
|
||||
|
109
emulators/linux_base-debian/Makefile
Normal file
109
emulators/linux_base-debian/Makefile
Normal file
@ -0,0 +1,109 @@
|
||||
# Ports collection makefile for: linux_base-debian
|
||||
# Date created: 17 April 2003
|
||||
# Whom: Hye-Shik Chang <perky@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= linux_base
|
||||
PORTVERSION= 3.0.23
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN}
|
||||
MASTER_SITE_SUBDIR= dists/woody/main/disks-${ARCH}/base-images-${PORTVERSION}-${DISTDATE} \
|
||||
pool/main/u/util-linux
|
||||
PKGNAMESUFFIX= -debian
|
||||
DISTFILES= basedebs.tar util-linux-locales_2.11n-4_all.deb
|
||||
EXTRACT_ONLY= basedebs.tar
|
||||
|
||||
MAINTAINER= perky@FreeBSD.org
|
||||
COMMENT= Debian base set for the Linux mode
|
||||
|
||||
BUILD_DEPENDS= ${DPKG_CMD}:${PORTSDIR}/archivers/dpkg
|
||||
|
||||
DIST_SUBDIR= debian-${PORTVERSION}-${DISTDATE}
|
||||
DISTDATE= 2002-07-18
|
||||
WRKSRC= ${WRKDIR}/var/cache/apt/archives
|
||||
NO_BUILD= yes
|
||||
NO_MTREE= yes
|
||||
NO_FILTER_SHLIBS= yes
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
PREFIX?= ${LINUXBASE}
|
||||
DPKGDB= ${PREFIX}/var/lib/dpkg
|
||||
DPKG_CMD?= ${LOCALBASE}/bin/dpkg
|
||||
DPKG_ARGS= --force-architecture --force-depends
|
||||
DPKG= ${BATCHENV} ${DPKG_CMD} --root=${PREFIX} \
|
||||
--admindir=${DPKGDB} ${DPKG_ARGS}
|
||||
LIBC6NAME= libc6_2.2.5-6_${ARCH}
|
||||
INSTALL_INFO?= install-info
|
||||
|
||||
.if defined(BATCH)
|
||||
BATCHENV= DEBIAN_FRONTEND=Noninteractive
|
||||
.endif
|
||||
|
||||
BASEPACKAGES= adduser apt-utils apt base-config base-files base-passwd \
|
||||
bash bsdmainutils bsdutils console-common console-data \
|
||||
console-tools console-tools-libs cpio debconf debianutils \
|
||||
diff e2fsprogs ed fdutils fileutils findutils gettext-base \
|
||||
grep groff-base gzip hostname info libcap1 libdb2 libdb3 \
|
||||
libgdbmg1 libident libldap2 liblockfile1 libncurses5 \
|
||||
libnewt0 libpam-modules libpam-runtime libpam0g libpcap0 \
|
||||
libpcre3 libpopt0 libreadline4 libsasl7 \
|
||||
libstdc++2.10-glibc2.2 libwrap0 login man-db manpages \
|
||||
mawk modutils mount nano ncurses-base ncurses-bin net-tools \
|
||||
netkit-inetd netkit-ping nvi passwd perl-base procps \
|
||||
psmisc sed shellutils slang1 sysvinit tar tasksel tcpd \
|
||||
telnet textutils util-linux util-linux-locales whiptail
|
||||
|
||||
post-extract:
|
||||
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/util-linux-locales_2.11n-4_all.deb \
|
||||
${WRKSRC}
|
||||
|
||||
do-patch:
|
||||
cd ${WRKSRC} && \
|
||||
${DPKG_CMD} -x ${LIBC6NAME}.deb ${LIBC6NAME} && \
|
||||
${DPKG_CMD} -e ${LIBC6NAME}.deb ${LIBC6NAME}/DEBIAN && \
|
||||
brandelf -t Linux ${WRKSRC}/${LIBC6NAME}/sbin/ldconfig && \
|
||||
${DPKG_CMD} -b ${LIBC6NAME}
|
||||
|
||||
pre-install:
|
||||
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGREQ} INSTALL
|
||||
|
||||
do-install:
|
||||
# Create /dev/null for the chrooted environment
|
||||
${MKDIR} ${PREFIX}/dev
|
||||
${RM} -f ${PREFIX}/dev/null
|
||||
mknod ${PREFIX}/dev/null c 2 2
|
||||
${CHMOD} 666 ${PREFIX}/dev/null
|
||||
|
||||
# Extract packages that will be used while the install session
|
||||
${MKDIR} ${DPKGDB}
|
||||
.for pkg in dpkg shellutils libc6 debconf bash libncurses5 fileutils \
|
||||
perl-base sysvinit textutils grep sed findutils
|
||||
${DPKG_CMD} -x ${WRKSRC}/${pkg}_*.deb ${PREFIX}
|
||||
.endfor
|
||||
|
||||
# Touch empty data files
|
||||
${MKDIR} ${PREFIX}/usr/info
|
||||
${INSTALL_INFO} ${PREFIX}/usr/share/info/fileutils.info.gz \
|
||||
${PREFIX}/usr/info/dir
|
||||
${TOUCH} ${DPKGDB}/status ${DPKGDB}/available
|
||||
|
||||
# Pre-generate timezone file for noninteractive
|
||||
.if defined(BATCH)
|
||||
${ECHO_CMD} "Etc/GMT" > ${PREFIX}/etc/timezone
|
||||
.endif
|
||||
|
||||
# Install the `special' base packages that must be installed before all
|
||||
${DPKG} -i ${WRKSRC}/dpkg_*.deb
|
||||
${DPKG} --force-all -i ${WRKSRC}/libc6_*.deb
|
||||
|
||||
# Install the base packages
|
||||
${MKDIR} ${WRKSRC}/instpkgs
|
||||
for pkg in ${BASEPACKAGES}; do \
|
||||
${LN} -sf ${WRKSRC}/$${pkg}_*.deb ${WRKSRC}/instpkgs/; \
|
||||
done
|
||||
${DPKG} -i ${WRKSRC}/instpkgs/*
|
||||
|
||||
${RM} -rf ${PREFIX}/tmp/* ${PREFIX}/etc/timezone.*
|
||||
|
||||
.include <bsd.port.mk>
|
2
emulators/linux_base-debian/distinfo
Normal file
2
emulators/linux_base-debian/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (debian-3.0.23-2002-07-18/basedebs.tar) = 96c114c90239bf030395712c7ef0d1d4
|
||||
MD5 (debian-3.0.23-2002-07-18/util-linux-locales_2.11n-4_all.deb) = f6f6d2819168ec9f3f42d2ee9cde6439
|
4
emulators/linux_base-debian/pkg-descr
Normal file
4
emulators/linux_base-debian/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
This port contains a base package set of debian linux.
|
||||
These packages form your linux base just like a real debian box.
|
||||
|
||||
WWW: http://www.debian.org/
|
6014
emulators/linux_base-debian/pkg-plist
Normal file
6014
emulators/linux_base-debian/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
9
emulators/linux_base-debian/pkg-req
Normal file
9
emulators/linux_base-debian/pkg-req
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
|
||||
if [ -f ${PKG_PREFIX}/etc/redhat-release ]; then
|
||||
echo "linux_base-debian can't be installed into the redhat base"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user