View | Details | Raw Unified | Return to bug 97082
Collapse All | Expand All

(-)./Makefile (-3 / +4 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	linux_base-gentoo-stage1
8
PORTNAME=	linux_base-gentoo-stage1
9
PORTVERSION=	2006.0
9
PORTVERSION=	2006.0
10
PORTREVISION=	1
10
CATEGORIES=	emulators linux
11
CATEGORIES=	emulators linux
11
MASTER_SITES=	${MASTER_SITE_GENTOO}
12
MASTER_SITES=	${MASTER_SITE_GENTOO}
12
EXTRACT_ONLY=
13
EXTRACT_ONLY=
Lines 46-52 Link Here
46
47
47
do-extract:
48
do-extract:
48
	@${MKDIR} ${WRKSRC}
49
	@${MKDIR} ${WRKSRC}
49
	@${TAR} --exclude=./dev -xpy -C ${WRKSRC} \
50
	@${TAR} --exclude=./dev --exclude=./proc -xpy -C ${WRKSRC} \
50
		-f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
51
		-f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
51
	@${ECHO_CMD} etc/resolv.conf > ${PLIST}
52
	@${ECHO_CMD} etc/resolv.conf > ${PLIST}
52
	@cd ${WRKSRC} && ${FIND} * -type f -o -type l >> ${PLIST} \
53
	@cd ${WRKSRC} && ${FIND} * -type f -o -type l >> ${PLIST} \
Lines 57-65 Link Here
57
do-install:
58
do-install:
58
	- ${MKDIR} ${PREFIX}
59
	- ${MKDIR} ${PREFIX}
59
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
60
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
60
	@${TAR} --exclude=./dev -xpy -C ${PREFIX} \
61
	@${TAR} --exclude=./dev -xpy --exclude=./proc -C ${PREFIX} \
61
		-f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
62
		-f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
62
	@${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
63
	@${FIND} ${PREFIX} -fstype ufs -type d -exec ${CHMOD} 755 \{\} \;
63
	@${CP} -p /etc/resolv.conf ${PREFIX}/etc/
64
	@${CP} -p /etc/resolv.conf ${PREFIX}/etc/
64
	@${BRANDELF} -t Linux ${PREFIX}/sbin/ldconfig ${PREFIX}/sbin/sln
65
	@${BRANDELF} -t Linux ${PREFIX}/sbin/ldconfig ${PREFIX}/sbin/sln
65
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
66
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
(-)./pkg-deinstall (+18 lines)
Line 0 Link Here
1
#!/bin/sh
2
# a deinstallation script for linux_base
3
4
case "$2" in
5
DEINSTALL)
6
	if [ -n "`mount | grep ^linproc`" ] || \
7
		[ -d /compat/linux/proc ]; then
8
		echo ""
9
		echo "You may need to do by hands:"
10
		echo "  o  unmount linprocfs;"
11
		echo "  o  delete ${PKG_PREFIX}/proc;"
12
		echo "  o  remove the description of linprocfs from /etc/fstab."
13
		echo ""
14
	fi
15
	;;
16
esac
17
18
exit 0
(-)./pkg-install (-12 / +21 lines)
Lines 12-33 Link Here
12
			exit 1
12
			exit 1
13
		fi
13
		fi
14
	fi
14
	fi
15
	if [ -n "`mount | grep -w ^linprocfs`" ]; then
16
		echo 'Un-mounting linprocfs...'
17
		umount linprocfs
18
	fi
19
	;;
15
	;;
20
POST-INSTALL)
16
POST-INSTALL)
21
	if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
17
	if [ -z "`grep ^linproc /etc/fstab`" ]; then
22
		echo 'Re-mounting linprocfs...'
18
		echo ''
23
		mount linprocfs
19
		echo '+++ Some programs may need the linprocfs, please add it to /etc/fstab! +++'
20
	else
21
		if [ -z "`mount | grep -w ^linprocfs`" ]; then
22
			echo ''
23
			echo '+++ Please mount linprocfs manually! +++'
24
		fi
24
	fi
25
	fi
25
	;;
26
	if [ ! -f ${PKG_PREFIX}/etc/nsswitch.conf ]; then
26
DEINSTALL)
27
		cp ${PKG_PREFIX}/etc/nsswitch.conf.dist \
27
	if [ -n "`mount | grep -w ^linprocfs`" ]; then
28
			${PKG_PREFIX}/etc/nsswitch.conf
28
		echo 'Un-mounting linprocfs...'
29
	fi
29
		umount linprocfs
30
	if [ ! -f ${PKG_PREFIX}/etc/yp.conf ]; then
31
		cp ${PKG_PREFIX}/etc/yp.conf.sample ${PKG_PREFIX}/etc/yp.conf
30
	fi
32
	fi
33
#
34
# This is needed for updating to ensure that
35
# already installed libraries get to ${PKG_PREFIX}/etc/ld.so.cache
36
#
37
	echo ''
38
	echo 'Running linux ldconfig...'
39
	${PKG_PREFIX}/sbin/ldconfig -r ${PKG_PREFIX}
31
	;;
40
	;;
32
esac
41
esac

Return to bug 97082