blob: dde705dcdc43c5ce84465ed874fb79ff57f25f86 (
plain) (
blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# New ports collection makefile for: linux_base-gentoo-stage1
# Date created: 2003-10-12
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= linux_base-gentoo-stage1
PORTVERSION= 1.4
CATEGORIES= emulators linux
MASTER_SITES= ${MASTER_SITE_GENTOO}
USE_BZIP2= y
.include <bsd.port.pre.mk>
PORTARCH=${MACHINE_ARCH:S/64//}
.if (${PORTARCH} == "alpha")
MASTER_SITE_SUBDIR= experimental/alpha/stages
DISTNAME= stage1-alpha-20030721
.endif
.if (${PORTARCH} == "amd")
MASTER_SITE_SUBDIR= experimental/amd64/stages
DISTNAME= stage1-amd64-20030728
.endif
.if (${PORTARCH} == "ia")
MASTER_SITE_SUBDIR= experimental/ia64
DISTNAME= stage1-ia64-20030912
.endif
.if (${PORTARCH} == "i386")
MASTER_SITE_SUBDIR= releases/x86/${PORTVERSION}/stages/x86
DISTNAME= stage1-x86-1.4-20030806
.endif
.if (${PORTARCH} == "sparc")
MASTER_SITE_SUBDIR= experimental/sparc/stages/sparc64
DISTNAME= stage1-sparc64-20031011
.endif
DIST_SUBDIR= gentoo-linux
EXTRACT_ONLY=
MAINTAINER= trevor@FreeBSD.org
COMMENT= Files from Gentoo distribution, for Linux compatibility
MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
NO_BUILD= y
ONLY_FOR_ARCHS= alpha amd64 ia64 i386 sparc64
PLIST= ${WRKDIR}/pkg-plist
PREFIX= ${LINUXBASE}
RESTRICTED= "binaries licensed under GNU GPL without accompanying source"
CONFLICTS= linux_base-*
pre-install:
${ECHO_CMD} etc/resolv.conf > ${PLIST}
${TAR} tyf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | cut -c3-100 \
> ${WRKDIR}/list.txt
cd ${WRKDIR} && ${GREP} -v '/$$' ${WRKDIR}/list.txt >> ${PLIST}
${GREP} '/$$' ${WRKDIR}/list.txt | ${SED} -e "s:^:@dirrm :g" >> ${PLIST}
${RM} ${WRKDIR}/list.txt
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
- ${MKDIR} ${PREFIX}
${TAR} -C ${PREFIX} -xypSf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
- ${CP} -p /etc/resolv.conf ${PREFIX}/etc/
${RM} ${PREFIX}/dev/null ${PREFIX}/dev/stdout
mknod ${PREFIX}/dev/null c 2 2
mknod ${PREFIX}/dev/stdout c 22 1
brandelf -t Linux ${PREFIX}/sbin/ldconfig ${PREFIX}/sbin/sln
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|