Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 47316
Collapse All | Expand All

(-)grsecurity-base-policy-20030614.ebuild (-5 / +8 lines)
Lines 28-40 Link Here
28
	echo "include <${GRACL_DIR}>" > ${D}/etc/grsec/acl
28
	echo "include <${GRACL_DIR}>" > ${D}/etc/grsec/acl
29
	/bin/cp default.acl ${D}/${GRACL_DIR}/
29
	/bin/cp default.acl ${D}/${GRACL_DIR}/
30
30
31
	for pkg in `/usr/lib/portage/bin/pkglist | /bin/sed 's/-[0-9].*//g' | /usr/bin/sort | /usr/bin/uniq`; do
31
	for pkg in /var/db/pkg/*/* ; do
32
		pkg="$( sed -e 's#/var/db/pkg/##' -e 's#-[[:digit:]][^/]*##' <<< $pkg )"
32
		if [ -d "${pkg}" ] ; then
33
		if [ -d "${pkg}" ] ; then
33
			for acl in `/bin/ls -1 ${pkg}/*.acl`; do
34
			for acl in `/bin/ls -1 ${pkg}/*.acl`; do
34
				count=$(($count + 1))
35
				if ! [ -f ${D}/${GRACL_DIR}/$acl ] ; then
35
				einfo "Installing $acl that you need for ${pkg}"
36
					count=$(($count + 1))
36
				/bin/mkdir -p ${D}/${GRACL_DIR}/`/usr/bin/dirname $acl`
37
					einfo "Installing $acl that you need for ${pkg}"
37
				/bin/cp $acl ${D}/${GRACL_DIR}/$acl
38
					/bin/mkdir -p ${D}/${GRACL_DIR}/`/usr/bin/dirname $acl`
39
					/bin/cp $acl ${D}/${GRACL_DIR}/$acl
40
				fi
38
			done
41
			done
39
		fi
42
		fi
40
	done
43
	done

Return to bug 47316